Skip to content

App

TradingAgentsApp

Bases: App[str | None]


              flowchart TD
              src.tradingagents.interface.tui.app.TradingAgentsApp[TradingAgentsApp]

              

              click src.tradingagents.interface.tui.app.TradingAgentsApp href "" "src.tradingagents.interface.tui.app.TradingAgentsApp"
            

Top-level Textual application for the TradingAgents TUI.

The app starts on :class:SetupScreen (parameter form). Submitting that screen pushes :class:RunScreen, which kicks off the live pipeline worker. Both screens call :meth:App.exit with the final decision (or None) when the user is done, so :func:run_tui can return it to the calling shell command.

Methods:

Name Description
on_mount

Push the setup form as soon as the app finishes mounting.

CSS_PATH

CSS_PATH = _STYLES_PATH

BINDINGS

BINDINGS: list[Binding] = [Binding('ctrl+q', 'quit', 'Quit')]

on_mount

on_mount() -> None

Push the setup form as soon as the app finishes mounting.

Source code in src/tradingagents/interface/tui/app.py
def on_mount(self) -> None:
    """Push the setup form as soon as the app finishes mounting."""
    self.push_screen(SetupScreen())