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 preview title for docs search [LET-5795] (#5664)

cthomas3d45228a3e25
diff --git a/fern/openapi.json b/fern/openapi.json
index 474699e88..e1c31ec76 100644
--- a/fern/openapi.json
+++ b/fern/openapi.json
@@ -7158,9 +7158,9 @@
"/v1/agents/{agent_id}/messages/preview-raw-payload": {
"post": {
"tags": ["agents"],
- "summary": "Preview Raw Payload",
+ "summary": "Preview Model Request",
"description": "Inspect the raw LLM request payload without sending it.\n\nThis endpoint processes the message through the agent loop up until\nthe LLM request, then returns the raw request payload that would\nbe sent to the LLM provider. Useful for debugging and inspection.",
- "operationId": "preview_raw_payload",
+ "operationId": "preview_model_request",
"parameters": [
{
"name": "agent_id",
@@ -7204,7 +7204,7 @@
"schema": {
"type": "object",
"additionalProperties": true,
- "title": "Response Preview Raw Payload"
+ "title": "Response Preview Model Request"
}
}
}
diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.py
index c9f1e11a2..7cf27a476 100644
--- a/letta/server/rest_api/routers/v1/agents.py
+++ b/letta/server/rest_api/routers/v1/agents.py
@@ -1635,9 +1635,9 @@ async def list_groups_for_agent(
@router.post(
"/{agent_id}/messages/preview-raw-payload",
response_model=Dict[str, Any],
- operation_id="preview_raw_payload",
+ operation_id="preview_model_request",
)
-async def preview_raw_payload(
+async def preview_model_request(
agent_id: AgentId,
request: Union[LettaRequest, LettaStreamingRequest] = Body(...),
server: SyncServer = Depends(get_letta_server),