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.

fix: fix runtime warnings with the server (#2178)

Charles Packerbcd7b26e0fa5
diff --git a/letta/server/rest_api/routers/v1/agents.py b/letta/server/rest_api/routers/v1/agents.py
index 6a583c3a3..20661ef9b 100644
--- a/letta/server/rest_api/routers/v1/agents.py
+++ b/letta/server/rest_api/routers/v1/agents.py
@@ -465,7 +465,7 @@ async def send_message(
@router.post(
"/{agent_id}/messages/stream",
response_model=None,
- operation_id="create_agent_message",
+ operation_id="create_agent_message_stream",
responses={
200: {
"description": "Successful response",
diff --git a/letta/server/rest_api/routers/v1/blocks.py b/letta/server/rest_api/routers/v1/blocks.py
index 798e7aa4a..f58172d6f 100644
--- a/letta/server/rest_api/routers/v1/blocks.py
+++ b/letta/server/rest_api/routers/v1/blocks.py
@@ -76,7 +76,7 @@ def get_block(
raise HTTPException(status_code=404, detail="Block not found")
[email protected]("/{block_id}/attach", response_model=Block, operation_id="update_agent_memory_block")
[email protected]("/{block_id}/attach", response_model=Block, operation_id="link_agent_memory_block")
def link_agent_memory_block(
block_id: str,
agent_id: str = Query(..., description="The unique identifier of the agent to attach the source to."),
@@ -96,7 +96,7 @@ def link_agent_memory_block(
return block
[email protected]("/{block_id}/detach", response_model=Memory, operation_id="update_agent_memory_block")
[email protected]("/{block_id}/detach", response_model=Memory, operation_id="unlink_agent_memory_block")
def unlink_agent_memory_block(
block_id: str,
agent_id: str = Query(..., description="The unique identifier of the agent to attach the source to."),