fix: remove wechatagent-specific references, make fully generic

This commit is contained in:
root
2026-05-31 17:46:31 +08:00
parent cf8f68533c
commit 8b055a2bbc
3 changed files with 14 additions and 9 deletions

View File

@ -57,15 +57,23 @@ cp -r skill/novel-continuation-ai /home/program/novelist-workspace/skills/
cp agent/AGENTS.md /home/program/novelist-workspace/AGENTS.md
```
### 4. 安装桥接脚本(可选,wechatagent 用)
### 4. 安装桥接脚本(可选,调用方 Agent 用)
```bash
# 复制桥接脚本
cp bridge/ask_novelist.py /home/program/wechat-workspace/scripts/
cp bridge/SKILL.md /home/program/wechat-workspace/skills/novelist-bridge/SKILL.md
# 复制桥接脚本到调用方 Agent 的工作区
cp bridge/ask_novelist.py <calling-agent-workspace>/scripts/
cp bridge/SKILL.md <calling-agent-workspace>/skills/novelist-bridge/SKILL.md
```
### 5. 注册 Agent(如果未注册)
### 5. 配置 ask_novelist.py
编辑 `ask_novelist.py` 顶部常量:
```python
GATEWAY_TOKEN = "<your-gateway-token>" # 从 openclaw.json 获取
NOVELIST_MODEL = "openclaw/novelist" # 你的 novelist agent 名称
NOVELIST_WORKSPACE = "/home/program/novelist-workspace" # novelist 工作区
```
```bash
openclaw agents add novelist \