Chat
Send a message to the agent and receive a streaming NDJSON response. The agent maintains conversation history within a session, so follow-up messages have full context. HTTP Request:
Request Body:
Example:
type and data field:
Example stream:
Read-only vs. tool-authorizing clients. Sent as shown above, the agent runs its tools autonomously and streams the result. If you include a
mode field in the request body, the agent instead pauses and emits authorization_request events for tools that need approval — your client must then reply (with approved_calls / authorized_tools) to continue. For a simple question-and-answer client, omit mode.Reset Session
Clear the conversation history for a session. HTTP Request:
Request Body:
Example:

