oclaw/runtime/tools/public/schedule_tools.py
oliver ad052daaf0 feat(tools): expose schedule tools to all specialists
Move schedule_* tool factories into the public registry so ops/generalist both can create and manage scheduled jobs, and add an English schedule shortcut.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-07-02 15:42:06 +08:00

30 lines
850 B
Python

from __future__ import annotations
"""Scheduled job tools exposed to all specialists.
These tools are low-risk persistence operations (create/update/pause/delete scheduled jobs) and
are useful across specialists (ops, generalist, etc.). They remain context-scoped via
`runtime.tools.context_inject.enrich_tool_arguments`, so tenant/user/session are filled from the
current chat session.
"""
from runtime.tools.experts.productivity.schedule_tools import (
schedule_create_tool,
schedule_delete_tool,
schedule_list_tool,
schedule_pause_tool,
schedule_resume_tool,
schedule_run_now_tool,
schedule_update_tool,
)
__all__ = [
"schedule_create_tool",
"schedule_delete_tool",
"schedule_list_tool",
"schedule_pause_tool",
"schedule_resume_tool",
"schedule_run_now_tool",
"schedule_update_tool",
]