answer
Respond to an agent's pending question by accepting with schema-matched content, declining, or canceling, and optionally wait for the turn result.
Instructions
Answer a question the agent asked (question_needed). requested_schema is the agent's own form, passed on as sent: with action "accept" (the default), give content as an object whose keys and values follow it. "decline" refuses to answer, "cancel" dismisses the question. Blocks until the turn is done, needs an approval or asks a question; the server sets no time limit. If your client times out, the turn keeps running and the connection stays: call status for the state and output for the reply instead of sending the task again. Returns "approval_needed" with an approval to answer via approve / allow / reject, or "question_needed" with a question to answer via answer.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| wait | No | Wait for the result (default true). false returns right after sending. | |
| action | No | accept (default), decline or cancel | |
| content | No | Field values for accept: string, number, boolean or an array of strings | |
| session | Yes | Session id returned by open | |
| question_id | Yes | question_id from the question_needed result |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| output | No | ||
| status | Yes | ||
| outcome | No | ||
| turn_id | No | ||
| approval | No | ||
| question | No |