trading_agent.tools.bash_run_tool
¶
The bash_run tool: runs one command in the desk's terminal and waits for it.
Typical usage example:
tool = BashRunTool(session)
BashRunTool
¶
Bases: BashTool
Runs one command and returns its output.
Creates the tool, with a time limit just above the terminal's own.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
session
|
BashSession
|
The desk's terminal. |
required |
Source code in src/trading_agent/tools/bash_run_tool.py
run
async
¶
Runs the command.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
CommandArguments
|
The command. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
Its output and exit status. |