parent
c3b41bc1d0
commit
664d6e352d
4 changed files with 177 additions and 1 deletions
@ -0,0 +1,59 @@ |
||||
# mem0 Integration Configuration - 张大师专用 |
||||
# Agent ID: life (生活与运程助手) |
||||
# 用户生辰:1984 年 5 月 16 日 23:00-24:00 (子时) |
||||
|
||||
# 本地 Qdrant 配置 |
||||
local: |
||||
vector_store: |
||||
provider: qdrant |
||||
config: |
||||
host: localhost |
||||
port: 6333 |
||||
collection_name: mem0_v4_life # 张大师专用集合 |
||||
|
||||
llm: |
||||
provider: openai |
||||
config: |
||||
model: qwen-plus |
||||
api_base: https://dashscope.aliyuncs.com/compatible-mode/v1 |
||||
api_key: ${DASHSCOPE_API_KEY} |
||||
|
||||
embedder: |
||||
provider: openai |
||||
config: |
||||
model: text-embedding-v4 |
||||
api_base: https://dashscope.aliyuncs.com/compatible-mode/v1 |
||||
api_key: ${DASHSCOPE_API_KEY} |
||||
|
||||
# 中心 Qdrant 配置(共享记忆 - 与陈医生共享) |
||||
master: |
||||
vector_store: |
||||
provider: qdrant |
||||
config: |
||||
host: 100.115.94.1 |
||||
port: 6333 |
||||
collection_name: mem0_v4_shared |
||||
|
||||
# 同步配置 |
||||
sync: |
||||
enabled: true |
||||
interval: 300 |
||||
batch_size: 50 |
||||
retry_attempts: 3 |
||||
|
||||
# 缓存配置 |
||||
cache: |
||||
enabled: true |
||||
ttl: 300 |
||||
max_size: 1000 |
||||
|
||||
# 元数据隔离 |
||||
metadata: |
||||
user_id: wang_yuanzhang |
||||
agent_id: life |
||||
user_profile: |
||||
birthday: "1984-05-16" |
||||
birth_time: "23:00-24:00" |
||||
chinese_zodiac: "鼠" |
||||
birth_hour: "子时" |
||||
timezone: "Asia/Shanghai" |
||||
@ -0,0 +1,50 @@ |
||||
[Unit] |
||||
Description=OpenClaw Agent - 张大师 (Life Assistant) |
||||
Documentation=https://docs.openclaw.ai |
||||
After=network.target network-online.target |
||||
Wants=network-online.target |
||||
|
||||
[Service] |
||||
Type=simple |
||||
User=root |
||||
WorkingDirectory=/root/.openclaw |
||||
|
||||
# Environment variables |
||||
Environment=NODE_ENV=production |
||||
Environment=AGENT_ID=life |
||||
Environment=AGENT_PORT=18790 |
||||
Environment=DASHSCOPE_API_KEY=sk-4111c9dba5334510968f9ae72728944e |
||||
Environment=TAVILY_API_KEY=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 |
||||
Environment=XDG_RUNTIME_DIR=/run/user/0 |
||||
Environment=DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/0/bus |
||||
|
||||
# Start the agent gateway on port 18790 |
||||
ExecStart=/usr/bin/node /www/server/nodejs/v24.13.1/bin/openclaw gateway start --port 18790 --agent-id life |
||||
ExecReload=/bin/kill -HUP $MAINPID |
||||
|
||||
# Auto-healing configuration |
||||
Restart=always |
||||
RestartSec=10 |
||||
StartLimitInterval=300 |
||||
StartLimitBurst=5 |
||||
|
||||
# Resource limits |
||||
MemoryLimit=1G |
||||
CPUQuota=40% |
||||
|
||||
# Logging |
||||
StandardOutput=journal |
||||
StandardError=journal |
||||
SyslogIdentifier=openclaw-agent-life |
||||
|
||||
# Security hardening |
||||
NoNewPrivileges=true |
||||
ProtectSystem=strict |
||||
ProtectHome=read-only |
||||
ReadWritePaths=/root/.openclaw |
||||
|
||||
# Watchdog for health monitoring |
||||
WatchdogSec=30 |
||||
|
||||
[Install] |
||||
WantedBy=multi-user.target |
||||
Loading…
Reference in new issue