FlowDisplay Module
TheFlowDisplay class provides visual display of agent workflows, showing agents in the center with their tools on the sides.
Import
Quick Example
Constructor
FlowDisplay()
Creates a new FlowDisplay instance.
No parameters required.
Methods
start()
Start tracking the workflow. Registers callbacks to capture agent interactions and tool calls.
stop()
Stop tracking and display the flow chart.
display()
Manually display the current flow chart without stopping tracking.
Attributes
| Attribute | Type | Description |
|---|---|---|
agents | list | List of agents in execution order |
agent_tools | dict | Mapping of agent names to their tools |
tracking | bool | Whether tracking is active |
Visual Output
The flow display shows:Example with Multiple Agents
Thread Safety
TheFlowDisplay class is thread-safe and uses locks to protect shared state when multiple agents run concurrently.
Related
- Agent Module - Agent class
- Agents Module - Multi-agent orchestration
- Display Module - Display utilities

