agents

Summarize Agent Conversation

Summarize an agent's conversation history to a target message length.

This endpoint summarizes the current message history for a given agent, truncating and compressing it down to the specified max_message_length.

post/v1/agents/{agent_id}/summarize

Request

  • Base URL
    https://app.letta.com
  • URL
    https://app.letta.com/v1/agents/{agent_id}/summarize
  • Auth
    HTTP bearer

Path parameters

agent_idstring required

Query parameters

max_message_lengthinteger required

Maximum number of messages to retain after summarization.

Response

Successful Response

Changes

No recorded changes to this operation across all 36 revisions of this API.