Ubuntu22.04安装Openclaw
- 准备工作
- 一键安装
- 设置通道 配置飞书
- 让ai员工更好用
- 加入免费的模型
- 配置钉钉
- 在GLM-4 .7-Flash基础上加入deepseek
- 加入minimax和豆包模型
- 配置web搜索
- .env File
- 🔌 Exa MCP Server for OpenAI Codex
- Quick Start
- cURL
- Function Calling / Tool Use
- OpenAI Function Calling
- Anthropic Tool Use
- Search Type Reference
- Content Configuration
- Domain Filtering (Optional)
- Web Search Tool
- Category Examples
- People Search (`category: “people”`)
- Company Search (`category: “company”`)
- News Search (`category: “news”`)
- Research Papers (`category: “research paper”`)
- Tweet Search (`category: “tweet”`)
- Content Freshness (maxAgeHours)
- Other Endpoints
- Troubleshooting
- Resources

curl -fsSL https://clawd.org.cn/install.sh | sudo bash















可以重新启动openclaw,执行openclaw-cn gateway restart





- MiniMax M2.5 API Key获取访问MiniMax平台:https://api.minimax.chat/;
注册/登录账号,直接获取API Key,复制保存备用。 - Seedance2.0 API Key获取访问火山方舟平台:https://console.volcengine.com/ark;
注册/登录火山引擎账号,开通“火山方舟”服务;
在“API Key管理”页面创建Key,复制保存备用。
之后配置openclaw.json
就可以接入多个大模型了。



.env File
Give OpenAI Codex real-time web search, code context, and company research with Exa MCP.
Run in terminal:
Tool enablement (optional):
Add a query param to the MCP URL.
Enable specific tools:
Enable all tools:
Your API key:
Manage keys at dashboard.exa.ai/api-keys.
Troubleshooting: if tools don’t appear, restart your MCP client after updating the config.
📖 Full docs: docs.exa.ai/reference/exa-mcp
cURL
Function calling (also known as tool use) allows your AI agent to dynamically decide when to search the web based on the conversation context. Instead of searching on every request, the LLM intelligently determines when real-time information would improve its response—making your agent more efficient and accurate.
Why use function calling with Exa?
- Your agent can ground responses in 豆包 大模型 教程 current, factual information
- Reduces hallucinations by fetching real sources when needed
- Enables multi-step reasoning where the agent searches, analyzes, and responds
📚 Full documentation: https://docs.exa.ai/reference/openai-tool-calling
OpenAI Function Calling
Anthropic Tool Use
Tip: works well for most queries. Use when you need thorough research results or structured outputs with field-level grounding.
Choose ONE content type per request (not both):
⚠️ Token usage warning: Using (full page text) can significantly increase token count, leading to slower and more expensive LLM calls. To mitigate:
- Add limit:
- Use instead if you don’t need contiguous text
When to use text vs highlights:
- Text – When you need untruncated, contiguous content (e.g., code snippets, full articles, documentation)
- Highlights – When you need key excerpts and don’t need the full context (e.g., summaries, Q&A, general research)
Usually not needed – Exa’s neural search finds relevant results without domain restrictions.
When to use:
- Targeting specific authoritative sources
- Excluding low-quality domains from results
Example:
Note: and can be used together to include a broad domain while excluding specific subdomains (e.g., ).
Tips:
- Use for most queries
- Great for building search-powered chatbots or agents
- Combine with contents for RAG workflows
Use category filters to search dedicated indexes. Each category returns only that content type.
Note: Categories can be restrictive. If you’re not getting enough results, try searching without a category first, then add one if needed.
People Search ()
Find people by role, expertise, or what they work on
Tips:
- Use SINGULAR form
- Describe what they work on
- No date/text filters supported
Company Search ()
Find companies by industry, criteria, or attributes
Tips:
- Use SINGULAR form
- Simple entity queries
- Returns company objects, not articles
News Search ()
News articles
Tips:
- Use livecrawl: “preferred” for breaking news
- Avoid date filters unless required
Research Papers ()
Academic papers
Tips:
- Use type: “auto” for most queries
- Includes arxiv.org, paperswithcode.com, and other academic sources
Tweet Search ()
Twitter/X posts
Tips:
- Good for real-time discussions
- Captures public sentiment
sets the maximum acceptable age (in hours) for cached content. If the cached version is older than this threshold, Exa will livecrawl the page to get fresh content.
When LiveCrawl Isn’t Necessary:
Cached data is sufficient for many queries, especially for historical topics or educational content. These subjects rarely change, so reliable cached results can provide accurate information quickly.
See maxAgeHours docs for more details.
Beyond , Exa offers these endpoints:
Example – Get contents for URLs:
Results not relevant?
- Try – most balanced option
- Try – runs multiple query variations and ranks the combined results
- Refine query – use singular form, be specific
- Check category matches your use case
Need structured data from search?
- Use or with
- Define the fields you need in the schema — Exa returns grounded JSON with citations
Results too slow?
- Use
- Reduce
- Skip contents if you only need URLs
No results?
- Remove filters (date, domain restrictions)
- Simplify query
- Try – has fallback mechanisms
- Docs: https://exa.ai/docs
- Dashboard: https://dashboard.exa.ai
- API Status: https://status.exa.ai
发布者:全栈程序员-站长,转载请注明出处:https://javaforall.net/284704.html原文链接:https://javaforall.net
