Answer a question again by forking at its answer's snapshot

This commit is contained in:
Ian Gulliver
2026-10-19 17:46:44 -07:00
parent 101041fc87
commit ec390958e9
11 changed files with 517 additions and 316 deletions
+23
View File
@@ -1031,6 +1031,29 @@ paths:
"404": { $ref: "#/components/responses/Error" }
"409": { $ref: "#/components/responses/Error" }
/api/inbox/answer-again:
post:
operationId: answerAgain
description: >
Gives an answered question a different answer by forking its task, as forkSnapshot does, at the snapshot taken
just before the original answer was handed to the agent. The new task gets a copy of the question, already
answered with this response, and its agent gets the answer as its first message. The original task is untouched.
Refused for a question that isn't answered, an answer delivered without a snapshot, and anything forkSnapshot refuses.
requestBody:
required: true
content:
application/json:
schema: { $ref: "#/components/schemas/InboxResponseCreate" }
responses:
"201":
description: The new task.
content:
application/json:
schema: { $ref: "#/components/schemas/Task" }
"400": { $ref: "#/components/responses/Error" }
"404": { $ref: "#/components/responses/Error" }
"409": { $ref: "#/components/responses/Error" }
/api/events:
get:
operationId: streamEvents