Skip to main content

AiSendStreamBody

Shared body of the two streaming send endpoints (sendWithStream and its OpenAI-framed twin) — the Chat action is implied, so there is no actionType.

NameTypeDescriptionNotes
threadIdStringTarget thread; a new one is created (with an auto title) when omitted.[optional] [example: 11111111-1111-1111-1111-111111111111]
userMessageAiThreadMessageLikeThe user turn to send.[required] [example: {role=user, content=Summarise the attached contract.}]
actionArgsAiActionArgsPer-request engine options: extra tools, reasoning, prompt override.[optional] [example: {isReasoning=false}]
entityIdStringOptional entity (room) scope for profile resolution.[optional] [example: 1234]
profileIdStringSession-level profile override for this request only.[optional] [example: 00000000-0000-0000-0000-000000000000]