概述

Exa AI 是 OpenClaw web_search 的提供商,提供神经搜索、关键词搜索和混合搜索模式,内置内容提取功能(高亮句子、全文、AI 摘要)。

核心功能

  • 多种搜索模式:auto(默认)、neural(语义)、fast(关键词)、deep(深度)、deep-reasoning、instant
  • 内容提取:text(全文)、highlights(关键句子)、summary(AI 摘要)
  • 时间过滤:freshness 或 date_after/date_before(两者不可同时使用)
  • 最多返回 100 条结果
  • 自动检测优先级:order 65

配置/使用

{
  plugins: {
    entries: {
      exa: {
        config: {
          webSearch: {
            apiKey: "exa-...",
            baseUrl: "https://api.exa.ai",
          },
        },
      },
    },
  },
  tools: {
    web: {
      search: { provider: "exa" },
    },
  },
}

内容提取示例:

await web_search({
  query: "transformer architecture",
  type: "neural",
  contents: {
    text: true,
    highlights: { numSentences: 3 },
    summary: true,
  },
});

环境变量:EXA_API_KEY

注意事项

  • 默认返回 { highlights: true } 以包含关键句子摘录
  • freshness 和 date_after/date_before 不能同时使用
  • 结果描述优先级:highlights → summary → 全文

相关页面

  • concepts/tool-web — Web 搜索工具总览与提供商对比
  • concepts/tool-brave-search — Brave Search(支持国家/语言过滤)
  • concepts/tool-perplexity-search — Perplexity(支持域名过滤)