ApiSchemas
SubagentCompletedEvent
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.completed"
]
},
"childSessionId": {
"$ref": "#/components/schemas/SessionId"
},
"name": {
"$ref": "#/components/schemas/SubagentName"
},
"stopReason": {
"$ref": "#/components/schemas/StopReason"
},
"text": {
"type": "string"
},
"usage": {
"$ref": "#/components/schemas/Usage"
}
},
"required": [
"seq",
"sessionId",
"at",
"type",
"childSessionId",
"name",
"stopReason",
"usage"
],
"additionalProperties": false
}