返回顶部
m

multi-agent多智能体

Use when requests involve writing articles, generating news, fetching hotspots, or producing content for social media (WeChat, Xiaohongshu, etc.). Triggers include "写文章", "生成新闻", "热点文章", "AI新闻", "写推文", "公众号", "小红书", "内容创作", or any article/content generation task.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.1
安全检测
已通过
109
下载量
免费
免费
1
收藏
概述
安装方式
版本历史

multi-agent

Multi-Agent Writer

三阶段多智能体写作流水线:

  1. 1. 热点抓取 — 通过DuckDuckGo搜索近7天实时新闻,由LLM筛选推荐选题
  2. 文章撰写 — WriterAgent生成微信公众号风格文章(含3组备选标题)
  3. 审校循环 — ReviewerAgent按5个维度打分,低于通过线则自动触发修改,最多N轮

项目已安装至:



快速调用

Demo模式(无需API Key,约1秒完成)

bash
cd
python main.py --demo
python main.py --demo --topic 量子计算 --words 800

生产模式(需在.env中配置LLM API Key)

bash
cd
python main.py --topic AI --words 1000 --pass-threshold 85



全部CLI参数


参数类型默认值说明
--topicstrAI关注的领域/话题
--count
int | 5 | 抓取热点数量 |
| --style | str | 深度分析 | 文章写作风格 |
| --words | int | 1000 | 目标字数 |
| --max-revisions | int | 2 | 最大审校-修改轮次 |
| --pass-threshold | int | 85 | 审校通过最低分(1-100) |
| --output | str | output.json | 输出文件路径 |
| --demo | flag | False | 使用Mock LLM,无需API |


输出文件


文件格式内容
output.jsonJSON完整结果:热点、文章、审校历史、耗时
output.md
Markdown | 可直接复制的文章正文 |
| experiments.tsv | TSV | 追加实验记录(分数、状态、通过线等) |


Python程序化调用

python
import sys
sys.path.insert(0, )

from orchestrator import Orchestrator
from base_agent import LLMClient
from config import ReviewConfig, LLMConfig
from search import DuckDuckGoSearchClient

llmconfig = LLMConfig.fromenv()
llm = LLMClient(
apikey=llmconfig.api_key,
baseurl=llmconfig.base_url,
model=llm_config.model,
apistyle=llmconfig.api_style,
)

orchestrator = Orchestrator(
llm=llm,
max_revisions=2,
reviewconfig=ReviewConfig(passthreshold=85),
search_client=DuckDuckGoSearchClient(),
)

result = orchestrator.run(
topic=AI,
hotspot_count=5,
article_style=深度分析,
articlewordcount=1000,
)

print(result.final_article[title])
print(result.final_article[content])



审校维度(5维,共100分)


维度权重说明
内容洞察力30分新颖观点、信息价值
可读性
25分 | 短段落、移动端友好 |
| 标题吸引力 | 20分 | 点击率、情绪共鸣 |
| 结构流畅性 | 15分 | 开篇钩子、逻辑递进 |
| 准确性 | 10分 | 事实正确 |


环境配置(.env文件)

bash
LLMAPIKEY=your-api-key
LLMBASEURL=https://api.moonshot.cn/v1 # 可选
LLM_MODEL=moonshot-v1-8k # 可选
LLMAPISTYLE=openai # openai 或 anthropic

支持:Kimi、DeepSeek、OpenAI、Claude、Qwen、GLM、Ollama等兼容OpenAI/Anthropic API的模型。



常见场景

bash

生成科技领域热点文章


python main.py --topic AI大模型 --words 1500 --style 深度分析

严格评分A/B测试

python main.py --demo --pass-threshold 90 --description strict_90 python main.py --demo --pass-threshold 75 --description loose_75

运行测试(验证系统完整性)

cd && pytest

关键文件

/
├── main.py # CLI入口
├── orchestrator.py # 工作流协调器
├── agents.py # 3个业务智能体
├── base_agent.py # LLMClient、BaseAgent框架
├── config.py # 配置类
├── search.py # DuckDuckGo搜索封装
└── tests/

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 multi-agent-writer-1775934389 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 multi-agent-writer-1775934389 技能

通过命令行安装

skillhub install multi-agent-writer-1775934389

下载

⬇ 下载 multi-agent v1.0.1(免费)

文件大小: 7.96 KB | 发布时间: 2026-4-12 10:40

v1.0.1 最新 2026-4-12 10:40
Version 1.1.0 expands supported content platforms and triggers.

- Broadened skill description and triggers to cover social media platforms such as WeChat (公众号) and Xiaohongshu (小红书), in addition to articles/news.
- Updated trigger keywords to include "写推文", "公众号", "小红书", "内容创作" and other content generation tasks.
- Added explicit version field to metadata.
- No code or file structure changes detected.

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部