assistant-stream is a Python library for building real-time streaming AI assistants with WebSocket connections. Current version is 0.0.32, pre-release, with daily updates. It provides a simple API for streaming text, tool calls, and events from language models directly to frontend interfaces.
pip install assistant-streamNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Basic asynchronous streaming assistant example using OpenAI.
Wrap code in async functions and use asyncio.run(). Change function calls to await.
Use 'create_stream(openai_api_key=..., model=...)' instead of 'create_stream(api_key=...)'.
Always pass both 'stream' and 'handler' to AssistantStream constructor.
Replace 'create_assistant' with 'create_stream'.
No dependency data recorded yet.