mirror of
https://github.com/hansjone/oclaw.git
synced 2026-10-09 05:50:44 +08:00
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>
This commit is contained in:
parent
07fd776a39
commit
ad052daaf0
3 changed files with 48 additions and 1 deletions
30
runtime/tools/public/schedule_tools.py
Normal file
30
runtime/tools/public/schedule_tools.py
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
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",
|
||||
]
|
||||
|
||||
Loading…
Add table
Add a link
Reference in a new issue