trading_agent.tools.cron_delete_tool
¶
The cron_delete tool: removes one of the desk's scheduled jobs.
Typical usage example:
tool = CronDeleteTool(store)
CronDeleteArguments
¶
Bases: BaseModel
The arguments of cron_delete.
Attributes:
| Name | Type | Description |
|---|---|---|
job_id |
str
|
The job's id, from cron_list. |
CronDeleteTool
¶
Bases: Tool
Deletes a job.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
CronJobStore
|
The desk's jobs. |
required |
Source code in src/trading_agent/tools/cron_delete_tool.py
run
async
¶
Deletes the job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
CronDeleteArguments
|
The job's id. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
A confirmation, or why nothing was deleted. |