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

# Olostep + Hermes Agent 集成

> 使用 Olostep 为 Hermes Agent 的 web_search 和 web_extract 提供支持，并提供答案、网站地图、爬取和批量抓取工具

[Hermes Agent](https://hermes-agent.nousresearch.com) 由 Nous Research 开发，内置了 `web_search` 和 `web_extract` 工具，并允许你选择其背后的后端。[Olostep 插件](https://github.com/olostep-api/olostep-hermes-plugin) 将 Olostep 作为后端，因此 Hermes 中的每个代理、技能和子代理都通过 Olostep 搜索和读取网页。它还添加了五个内置工具未涵盖的工具：带来源的答案、网站地图、爬取和批量抓取。

页面通过 JavaScript 渲染，因此单页应用和动态网站会完整返回，作为干净的 markdown。

## 安装

```bash theme={null}
hermes plugins install olostep
```

Olostep 列在 [Hermes 插件市场](https://hermes-agent.nousresearch.com/marketplace/olostep) 中。

安装时，Hermes 会询问你的 `OLOSTEP_API_KEY`。在 [olostep.com/auth](https://olostep.com/auth) 获取免费的 API 密钥：包含 500 个积分，无需信用卡。

该插件需要 Hermes 0.21.6 或更高版本。

## 使用 Olostep 进行 web\_search 和 web\_extract

在 `hermes tools` 中选择 **Olostep** 作为网页后端，或在 `config.yaml` 中设置：

```yaml theme={null}
web:
  search_backend: olostep
  extract_backend: olostep
```

| 内置工具 | Olostep 端点 | 你将获得 |
| - | - | - |
| `web_search` | [`/v1/searches`](https://docs.olostep.com/features/search) | 最多 25 个结果的标题、URL 和描述 |
| `web_extract` | [`/v1/scrapes`](https://docs.olostep.com/features/scrapes) | 每个页面作为干净的 markdown（或 HTML），JavaScript 已渲染，带有其标题 |

## 工具

该插件将这些工具添加到 `olostep` 工具集中：

> [card] olostep\_answer
>
> 从实时网络中回答问题，并附上来源 URL。传递 `json_format` 以获取你定义格式的 JSON 答案。

> [card] olostep\_map
>
> 列出网站的 URL，按 `search_query` 排序，并通过如 `/docs/**` 的 glob 模式过滤。

> [card] olostep\_crawl
>
> 从一个 URL 爬取网站，并将每个页面作为 markdown 返回。等待最多 `wait_seconds`（默认 60），然后为较大的爬取返回一个爬取 ID。

> [card] olostep\_batch
>
> 开始批量抓取，每批最多 100,000 个 URL，并返回其 ID。并行运行 10 批次以达到 1M 个 URL。

> [card] olostep\_get\_results
>
> 返回爬取或批次的状态和页面，每个页面的 markdown，使用 `cursor` 分页。

每次调用返回模型可以读取的文本量。`olostep_map` 返回前 500 个 URL 以及总数，`olostep_crawl` 和 `olostep_get_results` 每次调用返回最多 50 页（默认 10 页），每页最多 10,000 个字符的 markdown。使用 `cursor` 分页浏览其余部分。这些是每次调用的大小，而不是 Olostep 的限制。

## 示例

询问你的 Hermes 代理：

* "前三个向量数据库的入门计划收费是多少？请以表格形式回答，并附上来源。"
* "在 Stripe 文档中找到速率限制页面并总结它。"
* "爬取 docs.example.com/guides 并列出每个提到 webhooks 的页面。"
* "抓取这 2,000 个产品 URL，并在批次完成时通知我。"

## 隐私和积分

* 搜索查询、URL、答案任务以及爬取或批次设置会通过你的 API 密钥发送到 Olostep API (`api.olostep.com`)。每次调用都会使用 Olostep 积分。
* 密钥通过 Hermes 的配置文件作用域凭证查找读取。Hermes 的 URL 安全检查和网站策略在 URL 被发送提取之前应用。

## 链接

> [card] [Hermes 市场](https://hermes-agent.nousresearch.com/marketplace/olostep)
>
> 从 Hermes 插件目录安装 Olostep

> [card] [GitHub 上的插件](https://github.com/olostep-api/olostep-hermes-plugin)
>
> 源代码、README 和更新日志

> [card] [获取 API 密钥](https://olostep.com/auth)
>
> 500 个免费积分，无需信用卡

> [card] [MCP 服务器文档](https://docs.olostep.com/integrations/mcp-server.md)
>
> 将 Olostep 连接到其他 MCP 客户端

> [card] [API 参考](https://docs.olostep.com)
>
> 完整的端点文档及示例


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