mirror of
https://github.com/langbot-app/LangBot.git
synced 2026-11-25 07:31:32 +08:00
* feat(plugins): add timezone config to ScheNotify for all tools (LANG-319) Add a `timezone` plugin config (IANA name, UTC, or an offset such as UTC+8; empty keeps the server's local timezone). get_current_time_str reports the time in it, schedule_notify interprets time_str in it, and !sche / !dsche display reminder times in it. Reminders now store aware instants, so the detached scheduler compares against UTC without reading installation config. Bump to 0.2.7 and add tzdata. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai> * fix(plugins): deliver ScheNotify reminders under audit-correlating SDKs (LANG-319) The scheduler task was created with a copy of the scheduling invocation's context, which carries the SDK's per-action audit correlation. SDKs that close that correlation when the action returns (langbot-plugin 0.7.21, pinned by Core) then rejected every delivery with "Plugin audit invocation has ended", so no reminder was ever sent. Start the loop from an empty context; it already re-enters the captured invocation. Found during live acceptance; adds a regression test that relays the audit correlation like the real handler. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai> --------- Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com> Co-authored-by: multica-agent <github@multica.ai>
29 lines
1014 B
YAML
29 lines
1014 B
YAML
apiVersion: v1
|
|
kind: Tool
|
|
metadata:
|
|
name: schedule_notify
|
|
label:
|
|
en_US: Schedule Notification
|
|
zh_Hans: 计划通知
|
|
description:
|
|
en_US: 'Schedule a notification at a specific time'
|
|
zh_Hans: '在指定时间计划一个通知提醒'
|
|
spec:
|
|
parameters:
|
|
type: object
|
|
properties:
|
|
time_str:
|
|
type: string
|
|
description: 'Time string in format "%Y-%m-%d %H:%M:%S", e.g. "2024-12-25 18:30:00", in the timezone reported by get_current_time_str (do not convert it to another timezone). MUST call get_current_time_str first to get the current time before scheduling.'
|
|
message:
|
|
type: string
|
|
description: 'The notification message content to remind the user'
|
|
required:
|
|
- time_str
|
|
- message
|
|
llm_prompt: 'Schedule a notification at a specific time. IMPORTANT: You MUST call get_current_time_str first to get the latest current time before calling this function.'
|
|
execution:
|
|
python:
|
|
path: schedule_notify.py
|
|
attr: ScheduleNotify
|