Skip to main content

Module schedule_tool

Module schedule_tool 

Source
Expand description

Schedule: one tool for prompts injected on a schedule, with an action (docs/specs/SPEC_MUXAPI_TOOL_CONSOLIDATION_2026_10_15.md §4.2, slice S3). It replaces the five Cron* tools and the three Loop* tools: create with cron is a persistent job (cron.rs), with every a loop that lives as long as this agent’s session (loops.rs). Their handlers run unchanged.

Constants§

ACTIONS 🔒
CRON_ONLY 🔒
create parameters only a cron job takes, and only a loop takes.
LOOP_ONLY 🔒

Functions§

call 🔒
is_loop_id 🔒
Loops are named loop-<n> (loops.rs); everything else is a cron job id.
refuse_other_kinds 🔒
A parameter of the other kind is an error, not dropped: max_fires on a loop would otherwise leave it running without limit.
route 🔒
The handler for an action, and its arguments as that handler takes them.