Get Agent Messages

GET
/v1/agents/:agent_id/messages

Retrieve message history for an agent.

Path parameters

agent_idstringRequired

Query parameters

beforestringOptional

Message before which to retrieve the returned messages.

limitintegerOptionalDefaults to 10

Maximum number of messages to retrieve.

msg_objectbooleanOptionalDefaults to false

If true, returns Message objects. If false, return LettaMessage objects.

assistant_message_tool_namestringOptionalDefaults to send_message

The name of the designated message tool.

assistant_message_tool_kwargstringOptionalDefaults to message

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

Response

Successful Response

list of objects
OR
list of objects

Errors

Built with