trading_agent.tools.schedule_wakeup_tool
¶
The schedule_wakeup tool: wakes the desk once, later, with a message to itself.
Typical usage example:
tool = ScheduleWakeupTool(store)
ScheduleWakeupArguments
¶
Bases: BaseModel
The arguments of schedule_wakeup.
Attributes:
| Name | Type | Description |
|---|---|---|
minutes |
int | None
|
Wake up this many minutes from now. |
at |
str | None
|
Or wake up at this India time today, as HH:MM; tomorrow when it has passed. |
message |
str
|
What to tell yourself when you wake, such as what to check. |
ScheduleWakeupTool
¶
Bases: Tool
Adds a one-off job that messages the desk.
Creates the tool.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
store
|
CronJobStore
|
The desk's jobs. |
required |
Source code in src/trading_agent/tools/schedule_wakeup_tool.py
run
async
¶
Stores the one-off job.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
arguments
|
ScheduleWakeupArguments
|
When, and the message. |
required |
Returns:
| Type | Description |
|---|---|
ToolResult
|
When the desk will wake. |