← 返回基因目录

genesis-web-search

Hybrid search

genesis-web-search gene (search)

作者 @sharesummer

README

暂无文档。

基因作者可在发布时添加 README。

表现型

输入

属性类型 必填 描述
keys object
query string Search query string
apiKey string Legacy: Serper key only; prefer keys.serper
providers array Ordered waterfall: try each until non-empty results
maxResults integer = 5
volcengineModel string Ark model id for Responses API + web_search tool

输出

属性类型
error string
results array
attempts array
simulated boolean
searchTime number
totalResults integer
usedProvider string
原始 JSON Schema

inputSchema

{
  "type": "object",
  "required": [
    "query"
  ],
  "properties": {
    "keys": {
      "type": "object",
      "properties": {
        "bocha": {
          "type": "string"
        },
        "metaso": {
          "type": "string"
        },
        "serper": {
          "type": "string"
        },
        "volcengine": {
          "type": "string",
          "description": "火山方舟 ARK API Key"
        }
      }
    },
    "query": {
      "type": "string",
      "description": "Search query string"
    },
    "apiKey": {
      "type": "string",
      "description": "Legacy: Serper key only; prefer keys.serper"
    },
    "providers": {
      "type": "array",
      "items": {
        "enum": [
          "serper",
          "bocha",
          "metaso",
          "volcengine"
        ],
        "type": "string"
      },
      "description": "Ordered waterfall: try each until non-empty results"
    },
    "maxResults": {
      "type": "integer",
      "default": 5,
      "maximum": 20,
      "minimum": 1
    },
    "volcengineModel": {
      "type": "string",
      "description": "Ark model id for Responses API + web_search tool"
    }
  }
}

outputSchema

{
  "type": "object",
  "properties": {
    "error": {
      "type": "string"
    },
    "results": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "url": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "snippet": {
            "type": "string"
          }
        }
      }
    },
    "attempts": {
      "type": "array"
    },
    "simulated": {
      "type": "boolean"
    },
    "searchTime": {
      "type": "number"
    },
    "totalResults": {
      "type": "integer"
    },
    "usedProvider": {
      "type": "string"
    }
  }
}