Skip to content

Phase tracker

Phase

Bases: BaseModel


              flowchart TD
              src.tradingagents.interface.tui.phase_tracker.Phase[Phase]

              

              click src.tradingagents.interface.tui.phase_tracker.Phase href "" "src.tradingagents.interface.tui.phase_tracker.Phase"
            

One row in the TUI phase sidebar.

Attributes:

Name Type Description
id str

Stable identifier (used as the widget DOM id, so it must be valid CSS / Python).

label str

Human-readable label rendered in the sidebar.

status PhaseStatus

One of "pending", "running", "done".

progress str

Optional secondary line, e.g. "3/10" for a debate counter. Empty string when there is no progress display.

id

id: str = Field(..., title='ID', description='Stable identifier; used as the DOM widget id.')

label

label: str = Field(..., title='Label', description='Human-readable phase label.')

status

status: PhaseStatus = Field(
    default="pending",
    title="Status",
    description="Lifecycle state: pending (not started), running (in progress), done.",
)

progress

progress: str = Field(
    default="",
    title="Progress",
    description="Optional progress text (e.g. '3/10' for debate rounds).",
)