trading_agent.terminal.widgets.tools_card
¶
The side panel's Tools card: the desk's own tools and the MCP servers with their tools.
Typical usage example:
card = ToolsCard() card.show(tool_names, servers)
ToolsCard
¶
Bases: SideCard
The Tools card, with the two lists folded inside it.
Creates the card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
collapsed
|
bool
|
Whether it starts folded. |
False
|
Source code in src/trading_agent/terminal/widgets/tools_card.py
show
¶
Shows the tools.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
tools
|
list[str]
|
The desk's tool names. |
required |
servers
|
list[dict[str, Any]] | None
|
The MCP servers, or None when not known. |
required |