Commit Graph

814 Commits

Author SHA1 Message Date
朱潮
59cf7fd904 🐛 fix: 修复 prompt 模板花括号转义,避免 str.format() KeyError
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:36:09 +08:00
朱潮
2216b01dcb 🐛 fix: 修复 prompt 模板花括号转义及 tool_call_chunk 安全访问
- prompt 中 JSON 示例的 {} 被 str.format() 误解析为模板变量,转义为 {{}}
- tool_call_chunk 改用 .get() 安全访问,避免 KeyError

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 23:35:12 +08:00
朱潮
b1b98caad7 安全访问,同时兼容 dict 和对象两种类型。这样即使某个 chunk 缺少 name 字段也不会崩溃。 2026-04-04 23:31:46 +08:00
朱潮
314a693793 Merge branch 'developing' into bot_manager 2026-04-04 23:24:17 +08:00
朱潮
044749e2ce 在 "Skill Execution Workflow" 之前新增了 "Skills vs Tools - CRITICAL DISTINCTION"
段落
2026-04-04 23:24:07 +08:00
朱潮
2774069f8e add weather 2026-04-04 21:06:56 +08:00
朱潮
2cc8b893f7 remove 2026-04-04 08:01:21 +08:00
朱潮
f3165944d2 docs: enhance weather-forecasts SKILL.md with time-range queries
Add tomorrow, day after tomorrow, and 7-day weekly forecast examples.
Expand Open-Meteo section with daily and hourly forecast endpoints.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-04 08:00:47 +08:00
朱潮
85a2b50798 add schedule-jpb 2026-04-03 21:11:48 +08:00
朱潮
cc7336b3a4 add nfc-medicine-lookup 2026-04-03 21:10:19 +08:00
朱潮
1321471202 add file_manage doc 2026-04-03 19:57:34 +08:00
朱潮
b23412b84b Merge branch 'feature/pre-memory-prompt' into onprem-release 2026-04-03 11:59:37 +08:00
朱潮
c4a0ce1162 Merge branch 'feature/pre-memory-prompt' into onprem-dev 2026-04-03 11:55:53 +08:00
朱潮
0d18c2fc61 Merge branch 'feature/pre-memory-prompt' into bot_manager 2026-04-03 11:29:04 +08:00
朱潮
05e22391ed merge FACT_RETRIEVAL_PROMPT.md 2026-04-03 10:34:09 +08:00
朱潮
a3cbe5902a Merge branch 'feature/pre-memory-prompt' into staging 2026-04-03 09:21:25 +08:00
朱潮
ab6b68268e Merge branch 'feature/pre-memory-prompt' into dev 2026-04-02 17:49:21 +08:00
朱潮
5eb0b7759d 🐛 fix: 修复 Mem0 连接池耗尽问题,改为操作级连接获取/释放
每个缓存的 Mem0 实例长期持有数据库连接导致并发时连接池耗尽。
改为每次操作前从池中获取连接、操作后立即释放,并添加 Semaphore 限制并发数。

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 17:46:00 +08:00
朱潮
845815866e Merge branch 'feature/pre-memory-prompt' into dev 2026-04-02 16:49:32 +08:00
朱潮
7da8466b3d feat: 记忆排除规则新增设备状态查询、故障报告、联系方式查找
- 新增排除类别:设备/设施状态查询与结果、Bug/故障报告、联系方式查找
- 新增3个日语负例 few-shot examples

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:48:11 +08:00
朱潮
76e742e7b3 merge FACT_RETRIEVAL_PROMPT.md 2026-04-02 16:45:29 +08:00
朱潮
bb23d230d1 feat: 优化记忆提示词,过滤操作性/查询性动作
- 新增 EXCLUDE 排除规则,过滤查询动作、设备操作、一次性指令等不应记忆的信息
- 新增7个日语负例 few-shot examples(查询员工信息、操作灯光、设置空调等)
- 新增核心判断规则:只记忆用户是谁,不记忆用户让助手做了什么
- 同步合并 dev 分支的 plain language 规则和语义完整性改进

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-02 16:44:04 +08:00
朱潮
738a904a6f merge 2026-04-02 11:25:20 +08:00
autobee-sparticle
213e541697
fix: resolve PrePrompt Hook env var crash and increase Mem0 pool size (#24)
1. Fix "all environment values must be bytes or str" error in hook execution
   by ensuring all env values are converted to str (getattr may return None
   when attribute exists but is None). Also sanitize shell_env values.

2. Increase MEM0_POOL_SIZE default from 20 to 50 to address "connection pool
   exhausted" errors under high concurrency.

Fixes: sparticleinc/felo-mygpt#2519

Co-authored-by: zhuchao <zhuchaowe@163.com>
Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-04-01 22:04:31 +09:00
朱潮
97678703fe Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-04-01 10:38:18 +08:00
朱潮
44db634cbb Merge branch 'feature/moshui20260330-schedule-job' into dev 2026-04-01 10:37:16 +08:00
朱潮
d6ee567758 schedule 优化 2026-04-01 10:37:03 +08:00
朱潮
fd0fbc422d uuid2str 2026-04-01 10:27:21 +08:00
朱潮
6d6c7a92ef add voice skill 2026-04-01 10:26:17 +08:00
朱潮
a0e0c8c7b6 Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 20:56:54 +08:00
朱潮
89a9d81892 Merge branch 'feature/moshui20260330-schedule-job' into dev 2026-03-31 20:56:29 +08:00
朱潮
85a262257e update schedule skill 2026-03-31 20:56:20 +08:00
朱潮
dc2e8a39e3 Merge branch 'feature/moshui20260330-schedule-job' into dev 2026-03-31 20:04:49 +08:00
朱潮
9d422eb3e7 Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 19:31:50 +08:00
朱潮
d38a737730 两个 Dockerfile 中的 npm 安装命令里添加了 nodemailer
和 dotenv:
2026-03-31 19:30:40 +08:00
朱潮
7b622d8544 Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 16:23:11 +08:00
朱潮
daa5bf345a update schedule skill 2026-03-31 16:23:03 +08:00
朱潮
bd91238a6e Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 16:11:18 +08:00
朱潮
bc59234eac update skill 2026-03-31 16:11:09 +08:00
朱潮
41b4329b5e Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 14:37:28 +08:00
朱潮
c2f7148f98 增加环境变量到pre prompt 2026-03-31 14:37:20 +08:00
朱潮
80559bdd7d _call_agent_v3 2026-03-31 14:29:24 +08:00
朱潮
b4cf5face0 Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 11:20:12 +08:00
朱潮
393c4e4138 schedule 通过 aiohttp POST 请求调用
http://127.0.0.1:8001/api/v2/chat/completions
2026-03-31 11:19:59 +08:00
朱潮
7ad51c95c0 Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 10:06:15 +08:00
朱潮
4090b4d734 将 users 改为 Path(users),使 / 运算符可以正确拼接路径。 2026-03-31 10:06:07 +08:00
朱潮
a665c01530 Merge branch 'feature/moshui20260330-schedule-job' into bot_manager 2026-03-31 10:00:27 +08:00
朱潮
9cc0d72430 update schedule 2026-03-31 10:00:16 +08:00
朱潮
2b749e988f merge from feature/moshui20260330-schedule-job 2026-03-31 09:46:17 +08:00
朱潮
3b9c7165a9 feat: 添加定时任务调度系统(schedule-job)
- 新增 schedule-job skill,支持 cron 周期任务和一次性定时任务
- 新增 schedule_manager.py CLI 工具(list/add/edit/delete/toggle/logs)
- 新增 ScheduleExecutor 全局异步调度器,每 60s 扫描到期任务并调用 agent 执行
- 任务数据存储在 projects/robot/{bot_id}/users/{user_id}/tasks.yaml
- 执行结果写入 task_logs/execution.log
- 集成到 FastAPI lifespan 生命周期管理
- 添加 croniter、pyyaml 依赖

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-30 23:17:47 +08:00