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)