Answer a question again by forking at its answer's snapshot
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user