trading_agent.terminal.widgets.tool_call_view
¶
One tool call, folded to a line with its name and state, opening to its arguments and result.
Typical usage example:
view = ToolCallView(step) view.show(step)
ToolCallView
¶
Bases: Collapsible
A tool call's card.
Creates the card.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
ToolStep
|
The tool call. |
required |
Source code in src/trading_agent/terminal/widgets/tool_call_view.py
on_mount
¶
show
¶
Updates the card from the tool call.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
step
|
ToolStep
|
The tool call, perhaps now with its result. |
required |