Skip to main content

FlowDisplay Module

The FlowDisplay 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

Visual Output

The flow display shows:

Example with Multiple Agents

Thread Safety

The FlowDisplay class is thread-safe and uses locks to protect shared state when multiple agents run concurrently.