Send Message
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 can optionally stream the response if ‘stream_steps’ or ‘stream_tokens’ is set to True.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
Body
The messages to be sent to the agent.
Whether to asynchronously send the messages to the agent.
Flag to determine if the response should be streamed. Set to True for streaming agent steps.
Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True).
Set True to return the raw Message object. Set False to return the Message in the format of the Letta API.
Response
The messages returned by the agent.
The usage statistics of the agent.