Skip to content

chimera.streaming

chimera.streaming lets the agent surface partial output (text deltas

  • in-progress tool calls) as the LLM streams them.
from chimera.streaming import (
StreamHandler,
ConsoleStreamHandler,
BufferingStreamHandler,
StreamingReAct,
)
SymbolPurpose
StreamHandlerABC. on_text_delta(text), on_tool_call_start(call), on_tool_call_complete(call), on_step_end().
ConsoleStreamHandlerPrints text deltas to stdout as they arrive.
BufferingStreamHandlerBuffers everything, exposes .text, .tool_calls after the stream ends.
StreamingReActReAct subclass that accepts a StreamHandler and forwards every delta.

Pair with a streaming-capable provider (every built-in provider implements Provider.stream()).