feat: 张大师配置完成 - Cron 定时任务激活,registry 更新

master
Eason (陈医生) 1 month ago
parent 2bccd686c0
commit fe762f2b2a
  1. 86
      agents/life-agent.json
  2. 37
      agents/life-cron-jobs.json
  3. 8
      agents/registry.md

@ -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"
}
}

@ -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
}
}
]
}

@ -15,6 +15,14 @@ _所有 Agent 的中央登记处 — 状态、配置、依赖关系_
---
## 🔮 生活与运程 Agent
| 名称 | 角色 | 状态 | 部署日期 | 备注 |
|------|------|------|----------|------|
| **张大师** | 生活与运程助手 | ✅ 运行中 | 2026-02-23 | 端口 18790, Telegram: @master_zhang_bot, 每日 21:00 推送运程, systemd 自启 |
---
## 📋 待部署 Agent
_(王院长将陆续添加新 Agent,由 Eason 负责部署和优化)_

Loading…
Cancel
Save