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.
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.
The name of the designated message tool.
The name of the message argument in the designated message tool.
Response
A message representing a request to call a function (generated by the LLM to trigger function execution).
Attributes: function_call (Union[FunctionCall, FunctionCallDelta]): The function call id (str): The ID of the message date (datetime): The date the message was created in ISO format
A message representing the return value of a function call (generated by Letta executing the requested function).
Attributes: function_return (str): The return value of the function status (Literal["success", "error"]): The status of the function call id (str): The ID of the message date (datetime): The date the message was created in ISO format function_call_id (str): A unique identifier for the function call that generated this message
Representation of an agent's internal monologue.
Attributes: internal_monologue (str): The internal monologue of the agent id (str): The ID of the message date (datetime): The date the message was created in ISO format
Usage statistics for the agent interaction.
Attributes: completion_tokens (int): The number of tokens generated by the agent. prompt_tokens (int): The number of tokens in the prompt. total_tokens (int): The total number of tokens processed by the agent. step_count (int): The number of steps taken by the agent.
A message generated by the system. Never streamed back on a response, only used for cursor pagination.
Attributes: message (str): The message sent by the system id (str): The ID of the message date (datetime): The date the message was created in ISO format
A message sent by the user. Never streamed back on a response, only used for cursor pagination.
Attributes: message (str): The message sent by the user id (str): The ID of the message date (datetime): The date the message was created in ISO format