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

This commit is contained in:
Charles Packer
2024-12-06 13:05:30 -08:00
committed by GitHub
parent aadd3c6d42
commit bcd7b26e0f
2 changed files with 3 additions and 3 deletions

View File

@@ -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",

View File

@@ -76,7 +76,7 @@ def get_block(
raise HTTPException(status_code=404, detail="Block not found")
@router.patch("/{block_id}/attach", response_model=Block, operation_id="update_agent_memory_block")
@router.patch("/{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
@router.patch("/{block_id}/detach", response_model=Memory, operation_id="update_agent_memory_block")
@router.patch("/{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."),