post
https://b2b-api-dev.arbitragescanner.io/api/ai-assistant/v1/invoke_assistant_stream
This endpoint establishes a Server-Sent Events (SSE) stream to deliver real-time response parts to the client. The stream emits the following events in sequence:
- chat: Sent at the beginning of the stream to provide chat context.
event: chat
data: {"chat_id": ..., "chat_title": ...} - pending_tool_call: Sent at the moment when specific crypto tool was called.
event: pending_tool_call
data: {'call_id': call_..., 'title': {'en': 'Analyzing smart money trades..'}} - finished_tool_call: Sent at the moment when specific crypto tool was finished.
event: finished_tool_call
data: {'call_id': call_...} - message_start: Signals the beginning of a new message.
event: message_start
event: message_start
data: {"t": ...} (multiple times) - message_end: Indicates that the current message has finished. Includes the message ID.
event: message_end
data: {"message_id": ...} - finish: Marks the end of the entire stream session.
event: finish
data: null
