public

Handle Send Chat Message

This endpoint is used to send a new chat message.

Args: chat_message_req (SendMessageRequest): Details about the new chat message. - When stream=True (default): Returns StreamingResponse with SSE - When stream=False: Returns ChatFullResponse with complete data request (Request): The current HTTP request context. user (User | None): The current user, obtained via dependency injection. _ (None): Rate limit check is run if user/group/global rate limits are enabled.

Returns: StreamingResponse | ChatFullResponse: Either streams or returns complete response.

post/chat/send-chat-message

Request body

messagestring required
allowed_tool_idsinteger[] nullable
forced_tool_idinteger nullable
deep_researchboolean
parent_message_idinteger nullable
chat_session_idstring uuid nullable
streamboolean

Response

Successful Response

{"stackTrail":"paths:/chat/send-chat-message:post:responses:200:content:application/json:schema","oasType":"schema","type":"unknown"}

Changes