mirror of
https://github.com/anomalyco/opencode.git
synced 2026-11-28 11:08:54 +00:00
docs(protocol): name HTTP routes in session prompt description (#66306)
This commit is contained in:
parent
e54fbacb3d
commit
a73e0db2f3
3 changed files with 3 additions and 3 deletions
|
|
@ -86,7 +86,7 @@ Returns: nothing
|
|||
|
||||
## POST /api/session/{sessionID}/prompt
|
||||
|
||||
Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with experimental.session.wait or the session.execution.* events, then read the reply with session.message.list.
|
||||
Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with POST /api/experimental/session/:sessionID/wait or the session.execution.* events, then read the reply with GET /api/session/:sessionID/message.
|
||||
|
||||
Body:
|
||||
- `id?: string` Sending the same ID again returns the original item instead of adding a second one, so retries are safe. Reusing it in another session or for another kind of item fails with 409.
|
||||
|
|
|
|||
2
packages/protocol/openapi.json
generated
2
packages/protocol/openapi.json
generated
|
|
@ -2152,7 +2152,7 @@
|
|||
}
|
||||
}
|
||||
},
|
||||
"description": "Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with experimental.session.wait or the session.execution.* events, then read the reply with session.message.list.",
|
||||
"description": "Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with POST /api/experimental/session/:sessionID/wait or the session.execution.* events, then read the reply with GET /api/session/:sessionID/message.",
|
||||
"summary": "Send message",
|
||||
"requestBody": {
|
||||
"content": {
|
||||
|
|
|
|||
|
|
@ -407,7 +407,7 @@ export const makeSessionGroup = <I extends HttpApiMiddleware.AnyId, S, FormI ext
|
|||
identifier: "session.prompt",
|
||||
summary: "Send message",
|
||||
description:
|
||||
"Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with experimental.session.wait or the session.execution.* events, then read the reply with session.message.list.",
|
||||
"Send a user message and start the agent unless resume is false. Returns once the message is queued, not when the agent finishes: wait with POST /api/experimental/session/:sessionID/wait or the session.execution.* events, then read the reply with GET /api/session/:sessionID/message.",
|
||||
}),
|
||||
),
|
||||
)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue