Skip to content

工具调用类型

当用户查询需要搜索网络信息时,系统会自动调用网页搜索工具。

搜索结果格式:

json
{
  "type": "search",
  "query": "搜索关键词",
  "results": [
    {
      "title": "搜索结果标题",
      "link": "https://example.com",
      "snippet": "搜索结果摘要",
      "position": 1
    }
  ]
}

2. 网页爬取 (web_crawl)

当需要获取特定网页的详细内容时,系统会调用网页爬取工具。

爬取结果格式:

json
{
  "type": "open_page",
  "url": "https://example.com/page",
  "content": "网页内容文本"
}