agent-zero/tools
wgnrai c8ef26b289 fix: coerce TaskSchedule cron fields to str to prevent Pydantic ValidationError
TaskSchedule model fields (minute, hour, day, month, weekday) are typed as str,
but LLMs frequently pass integers (e.g. 0, 9). Pydantic v2 does not auto-coerce
int to str, causing ValidationError when creating scheduled tasks.

Fix wraps all schedule dict values with str() in both construction sites:
- tools/scheduler.py: create_scheduled_task()
- helpers/task_scheduler.py: parse_task_schedule()
2026-04-08 22:46:51 +00:00
..
a2a_chat.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
browser._py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
browser_do._py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
browser_open._py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
call_subordinate.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
document_query.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
knowledge_tool._py refactor - plugin names and builtin plugins 2026-03-10 22:20:53 +01:00
notify_user.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
response.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
scheduler.py fix: coerce TaskSchedule cron fields to str to prevent Pydantic ValidationError 2026-04-08 22:46:51 +00:00
search_engine.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00
skills_tool.py Sanitize print logs; refactor popular plugin logic 2026-03-30 11:50:59 +02:00
unknown.py refactor: split system prompt into per-concern extensions with extensibility hooks 2026-03-20 12:12:47 +08:00
vision_load.py refactor(chat_branching): ID-based log ↔ history linking for precise branch trimming 2026-03-24 03:04:09 -07:00
wait.py BIG PYTHON REFACTOR 2026-03-05 17:28:11 +01:00