chore: mark agent.messages.stream endpoint as deprecated (#8227)

This commit is contained in:
Charles Packer
2026-01-05 17:35:10 -08:00
committed by Caren Thomas
parent 7c44375cce
commit e57adc0a6e
2 changed files with 6 additions and 1 deletions

View File

@@ -7748,8 +7748,9 @@
"post": {
"tags": ["agents"],
"summary": "Send Message Streaming",
"description": "Process a user message and return the agent's response.\nThis endpoint accepts a message from a user and processes it through the agent.\nIt will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.",
"description": "Process a user message and return the agent's response.\n\nDeprecated: Use the `POST /{agent_id}/messages` endpoint with `streaming=true` in the request body instead.\n\nThis endpoint accepts a message from a user and processes it through the agent.\nIt will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.",
"operationId": "create_agent_message_stream",
"deprecated": true,
"parameters": [
{
"name": "agent_id",

View File

@@ -1625,6 +1625,7 @@ async def send_message(
},
}
},
deprecated=True,
)
async def send_message_streaming(
request_obj: Request, # FastAPI Request
@@ -1635,6 +1636,9 @@ async def send_message_streaming(
) -> StreamingResponse | LettaResponse:
"""
Process a user message and return the agent's response.
Deprecated: Use the `POST /{agent_id}/messages` endpoint with `streaming=true` in the request body instead.
This endpoint accepts a message from a user and processes it through the agent.
It will stream the steps of the response always, and stream the tokens if 'stream_tokens' is set to True.
"""