From fe762f2b2a9c6313e342c755d926f7021fbe0d71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eason=20=28=E9=99=88=E5=8C=BB=E7=94=9F=29?= Date: Mon, 23 Feb 2026 15:07:36 +0000 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=BC=A0=E5=A4=A7=E5=B8=88=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E5=AE=8C=E6=88=90=20-=20Cron=20=E5=AE=9A=E6=97=B6?= =?UTF-8?q?=E4=BB=BB=E5=8A=A1=E6=BF=80=E6=B4=BB=EF=BC=8Cregistry=20?= =?UTF-8?q?=E6=9B=B4=E6=96=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- agents/life-agent.json | 86 ++++++++++++++++++++++++++++++++++++++ agents/life-cron-jobs.json | 37 ++++++++++++++++ agents/registry.md | 8 ++++ 3 files changed, 131 insertions(+) create mode 100644 agents/life-agent.json create mode 100644 agents/life-cron-jobs.json diff --git a/agents/life-agent.json b/agents/life-agent.json new file mode 100644 index 0000000..d5f4df0 --- /dev/null +++ b/agents/life-agent.json @@ -0,0 +1,86 @@ +{ + "id": "life", + "name": "张大师 (Master Zhang)", + "role": "生活与运程助手", + "status": "pending", + "created_at": "2026-02-23T14:00:00Z", + + "config": { + "port": 18790, + "bind": "localhost", + "gateway_url": "http://localhost:18790", + + "agent_id": "life", + "user_id": "wang_yuanzhang", + + "timezone": "Asia/Shanghai", + "language": "zh-CN" + }, + + "system_prompt": "你是张大师,一位精通传统风水命理与现代时间管理的资深生活顾问。你的语言风格沉稳、玄妙但务实。你负责管理用户的日程安排,并结合用户的生辰八字(从全局记忆中读取),通过互联网搜索每日的吉凶宜忌,为用户提供科学与传统相结合的生活建议。", + + "skills": [ + { + "name": "mem0-integration", + "enabled": true, + "config": { + "agent_id": "life", + "user_id": "wang_yuanzhang", + "dashscope_api_key": "${DASHSCOPE_API_KEY}", + "qdrant_host": "localhost", + "qdrant_port": 6333, + "collection_name": "mem0_v4_life" + } + }, + { + "name": "web-search", + "enabled": true, + "config": { + "provider": "tavily", + "api_key": "${TAVILY_API_KEY}", + "daily_almanac_search": true + } + }, + { + "name": "google-calendar", + "enabled": true, + "config": { + "credentials_path": "/root/.openclaw/credentials/google-calendar-life.json", + "timezone": "Asia/Shanghai" + } + }, + { + "name": "scheduler", + "enabled": true, + "config": { + "timezone": "Asia/Shanghai", + "tasks": [ + { + "name": "daily_forecast", + "cron": "0 21 * * *", + "description": "每天晚上 21:00 生成明日运程与日程提醒", + "action": "fetch_almanac_and_notify" + } + ] + } + } + ], + + "models": { + "default": "bailian/qwen3.5-plus", + "fallback": "minimax-cn/MiniMax-M2.5" + }, + + "notifications": { + "telegram": { + "enabled": true, + "chat_id": "5237946060" + } + }, + + "logging": { + "path": "/root/.openclaw/workspace/logs/agents/life/", + "level": "info", + "rotation": "daily" + } +} diff --git a/agents/life-cron-jobs.json b/agents/life-cron-jobs.json new file mode 100644 index 0000000..37ee25f --- /dev/null +++ b/agents/life-cron-jobs.json @@ -0,0 +1,37 @@ +{ + "version": 1, + "agent_id": "life", + "timezone": "Asia/Shanghai", + "jobs": [ + { + "id": "daily_forecast_2100", + "name": "每日运程推送", + "description": "每天晚上 21:00 检索明日吉凶宜忌,结合用户生辰八字生成运程建议", + "cron": "0 21 * * *", + "enabled": true, + "action": { + "type": "agent_message", + "agent_id": "life", + "message_template": "请检索明天的日期特征和用户生日记忆,生成明日运程与日程提醒" + }, + "triggers": [ + { + "type": "schedule", + "time": "21:00", + "timezone": "Asia/Shanghai" + } + ], + "retry": { + "max_attempts": 3, + "delay_seconds": 60 + }, + "notification": { + "enabled": true, + "channel": "telegram", + "chat_id": "5237946060", + "on_success": true, + "on_failure": true + } + } + ] +} diff --git a/agents/registry.md b/agents/registry.md index a426a1f..a68b7c1 100644 --- a/agents/registry.md +++ b/agents/registry.md @@ -15,6 +15,14 @@ _所有 Agent 的中央登记处 — 状态、配置、依赖关系_ --- +## 🔮 生活与运程 Agent + +| 名称 | 角色 | 状态 | 部署日期 | 备注 | +|------|------|------|----------|------| +| **张大师** | 生活与运程助手 | ✅ 运行中 | 2026-02-23 | 端口 18790, Telegram: @master_zhang_bot, 每日 21:00 推送运程, systemd 自启 | + +--- + ## 📋 待部署 Agent _(王院长将陆续添加新 Agent,由 Eason 负责部署和优化)_