功能:
工作流是一个通过google-search和 githubapi 工具获取开源项目最近30天各项活动信息的总结;
输入:
pytorch/pytorch
输出:
agent追踪日志:
输入:
{
"model": {
"completion_params": {},
"mode": "chat",
"model": "Qwen/Qwen3-30B-A3B-Instruct-2507",
"model_type": "llm",
"provider": "langgenius/siliconflow/siliconflow",
"type": "model-selector"
},
"tools": [
{
"credential_id": "a4c514bd-ac5e-41c2-b212-393dc083b1e1",
"enabled": true,
"extra": {
"description": "一个用于执行 Google SERP 搜索并提取片段和网页的工具。输入应该是一个搜索查询。"
},
"parameters": {
"country_code": null,
"language_code": null,
"query": null
},
"provider_name": "langgenius/google/google",
"provider_show_name": "langgenius/google/google",
"settings": {
"as_agent_tool": {
"type": "constant",
"value": false
}
},
"tool_description": "一个用于执行 Google SERP 搜索并提取片段和网页的工具。输入应该是一个搜索查询。",
"tool_label": "谷歌搜索",
"tool_name": "google_search",
"type": "builtin"
},
{
"enabled": true,
"extra": {
"description": "从GitHub仓库获取issues,支持状态过滤、排序和分页选项"
},
"parameters": {
"direction": null,
"owner": null,
"per_page": null,
"repo": null,
"sort": null,
"state": null
},
"provider_name": "langgenius/github/github",
"provider_show_name": "langgenius/github/github",
"settings": {},
"tool_description": "从GitHub仓库获取issues,支持状态过滤、排序和分页选项",
"tool_label": "仓库Issues",
"tool_name": "github_repository_issues",
"type": "builtin"
},
{
"enabled": true,
"extra": {
"description": "从GitHub仓库获取Pull Requests,支持状态过滤、排序和分页选项"
},
"parameters": {
"direction": null,
"owner": null,
"per_page": null,
"repo": null,
"sort": null,
"state": null
},
"provider_name": "langgenius/github/github",
"provider_show_name": "langgenius/github/github",
"settings": {},
"tool_description": "从GitHub仓库获取Pull Requests,支持状态过滤、排序和分页选项",
"tool_label": "仓库Pull Requests",
"tool_name": "github_repository_pulls",
"type": "builtin"
},
{
"enabled": true,
"extra": {
"description": "从GitHub仓库获取发布版本,支持分页选项"
},
"parameters": {
"owner": null,
"per_page": null,
"repo": null
},
"provider_name": "langgenius/github/github",
"provider_show_name": "langgenius/github/github",
"settings": {},
"tool_description": "从GitHub仓库获取发布版本,支持分页选项",
"tool_label": "仓库发布版本",
"tool_name": "github_repository_releases",
"type": "builtin"
}
],
"instruction": "你是一个专业的开源社区监测分析 Agent。你的任务是使用可用的搜索工具(如 Google Search)以及对应的github工具查询用户指定的 GitHub 仓库在最近 30 天内的活动信息,并基于搜索结果生成简体中文、结构化、准确且可读性强的总结报告,报告中需要提供对应各关键内容的跳转链接。\n请按照以下要求执行:\n主动从搜索结果中收集与目标仓库相关的最新信息,时间范围必须限定为最近30 天内。信息范围包括但不限于:\nGitHub 仓库内部活动:Issues、Pull Requests、Releases、Tags、Milestones、Roadmap、Projects、Discussions。\n外部相关内容:技术博客、官方或社区公告、技术会议、行业新闻、外部技术文章、核心成员发言或博客、安全事件或漏洞披露。\n对搜索结果进行整理与分析:\n去重、过滤噪声、剔除无关内容。\n自动忽略超过 当前时间30 天以前的信息。\n将复杂内容简化为清晰、简短的描述。\n自动将内容归类到对应类别。\n提炼出最新进展、重要特性、新增功能、关键修复、重要讨论、发布公告等核心信息及对应链接\n当搜索结果包含时间信息(如“3 days ago”“2 weeks ago”“Nov 2024”),优先判断是否在最近 30 天范围内。\n\n按以下结构化格式输出最终结果,并附上链接,保持条理清晰、简洁易读:\n本期 GitHub 活动总结(仓库:{仓库名},时间范围:最近 30 天)\n最新重大进展:\n重要新特性(Features)及链接:\n关键 Bug 修复(Fixes)及链接:\n重要 PR 与 Issue及链接:\nPR #xxxx:……\nIssue #xxxx:……\nRelease / Tag 摘要 及链接(最近 30 天内):\n版本号:……\n主要变化:……\n会议 / 博客 / 新闻 / 外部动态 及链接(最近 30 天内):\n重要会议:……\n博客与技术文章:……\n行业或社区新闻:……\nRoadmap / 未来趋势 链接:\n综合总结:结合以上所有关键信息用400-500字完成对改仓库近30天活动的简要概括。\n输出要求:使用简体中文。内容必须真实准确,结构清晰,不得捏造,必须是最近30天内的信息。如某一类信息在最近 30 天内没有内容,请标注“暂无相关内容”。",
"query": "pytorch/pytorch",
"maximum_iterations": 20
}
输出日志:
{
"text": "{\n \"action\": \"github_repository_pulls\",\n \"action_input\": {\n \"owner\": \"pytorch\",\n \"repo\": \"pytorch\",\n \"state\": \"all\",\n \"sort\": \"updated\",\n \"direction\": \"desc\",\n \"per_page\": 10\n }\n}",
"usage": {
"completion_price": "0",
"completion_price_unit": "0",
"completion_tokens": 0,
"completion_unit_price": "0",
"currency": "RMB",
"latency": 0,
"prompt_price": "0",
"prompt_price_unit": "0",
"prompt_tokens": 0,
"prompt_unit_price": "0",
"time_to_first_token": null,
"time_to_generate": null,
"total_price": "0.0015141",
"total_tokens": 1965
},
"files": [],
"json": [
{
"data": {
"action_input": "",
"action_name": "",
"observation": "",
"thought": "{\n \"action\": \"github_repository_pulls\",\n \"action_input\": {\n \"owner\": \"pytorch\",\n \"repo\": \"pytorch\",\n \"state\": \"all\",\n \"sort\": \"updated\",\n \"direction\": \"desc\",\n \"per_page\": 10\n }\n}"
},
"error": null,
"id": "c06f0b6f-c92d-46e2-a850-175461b252f5",
"label": "ROUND 1",
"metadata": {
"currency": "RMB",
"elapsed_time": 5.772278695000068,
"finished_at": 1149.064862912,
"started_at": 1143.292584565,
"total_price": "0.0015141",
"total_tokens": 1965
},
"node_id": "17657657450640",
"parent_id": null,
"status": "success"
},
{
"data": {
"action": "{\n \"action\": \"github_repository_pulls\",\n \"action_input\": {\n \"owner\": \"pytorch\",\n \"repo\": \"pytorch\",\n \"state\": \"all\",\n \"sort\": \"updated\",\n \"direction\": \"desc\",\n \"per_page\": 10\n }\n}",
"thought": "{\n \"action\": \"github_repository_pulls\",\n \"action_input\": {\n \"owner\": \"pytorch\",\n \"repo\": \"pytorch\",\n \"state\": \"all\",\n \"sort\": \"updated\",\n \"direction\": \"desc\",\n \"per_page\": 10\n }\n}"
},
"error": null,
"id": "62b9c401-e835-4110-ba52-21965a04b983",
"label": "Qwen/Qwen3-30B-A3B-Instruct-2507 Thought",
"metadata": {
"currency": "RMB",
"elapsed_time": 5.771518316000083,
"finished_at": 1149.064601222,
"icon": "0179a4422f60cc28de38c7b3395b8504c9a7516c050d355849784a46bcea3b91.svg",
"icon_dark": null,
"provider": "langgenius/siliconflow/siliconflow",
"started_at": 1143.293083623,
"total_price": "0.0015141",
"total_tokens": 1965
},
"node_id": "17657657450640",
"parent_id": "c06f0b6f-c92d-46e2-a850-175461b252f5",
"status": "success"
},
{
"data": []
}
]
}
