POST
/
v1
/
agents
/
{agent_id}
/
messages
/
stream

Authorizations

Authorization
string
headerrequired

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Path Parameters

agent_id
string
required

Body

application/json
messages
required

The messages to be sent to the agent.

assistant_message_tool_name
string
default: send_message

The name of the designated message tool.

assistant_message_tool_kwarg
string
default: message

The name of the message argument in the designated message tool.

stream_tokens
boolean
default: false

Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True).

Response

200 - text/event-stream

Server-Sent Events stream