from meibelai import Meibelai
import os
with Meibelai(
api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:
res = m_client.blueprints.executions.send_chat_message_stream(blueprint_instance_id="<id>", user_message="<value>", timeout_seconds=None, include_thinking=False, include_tool_activity=True)
with res as event_stream:
for event in event_stream:
# handle event
print(event, flush=True){
"event": "<string>",
"data": {
"signal_id": "<string>"
}
}Send a chat message to a running chat agent workflow and stream the response as Server-Sent Events.
from meibelai import Meibelai
import os
with Meibelai(
api_key_header=os.getenv("MEIBELAI_API_KEY_HEADER", ""),
) as m_client:
res = m_client.blueprints.executions.send_chat_message_stream(blueprint_instance_id="<id>", user_message="<value>", timeout_seconds=None, include_thinking=False, include_tool_activity=True)
with res as event_stream:
for event in event_stream:
# handle event
print(event, flush=True){
"event": "<string>",
"data": {
"signal_id": "<string>"
}
}Documentation Index
Fetch the complete documentation index at: https://docs.meibel.ai/llms.txt
Use this file to discover all available pages before exploring further.
Was this page helpful?