trading_agent.terminal.widgets.model_card
¶
The side panel's Model card: which backend answered last, the actual model, the preference and the model order.
Typical usage example:
card = ModelCard() card.show(desk_summary, context_usage)
ModelCard
¶
Bases: SideCard
The Model card.
Creates the card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collapsed
|
bool
|
Whether it starts folded. |
False
|
Source code in src/trading_agent/terminal/widgets/model_card.py
show
¶
Shows the desk's models.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
desk
|
dict[str, Any] | None
|
The desk summary, or None while loading. |
required |
usage
|
dict[str, Any] | None
|
The context usage snapshot, which names the actual model, or None. |
required |