feat: reminders and scheduled tasks (schedule tool, app store and delivery)
The brain gets a schedule tool (add, list, delete the asker's own reminders, timers and tasks) offered only with a schedule backend. The voice worker asks the app through schedule_action and runs fired tasks as reply via task with read-only tools, no MCP and a fresh short-term memory. The app keeps the schedules in config/schedules.json, fires them every 5 s, speaks them when the person is in Jarvis's voice channel and otherwise posts in the chat channel they asked in (or schedule.chatChannel for voice). A feature switch and a 예약 screen list and delete everyone's schedules. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,9 @@ user : Optional[str]
|
||||
chat : Optional[object]
|
||||
v2: the chat channel backend for this turn (chat_channels.spec.md). None
|
||||
means the chatChannels tool is not offered.
|
||||
schedule : Optional[object]
|
||||
v2: the asker's reminders and scheduled tasks for this turn (schedule.spec.md). None means the
|
||||
schedule tool is not offered (v1, evals, and scheduled tasks themselves).
|
||||
"""
|
||||
|
||||
from __future__ import annotations
|
||||
@@ -38,6 +41,15 @@ def reset() -> None:
|
||||
_state.broadcast_action = None
|
||||
_state.user = None
|
||||
_state.chat = None
|
||||
_state.schedule = None
|
||||
|
||||
|
||||
def set_schedule(backend) -> None:
|
||||
_state.schedule = backend
|
||||
|
||||
|
||||
def get_schedule():
|
||||
return getattr(_state, "schedule", None)
|
||||
|
||||
|
||||
def set_chat(backend) -> None:
|
||||
|
||||
Reference in New Issue
Block a user