trading_agent.terminal.screens.models_screen
¶
The Models page: each desk's model order and preference, today's usage by desk and model, and Claude's subscription limits.
It copies the web page's ModelsPage.tsx.
Typical usage example:
app.push_screen(ModelsScreen('general'))
ModelsScreen
¶
Bases: PageScreen
The Models page.
Source code in src/trading_agent/terminal/screens/page_screen.py
compose_page
¶
Builds the three tables.
Yields:
| Type | Description |
|---|---|
Widget
|
The sections, in a scroll area. |
Source code in src/trading_agent/terminal/screens/models_screen.py
on_mount
¶
Sets up the tables, then reads the usage.
Source code in src/trading_agent/terminal/screens/models_screen.py
refresh_page
async
¶
Reads the desks and the usage.