Skip to content
  • Auto
  • Light
  • Dark
DiscordForumGitHubSign up
View as Markdown
Copy Markdown

Open in Claude
Open in ChatGPT

Summarize Messages

client.agents.messages.summarize(stringagentID, RequestOptionsoptions?): void
post/v1/agents/{agent_id}/summarize

Summarize an agent's conversation history.

ParametersExpand Collapse
agentID: string

The ID of the agent in the format 'agent-'

minLength42
maxLength42
Summarize Messages
import Letta from '@letta-ai/letta-client';

const client = new Letta({
  apiKey: 'My API Key',
});

await client.agents.messages.summarize('agent-123e4567-e89b-42d3-8456-426614174000');
Returns Examples