main
__main__
Top-level dispatcher for the tradingagents console script.
A thin fire-driven router that exposes run_cli and run_tui as the cli and tui subcommands respectively. The --help / -h / "help" cases are intercepted before fire ever sees them so help output is rendered as Rich panels directly to stdout instead of through fire's default pager (less-style) UI.
This module doubles as both the "python -m tradingagents" entry point and the [project.scripts] target in pyproject.toml, so there is exactly one routing surface.
Examples:
>>> # tradingagents # rich app help (no pager)
>>> # tradingagents --help # same as above
>>> # tradingagents help cli # rich per-command help
>>> # tradingagents cli --help # same as above
>>> # tradingagents cli --ticker AAPL # actually run cli
>>> # tradingagents tui # interactive run
>>> # python -m tradingagents cli ... # equivalent to the above
Functions:
| Name | Description |
|---|---|
main |
Entry point for the tradingagents console script. |
main
Entry point for the tradingagents console script.
Routing rules (checked in order before delegating to fire):
- No arguments -> top-level Rich help.
- First arg is --help, -h, or "help" -> top-level help, or per-command help when followed by a known subcommand (e.g. tradingagents help cli).
- First arg is a known subcommand and any following arg is --help or -h -> per-command Rich help.
- Otherwise: hand off to :func:
fire.Firefor actual dispatch.