Send Group Message Streaming

Process a user message and return the group’s responses. This endpoint accepts a message from a user and processes it through agents in the group based on the specified pattern. It will stream the steps of the response always, and stream the tokens if ‘stream_tokens’ is set to True.

Path parameters

group_idstringRequired

Headers

AuthorizationstringRequired

Header authentication of the form Bearer <token>

Request

This endpoint expects an object.
messageslist of objectsRequired

The messages to be sent to the agent.

use_assistant_messagebooleanOptionalDefaults to true

Whether the server should parse specific tool call arguments (default send_message) as AssistantMessage objects.

assistant_message_tool_namestringOptionalDefaults to send_message

The name of the designated message tool.

assistant_message_tool_kwargstringOptionalDefaults to message

The name of the message argument in the designated message tool.

stream_tokensbooleanOptionalDefaults to false

Flag to determine if individual tokens should be streamed. Set to True for token streaming (requires stream_steps = True).

Response

Successful response

System Messageobject
OR
User Messageobject
OR
Reasoning Messageobject
OR
Tool Call Messageobject
OR
Tool Return Messageobject
OR
Assistant Messageobject
OR
Letta Usage Statisticsobject

Errors