docs(protocol): describe parentID on session create (#63653)

This commit is contained in:
Dax
2026-11-12 21:30:14 -05:00
committed by GitHub
Unverified
parent 94e070db97
commit 7e441d348e
2 changed files with 6 additions and 2 deletions
+2 -1
View File
@@ -1075,7 +1075,8 @@
{
"type": "null"
}
]
],
"description": "Set parentID to create a subagent session at the parent's location; set agent to choose its agent (otherwise it uses the default) and start it with session.prompt. After each completed round, the child sends a `<subagent>` report to the parent's inbox and wakes the parent unless it has a staged revert."
},
"title": {
"anyOf": [
+4 -1
View File
@@ -167,7 +167,10 @@ export const makeSessionGroup = <I extends HttpApiMiddleware.AnyId, S, FormI ext
HttpApiEndpoint.post("session.create", "/api/session", {
payload: Schema.Struct({
id: Session.ID.pipe(Schema.optional),
parentID: Session.ID.pipe(Schema.optional),
parentID: Session.ID.pipe(Schema.optional).annotate({
description:
"Set parentID to create a subagent session at the parent's location; set agent to choose its agent (otherwise it uses the default) and start it with session.prompt. After each completed round, the child sends a `<subagent>` report to the parent's inbox and wakes the parent unless it has a staged revert.",
}),
title: Schema.String.pipe(Schema.optional),
agent: Agent.ID.pipe(Schema.optional),
model: Model.Ref.pipe(Schema.optional),