Skip to content

armgit / letta

Public Imported from GitHub
0

Platform for stateful agents: AI with advanced memory that can learn and self-improve over time.

feat: rename summarize messages title for docs search [LET-5794] (#5663)

cthomasac69683a0f44
diff --git a/fern/openapi.json b/fern/openapi.json
index 994df0847..c12370e80 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -7225,9 +7225,9 @@
"/v1/agents/{agent_id}/summarize": {
"post": {
"tags": ["agents"],
- "summary": "Summarize Agent Conversation",
+ "summary": "Summarize Messages",
"description": "Summarize an agent's conversation history to a target message length.\n\nThis endpoint summarizes the current message history for a given agent,\ntruncating and compressing it down to the specified `max_message_length`.",
- "operationId": "summarize_agent_conversation",
+ "operationId": "summarize_messages",
"parameters": [
{
"name": "agent_id",
diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.py
index 029189250..f69e0a83d 100644
--- a/letta/server/rest_api/routers/v1/agents.py
+++ b/letta/server/rest_api/routers/v1/agents.py
@@ -1681,8 +1681,8 @@ async def preview_raw_payload(
)
[email protected]("/{agent_id}/summarize", status_code=204, operation_id="summarize_agent_conversation")
-async def summarize_agent_conversation(
[email protected]("/{agent_id}/summarize", status_code=204, operation_id="summarize_messages")
+async def summarize_messages(
request_obj: Request, # FastAPI Request
agent_id: AgentId,
max_message_length: int = Query(..., description="Maximum number of messages to retain after summarization."),