Skip to main content

Streaming

cascadeflow supports streaming responses via stream_events() for custom UI integration and run_streaming() for terminal output with visual feedback.

stream_events()

Returns an async iterator of StreamEvent objects.

StreamEvent

StreamEventType

run_streaming()

Higher-level method with built-in visual feedback (pulsing dot indicator).

Tool Streaming

When tools are involved, cascadeflow uses a tool-aware streaming manager:

ToolStreamEvent

Tool-specific streaming event with additional fields.