ApiSchemas
SubagentSpawnedEvent
One shape from the contract, as it appears on the wire.
Used by sessions.annotate, sessions.events, sessions.send
JSON Schema
{
"type": "object",
"properties": {
"seq": {
"$ref": "#/components/schemas/EventSeq"
},
"sessionId": {
"$ref": "#/components/schemas/SessionId"
},
"at": {
"type": "string"
},
"type": {
"type": "string",
"enum": [
"subagent.spawned"
]
},
"toolCallId": {
"$ref": "#/components/schemas/ToolCallId"
},
"name": {
"$ref": "#/components/schemas/SubagentName"
},
"childSessionId": {
"$ref": "#/components/schemas/SessionId"
},
"agentId": {
"$ref": "#/components/schemas/AgentId"
},
"agentVersion": {
"$ref": "#/components/schemas/AgentVersionNumber"
},
"depth": {
"type": "integer",
"minimum": 1
},
"message": {
"type": "string"
}
},
"required": [
"seq",
"sessionId",
"at",
"type",
"toolCallId",
"name",
"childSessionId",
"agentId",
"agentVersion",
"depth",
"message"
],
"additionalProperties": false
}