feat: 更新工具名称和描述,增强可读性并支持多平台兼容性

This commit is contained in:
ooodc 2026-05-23 12:24:23 +08:00
parent 4a24758262
commit a74c801945

View File

@ -488,46 +488,52 @@ tools 配置示例:
可用工具名称: 可用工具名称:
- calculator - 数学计算器 - calculator - 数学计算器
- get_time - 获取当前时间 - get_time - 获取当前时间
- file_read - 读取文件 - read - 读取文件
- file_write - 写入文件 - write - 写入文件
- file_edit - 编辑文件 - edit - 编辑文件
- memory_search - 搜索长期记忆 - memory_search - 搜索长期记忆
- memory_manage - 管理长期记忆 - memory_manage - 管理长期记忆
- session_send - 发送会话消息 - send_session_message - 发送会话消息
- scheduler_manage - 管理定时任务 - scheduler_manage - 管理定时任务
- skill_activate - 激活技能 - skill_activate - 激活技能
- skill_list - 列出技能 - skill_manage - 管理技能(含 list 功能)
- skill_manage - 管理技能 - bash - 执行 shell 命令Unix/Linux/macOS
- bash - 执行 shell 命令 - shell - 执行 shell 命令Windows PowerShell/Cmd
- http_request - HTTP 请求 - http_request - HTTP 请求
- web_fetch - 网页抓取 - web_fetch - 网页抓取
- task - 创建和管理子代理
注意bash 和 shell 是同一个工具在不同平台上的名称,运行时自动检测。
## 8. 工具机制 ## 8. 工具机制
PicoBot 的 Agent 是围绕工具调用构建的。当前默认注册的工具包括: PicoBot 的 Agent 是围绕工具调用构建的。当前默认注册的工具包括:
- calculator简单数学计算 - calculator简单数学计算
- time获取当前时间与时区上下文 - get_time获取当前时间与时区上下文
- file_read读取文件 - read读取文件
- file_write写文件 - write写文件
- file_edit编辑文件 - edit编辑文件
- memory_search读取长期记忆 - memory_search读取长期记忆
- memory_manage写入 / 更新 / 删除长期记忆 - memory_manage写入 / 更新 / 删除长期记忆
- send_session_message发送会话消息
- scheduler_manage管理调度任务 - scheduler_manage管理调度任务
- skill_activate读取并激活某个技能内容 - skill_activate读取并激活某个技能内容
- skill_list列出技能 - skill_manage管理技能支持 list, get, create, update, delete, disable, reload
- skill_manage管理技能 - bash / shell执行 shell 命令同一工具Unix 下名称为 bashWindows 下名称为 shell
- bash执行 shell 命令
- http_request发起 HTTP 请求 - http_request发起 HTTP 请求
- web_fetch抓取网页正文 - web_fetch抓取网页正文
- task创建和管理子代理
其中: 其中:
- 文件工具适合做代码库和文档操作 - read / write / edit 文件工具适合做代码库和文档操作
- 记忆工具适合维持长期用户画像 - 记忆工具适合维持长期用户画像
- scheduler_manage 允许 Agent 自主创建后续计划任务 - scheduler_manage 允许 Agent 自主创建后续计划任务
- skill_activate 负责把具体技能正文注入当前任务上下文 - skill_activate 负责把具体技能正文注入当前任务上下文
- bash / http_request / web_fetch 让 Agent 具备更强的外部交互能力 - skill_manage 整合了技能列出与管理功能,支持运行时创建、更新、删除和批量禁用
- bash / shell / http_request / web_fetch 让 Agent 具备更强的外部交互能力bash 和 shell 是同一工具在不同平台的名称)
- task 允许 Agent 创建独立上下文的子代理来处理复杂多步骤任务,支持 general 和 explore 两种类型
## 9. 调度器机制 ## 9. 调度器机制