mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-10-14 00:16:38 +00:00
fix: agent add cron within invalid params (#277)
Co-authored-by: Chung Tran <chung.tran@diqit.io>
This commit is contained in:
1 parent
44197011f8
commit
efd3d15c70
1 file changed
+4
-5
@@ -60,13 +60,12 @@ SCHEDULE TYPES (schedule.kind):
|
||||
{ "kind": "cron", "expr": "<5-field cron expression>", "tz": "<optional IANA timezone, e.g. Asia/Ho_Chi_Minh; omit to use gateway default>" }
|
||||
|
||||
CRITICAL CONSTRAINTS:
|
||||
- name must be a valid slug (lowercase letters, numbers, hyphens only)
|
||||
- message is required for add action
|
||||
- schedule is required for add action
|
||||
- "name" must be a valid slug (lowercase letters, numbers, hyphens only)
|
||||
- For action="add": send the job inside "job", "message" is required and "schedule" is required
|
||||
- For action="update", send changes inside "patch"
|
||||
- Default: jobs run as isolated agent turns with the specified message
|
||||
- Before creating or updating a scheduled job, call the datetime tool first to get the precise current time and unix_ms timestamp. Do NOT guess or estimate timestamps.
|
||||
|
||||
Use jobId as the canonical identifier; id is accepted for compatibility.`
|
||||
- Use "jobId" as the canonical identifier; "id" is accepted for compatibility.`
|
||||
}
|
||||
|
||||
func (t *CronTool) Parameters() map[string]any {
|
||||
|
||||
Reference in new issue
Block a user