Send Message Streaming
Process a user message and return the agent’s response. This endpoint accepts a message from a user and processes it through the agent. It will stream the steps of the response always, and stream the tokens if ‘stream_tokens’ is set to True.
Path parameters
agent_id
Headers
Authorization
Header authentication of the form Bearer <token>
Request
This endpoint expects an object.
messages
The messages to be sent to the agent.
use_assistant_message
Whether the server should parse specific tool call arguments (default send_message
) as AssistantMessage
objects.
assistant_message_tool_name
The name of the designated message tool.
assistant_message_tool_kwarg
The name of the message argument in the designated message tool.
stream_tokens
Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True).
Response
Successful response
System Message
OR
User Message
OR
Reasoning Message
OR
Tool Call Message
OR
Tool Return Message
OR
Assistant Message
OR
Letta Usage Statistics