trading_agent.client.subagent_commands
¶
The trading-agent subagents list command: shows every subagent definition and any that cannot be read.
Typical usage example:
exit_code = SubagentCommands(library).list()
SubagentCommands
¶
Lists subagents for the user.
Creates the commands.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
library
|
SubagentLibrary
|
The definitions. |
required |
output
|
TextIO
|
Where to print. |
stdout
|
Source code in src/trading_agent/client/subagent_commands.py
list
¶
Prints each subagent, then each file that could not be read.
Returns:
| Type | Description |
|---|---|
int
|
0 when every file was readable, 1 otherwise. |