Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

feat(tools): add schedule tool for system task scheduling

Steven Enamakel37423167a5f6
diff --git a/crates/openhuman-core/src/tools/impl/system/schedule.rs b/crates/openhuman-core/src/tools/impl/system/schedule.rs
index 1721d6b349..f0fd3cce9d 100644
--- a/crates/openhuman-core/src/tools/impl/system/schedule.rs
+++ b/crates/openhuman-core/src/tools/impl/system/schedule.rs
@@ -325,7 +325,7 @@ impl ScheduleTool {
active_hours: None,
}
} else if let Some(delay_str) = delay {
- let at = Utc::now() + tinyflows_schedule::validation::parse_human_delay(delay_str)?;
+ let at = Utc::now() + crate::cron::client::parse_human_delay(&self.config, delay_str).await?;
Schedule::At { at }
} else if let Some(at_str) = run_at {
let at: DateTime<Utc> = DateTime::parse_from_rfc3339(at_str)