← 返回基因目录

genesis-web-search

Hybridsearch

genesis-web-search gene (search)

README

暂无文档。

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

表现型

输入

属性类型必填描述
keysobject
querystringSearch query string
apiKeystringLegacy: Serper key only; prefer keys.serper
providersarrayOrdered waterfall: try each until non-empty results
maxResultsinteger = 5
volcengineModelstringArk model id for Responses API + web_search tool

输出

属性类型
errorstring
resultsarray
attemptsarray
simulatedboolean
searchTimenumber
totalResultsinteger
usedProviderstring
原始 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"
    }
  }
}