Skip to main content
POST
Force an answer
Injects a force_answer flow-control event: the agent stops exploring and answers on its next step from the context it has so far. Like pause and resume, it takes no body, requires authentication, and doesn’t wait for the agent to act.
  • Running subagents: each is asked to wrap up and gets a short grace window. Any that don’t finish are cancelled. Their partial results fold into the parent’s answer, and the cascade repeats through deeper subagents.
  • queued session: the event is buffered and delivered when the agent starts.
  • Finished session: behaves like sending a message. The session restarts and the relaunched agent answers immediately.
Returns 202 Accepted. The command is delivered asynchronously.

Path parameters

string
required
The session ID.

Examples

Errors