SchedulerTools gives an agent natural-language control over the AgentOS Scheduler. It wraps ScheduleManager so an agent can create, list, enable, disable, and delete cron-based schedules in response to prompts like “Run a daily health check at 9am”.
Prerequisites
Install the scheduler extras:SchedulerTools persists schedules to the same database your AgentOS uses. For scheduled tasks to actually execute, run an AgentOS instance with scheduler=True pointed at that database. See the Scheduler overview for the AgentOS setup.
Example
cookbook/05_agent_os/scheduler/scheduler_tools_agent.py
if_exists="update").
Toolkit Params
| Parameter | Type | Default | Description |
|---|---|---|---|
db | Any | - | Database adapter implementing scheduler methods |
default_endpoint | Optional[str] | None | Default API endpoint to invoke on each run |
default_method | str | "POST" | HTTP method for scheduled requests |
default_timezone | str | "UTC" | Timezone used for cron expressions |
default_payload | Optional[Dict] | None | Default request payload (e.g. {"message": "..."}) |
Toolkit Functions
| Function | Description |
|---|---|
create_schedule | Create a recurring schedule from a cron expression |
list_schedules | List existing schedules |
get_schedule | Fetch a schedule by ID |
delete_schedule | Permanently remove a schedule |
enable_schedule | Activate a disabled schedule |
disable_schedule | Pause a schedule without deleting it |
get_schedule_runs | Retrieve execution history for a schedule |