mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-29 03:24:54 +00:00
docs(protocol): describe parentID on session create (#63653)
This commit is contained in:
parent
94e070db97
commit
7e441d348e
2 changed files with 6 additions and 2 deletions
3
packages/protocol/openapi.json
generated
3
packages/protocol/openapi.json
generated
|
|
@ -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": [
|
||||
|
|
|
|||
|
|
@ -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),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue