Skip to main content

Documentation Index

Fetch the complete documentation index at: https://docs.narrative.io/llms.txt

Use this file to discover all available pages before exploring further.

HTTP status: 400

Error message

cannot submit tool_outputs: conversation {id} has no assistant turn yet

When this error occurs

POST /agents/conversations/{id}/runs with payload.kind = tool_outputs requires a prior assistant turn carrying the tool_use blocks that the outputs reference. This error means the conversation has none yet:
  • It’s a brand-new conversation with no runs at all.
  • All prior runs terminated with final_text (no tool calls), so there’s nothing pending.
  • All prior runs failed before producing an assistant turn.

How to fix

If you intended to start a new conversational turn from the user side, change the payload to {"kind": "user_message", "text": "..."}tool_outputs is exclusively for resuming a requires_action run. If you intended to resume a paused run, double-check the conversation id — tool_outputs is posted onto the same conversation that contained the requires_action run, not a fresh one.