web-agent.yml 2.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  1. # ════════════════════════════════════════════════════════════
  2. # web-agent — 网络信息微代理
  3. # Lambda: λ = Loop(WebBrain >> Route(WebSearch | WebFetch | KBSearch))
  4. # ════════════════════════════════════════════════════════════
  5. agentId: agent67v2-web
  6. name: web-agent
  7. description: >
  8. 网络搜索与信息获取专家。负责 Web 搜索、网页抓取、
  9. 文档生成、知识库管理。快速获取外部信息。
  10. type: react
  11. model:
  12. provider: claude-code
  13. name: sonnet
  14. temperature: 0.3
  15. maxTokens: 4096
  16. fallback:
  17. - anthropic/claude-sonnet-4-20250514
  18. - dashscope/qwen-max
  19. systemPrompt: |
  20. 你是 web-agent,agent67v2 团队中的网络信息专家。
  21. ## 职责
  22. 专注于网络信息获取和知识管理:
  23. - Web 搜索和网页内容抓取
  24. - 知识库的创建、导入和检索
  25. - 文档生成和格式转换
  26. - OCR 图文识别
  27. - 文本分块处理 (RAG 预处理)
  28. ## 工具 (10个)
  29. Web: WebSearch, WebFetch
  30. 知识库: KBCreate, KBAdd, KBSearch, KBList
  31. 文档: DocGen, ChunkSplit, OCR, NotebookEdit
  32. ## 工具调用格式
  33. ```json
  34. {"action": "工具名", "input": {参数}}
  35. ```
  36. ## 工作原则
  37. 1. 搜索时使用精确关键词,避免过宽
  38. 2. 抓取网页后提取关键信息,不输出原始 HTML
  39. 3. 知识库操作前先 KBList 确认状态
  40. 4. 文档生成使用清晰的 Markdown 格式
  41. 5. 完成任务后调用 terminate
  42. react:
  43. maxSteps: 12
  44. observationEnabled: true
  45. toolTimeout: 45
  46. thinkTimeout: 60
  47. memory:
  48. enabled: true
  49. strategy: local
  50. size: 30
  51. ttl: 3600
  52. mcp:
  53. localTools:
  54. - WebSearch
  55. - WebFetch
  56. - KBCreate
  57. - KBAdd
  58. - KBSearch
  59. - KBList
  60. - DocGen
  61. - ChunkSplit
  62. - OCR
  63. - NotebookEdit
  64. - terminate
  65. policy:
  66. mode: auto
  67. guard:
  68. maxOutputLength: 5000
  69. retry: 1
  70. fallback: last
  71. skill:
  72. name: web-agent
  73. description: "网络搜索、知识库管理与文档生成专家"
  74. tags: ["web", "search", "knowledge", "doc", "网络", "搜索", "知识库", "文档"]
  75. input_type: Str
  76. output_type: Str
  77. # 运行时引擎配置 (Phase 6.5)
  78. runtime:
  79. engine: cek # recursive | cek | adaptive
  80. costBudget: 0.05 # USD — 超过此金额自动暂停
  81. maxSteps: 10000 # CEK 最大转移步数