```
feat(engine): 添加技能查看工具并优化异步任务管理 - 添加SkillViewTool到引擎加载器中,增强技能管理功能 - 在AgentLoop中引入_active_direct_task来跟踪活跃任务 - 实现直接任务执行时的同步处理逻辑 - 更新工具实例化方式以支持依赖注入 feat(config): 增加智能体运行时参数配置支持 - 扩展AgentDefaultsConfig添加max_tokens和temperature字段 - 实现配置解析函数_first_config_value处理多个配置源 - 支持通过Web API动态更新智能体运行时参数 - 添加前端页面配置表单和验证逻辑 refactor(provider): 统一最大令牌数参数类型为可选整型 - 将所有LLM提供者的max_tokens参数改为int | None类型 - 为AnthropicProvider实现模型特定的最大令牌数默认值 - 调整参数传递逻辑,优先级:调用参数 > 配置文件 > 模型默认值 - 移除硬编码的默认值,改用条件判断 feat(process): 增强事件投影功能 - 添加工具调用开始/结束事件的映射逻辑 - 实现技能激活事件的识别和展示 - 添加辅助函数处理工具调用名称和参数提取 - 优化运行记录关联逻辑,提升事件匹配准确性 fix(web): 更新网络请求客户端信任环境设置 - 将WebFetchTool和WebSearchTool的trust_env参数设为True - 确保HTTP客户端能够正确使用系统代理配置 - 修复可能的网络连接问题 test: 添加配置加载和事件投影相关测试 - 新增智能体默认参数配置测试用例 - 实现API配置持久化和重载测试 - 添加技能卡片和工具事件的投影测试 ```
This commit is contained in:
36
skills/web-operation/versions/v0001/SKILL.md
Normal file
36
skills/web-operation/versions/v0001/SKILL.md
Normal file
@ -0,0 +1,36 @@
|
||||
---
|
||||
name: web-operation
|
||||
description: 网页内容抓取和搜索引擎查询。支持任意 URL 抓取、多搜索引擎和结构化数据提取。
|
||||
tools:
|
||||
- web_fetch
|
||||
- web_search
|
||||
---
|
||||
|
||||
# Web Operation — 网络抓取与搜索
|
||||
|
||||
网页抓取和网络搜索工具集。
|
||||
|
||||
## 工具说明
|
||||
|
||||
### web_fetch
|
||||
获取指定 URL 的网页内容并转换为 Markdown。
|
||||
- 支持 HTML → Markdown 自动转换
|
||||
- 可使用 prompt 参数提取特定信息
|
||||
- 结果由 AI 总结后返回
|
||||
- HTTP URL 自动升级为 HTTPS
|
||||
- 含 15 分钟缓存
|
||||
|
||||
### web_search
|
||||
搜索引擎查询,获取最新网络信息。
|
||||
- 支持 domain 过滤(include/block)
|
||||
- 搜索当前日期的信息使用正确年份
|
||||
- 返回结果包含 URL 链接
|
||||
|
||||
## 使用原则
|
||||
|
||||
1. 优先使用 `web_search` 搜索信息,再用 `web_fetch` 深入阅读
|
||||
2. 获取动态/需要认证的页面可能失败,此时尝试简化请求或换源
|
||||
3. 抓取 API 文档时注意区分 REST API 和 GraphQL
|
||||
4. 搜索结果必须标注来源链接
|
||||
5. 避免短时间内大量请求同一站点(限频)
|
||||
6. 不抓取需要登录认证的私密页面
|
||||
22
skills/web-operation/versions/v0001/version.json
Normal file
22
skills/web-operation/versions/v0001/version.json
Normal file
@ -0,0 +1,22 @@
|
||||
{
|
||||
"change_reason": "Initial skill for web fetching and searching",
|
||||
"content_hash": "placeholder",
|
||||
"created_at": "2026-05-26T00:00:00.000000+00:00",
|
||||
"created_by": "system",
|
||||
"frontmatter": {
|
||||
"description": "网页内容抓取和搜索引擎查询。支持任意 URL 抓取、多搜索引擎和结构化数据提取。",
|
||||
"name": "web-operation",
|
||||
"tools": ["web_fetch", "web_search"]
|
||||
},
|
||||
"parent_version": null,
|
||||
"provenance": {
|
||||
"source": "initial_skills",
|
||||
"source_kind": "initial"
|
||||
},
|
||||
"review_state": "published",
|
||||
"skill_name": "web-operation",
|
||||
"summary": "Web Operation — 网页抓取与网络搜索工具集",
|
||||
"summary_hash": "placeholder",
|
||||
"tool_hints": ["web_fetch", "web_search"],
|
||||
"version": "v0001"
|
||||
}
|
||||
Reference in New Issue
Block a user