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

Path parameters

agent_idstring required

Query parameters

max_message_lengthinteger required

Maximum number of messages to retain after summarization.

Maximum number of messages to retain after summarization.

Response

Successful Response

Changes