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:
11
app/tests/fixtures/fake_engine_worker.py
vendored
11
app/tests/fixtures/fake_engine_worker.py
vendored
@@ -25,9 +25,16 @@ class LevelTranscriber:
|
||||
|
||||
|
||||
class FakeBrain:
|
||||
"""Answers with two sentences, says only "켜" (on) requests were said to it, ranks in reverse."""
|
||||
"""Answers with two sentences, says only "켜" (on) requests were said to it, ranks in reverse.
|
||||
"예약" adds a reminder through the schedule backend and answers with its result; a task answers
|
||||
"task: <text>"."""
|
||||
|
||||
def reply(self, user, text, history, chat=None):
|
||||
def reply(self, user, text, history, chat=None, schedule=None, task=False):
|
||||
if task:
|
||||
return f"task: {text}"
|
||||
if "예약" in text and schedule is not None:
|
||||
got = schedule.act("add", kind="remind", text="물 마시기", at=4_000_000_000.0, repeat="daily")
|
||||
return f"scheduled {got.get('item', {}).get('id')} {got.get('error', '')}".strip()
|
||||
return "첫 문장입니다. 둘째 문장입니다."
|
||||
|
||||
def addressed(self, user, text, names):
|
||||
|
||||
Reference in New Issue
Block a user