Enhance CronTool to support executing shell commands and update job handling

This commit is contained in:
Satyam Tiwari
2026-02-12 20:21:49 +05:30
parent 8968d58fed
commit 9c98c11351
4 changed files with 71 additions and 6 deletions

View File

@@ -1034,7 +1034,7 @@ func setupCronTool(agentLoop *agent.AgentLoop, msgBus *bus.MessageBus, workspace
cronService := cron.NewCronService(cronStorePath, nil)
// Create and register CronTool
cronTool := tools.NewCronTool(cronService, agentLoop, msgBus)
cronTool := tools.NewCronTool(cronService, agentLoop, msgBus, workspace)
agentLoop.RegisterTool(cronTool)
// Set the onJob handler