> ## Documentation Index
> Fetch the complete documentation index at: https://aisa.one/docs/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> - Base URLs: models `https://api.aisa.one/v1` (Gemini GenerateContent: `https://api.aisa.one/v1beta`); data APIs `https://api.aisa.one/apis/v1`. The `servers` of each operation in https://aisa.one/openapi.yaml is authoritative.
> - Auth: `Authorization: Bearer $AISA_API_KEY`. Never print, log, or commit the key.
> - MCP (preferred for agents): `https://mcp.aisa.one/mcp`, signed in with OAuth, so there is no key to paste.
> - Agent Skill: `npx skills add AIsa-team/agent-skills --skill aisa`. Fallback with the AIsa CLI: `aisa skills install aisa`.
> - Spending: docs, https://aisa.one/models, https://aisa.one/api, `/v1/models`, and MCP `search`, `list_categories`, `get_details`, `batch_quote`, and the `account` operation are free. Quote the exact calls before running them (MCP `batch_quote`, CLI `aisa quote --json`). If the quote reports `auto_execute_eligible: true`, run it unless the user set a tighter limit or asked only for a quote. Otherwise, tell the user in one message the planned calls, the quoted price, and a total USD budget for the task, then wait for approval. Direct HTTP calls follow the stricter rule at https://aisa.one/docs/get-started/cli.md#direct-http-fallback. Do not make paid calls to test availability. Full rule: https://aisa.one/llms.txt

# 多源搜索

> 为自主智能体提供统一的网页、学术、Tavily 和 Perplexity Sonar 搜索。一个 Skill 涵盖排序网页结果、学术论文、带引用的回答、内容提取、递归爬取和站点地图。

[在 GitHub 上查看 →](https://github.com/AIsa-team/agent-skills/tree/main/search-research/multi-source-search)

**为自主智能体提供多源智能检索。** 一个 `AISA_API_KEY` 即可解锁结构化网页搜索、学术论文查找、Tavily 提取/爬取，以及完整的 Perplexity Sonar 系列富引用回答。

## 安装

```bash npx skills theme={null}
npx skills add AIsa-team/agent-skills --skill multi-source-search
```

```bash AIsa CLI theme={null}
npm install -g @aisa-one/cli
aisa skills install multi-source-search
```

安装后请启动新的智能体会话，以便加载该 Skill。

## 智能体能用它做什么？

> [card] 快速网页查询
>
> “总结本月最新的 AI 基础设施发布动态。”

> [card] 学术支撑的研究
>
> “查找关于自校正智能体框架的最新学术论文。”

> [card] 富引用回答
>
> “使用 Perplexity Sonar Pro 回答这个问题，并附上行内引用。”

> [card] 深度研究报告
>
> “生成一篇关于自主浏览器智能体的 2,000 字报告。”

> [card] 内容提取
>
> “从这 5 个 URL 中提取正文用于分析。”

> [card] 站点智能分析
>
> “映射这个文档站点的结构并爬取用于 RAG。”

## 核心能力

* **网页搜索**（`/scholar/search/web`）— 获取当前信息的结构化网页结果
* **学术搜索**（`/scholar/search/scholar`）— 支持可选日期过滤的学术论文
* **智能/混合搜索**（`/scholar/search/mixed`）— 一次调用组合网页 + 学术结果
* **解释搜索**（`/scholar/search/explain`）— 对结果进行解释性综合
* **Perplexity Sonar 系列** — `sonar`、`sonar-pro`、`sonar-reasoning-pro`、`sonar-deep-research`
* **Tavily** — `search`、`extract`、`crawl`、`map`
* **Verity 多源** — 跨源类型并行检索

## 快速开始

```bash theme={null}
export AISA_API_KEY="your-key"
```

### 网页 + 学术

```bash theme={null}
# Structured web search
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/web" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "latest AI infrastructure launches 2026"}'

# Academic papers
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/scholar" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "self-correcting agent frameworks"}'

# Smart hybrid (web + scholar)
curl -X POST "https://api.aisa.one/apis/v1/scholar/search/mixed" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "retrieval-augmented generation"}'
```

### Perplexity Sonar

```bash theme={null}
# Fast answers
curl -X POST "https://api.aisa.one/apis/v1/perplexity/sonar" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "sonar", "messages": [{"role": "user", "content": "What is MCP?"}]}'

# Deep research
curl -X POST "https://api.aisa.one/apis/v1/perplexity/sonar-deep-research" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"model": "sonar-deep-research", "messages": [{"role": "user", "content": "State of agentic payments in 2026"}]}'
```

### Tavily 工具

```bash theme={null}
# Search
curl -X POST "https://api.aisa.one/apis/v1/tavily/search" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"query": "LLM agent frameworks"}'

# Extract clean article text
curl -X POST "https://api.aisa.one/apis/v1/tavily/extract" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"urls": ["https://example.com/article"]}'

# Recursive crawl
curl -X POST "https://api.aisa.one/apis/v1/tavily/crawl" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com", "depth": 2}'

# Site map
curl -X POST "https://api.aisa.one/apis/v1/tavily/map" \
  -H "Authorization: Bearer $AISA_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"url": "https://example.com"}'
```

## Python 客户端

```bash theme={null}
# Web + scholar + smart
python3 scripts/search_client.py web --query "AI agent news"
python3 scripts/search_client.py scholar --query "self-correcting agents"
python3 scripts/search_client.py smart --query "RAG patterns"

# Perplexity
python3 scripts/search_client.py sonar --query "What is MCP?"
python3 scripts/search_client.py sonar-pro --query "Compare MCP and A2A for agent tooling"
python3 scripts/search_client.py sonar-reasoning-pro --query "Analyze x402 adoption"
python3 scripts/search_client.py sonar-deep-research --query "State of agentic payments"

# Tavily
python3 scripts/search_client.py tavily-search --query "LLM agents"
python3 scripts/search_client.py tavily-extract --urls "https://example.com/article"
python3 scripts/search_client.py tavily-crawl --url "https://example.com" --depth 2
python3 scripts/search_client.py tavily-map --url "https://example.com"

# Multi-source parallel retrieval
python3 scripts/search_client.py verity --query "AI agent benchmarks 2026"
```

## 端点参考

| 端点 | 方法 | 用途 |
| - | - | - |
| `/scholar/search/web` | POST | [网页搜索](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-web.md) |
| `/scholar/search/scholar` | POST | [学术论文](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-scholar.md) |
| `/scholar/search/mixed` | POST | [智能混合搜索](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-mixed.md) |
| `/scholar/search/explain` | POST | [解释搜索](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-explain.md) |
| `/perplexity/sonar` | POST | [Sonar — 快速回答](https://aisa.one/docs/zh/api-reference/perplexity/post_perplexity-sonar.md) |
| `/perplexity/sonar-pro` | POST | [Sonar Pro — 综合分析](https://aisa.one/docs/zh/api-reference/perplexity/post_perplexity-sonar-pro.md) |
| `/perplexity/sonar-reasoning-pro` | POST | [Sonar Reasoning Pro](https://aisa.one/docs/zh/api-reference/perplexity/post_perplexity-sonar-reasoning-pro.md) |
| `/perplexity/sonar-deep-research` | POST | [Sonar Deep Research](https://aisa.one/docs/zh/api-reference/perplexity/post_perplexity-sonar-deep-research.md) |
| `/tavily/search` | POST | [Tavily 搜索](https://aisa.one/docs/zh/api-reference/search/post_tavily-search.md) |
| `/tavily/extract` | POST | [Tavily 提取](https://aisa.one/docs/zh/api-reference/search/post_tavily-extract.md) |
| `/tavily/crawl` | POST | [Tavily 爬取](https://aisa.one/docs/zh/api-reference/search/post_tavily-crawl.md) |
| `/tavily/map` | POST | [Tavily 地图](https://aisa.one/docs/zh/api-reference/search/post_tavily-map.md) |

## 开始使用

1. 在 [aisa.one](https://aisa.one) 注册并在控制台创建 API key。
2. 在终端中设置：`export AISA_API_KEY="your-key"`。
3. 使用[安装](#安装)部分的命令安装该 Skill，然后启动新的智能体会话。

## 相关

> [card] [Search API 参考](https://aisa.one/docs/zh/api-reference/search/post_tavily-search.md)
>
> Tavily 搜索、提取、爬取、地图——附带在线调试工具。

> [card] [Scholar API 参考](https://aisa.one/docs/zh/api-reference/scholar/post_scholar-search-web.md)
>
> 网页、学术、智能和解释端点。

> [card] [Perplexity API 参考](https://aisa.one/docs/zh/api-reference/perplexity/post_perplexity-sonar.md)
>
> 完整的 Sonar 系列端点文档。


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.