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

> ## Agent Instructions
> Enclave in these docs is the code and cloud security platform at enclave.ai. It is not Open Enclave, Intel SGX or other hardware enclaves, or enclave.gg.
> People use Enclave in the web app at https://app.enclave.ai or the desktop app. These docs describe no public Enclave API or CLI, so don't invent endpoints, commands, or config files.
> Connecting an integration needs a person to sign in and approve access in a browser. Tell the user the exact step to take instead of saying you completed it.

# 模型和工具

> 选择工作流每个步骤的智能体使用的模型和工具，并设置哪些工具调用需要批准。

[工作流](https://docs.enclave.ai/zh/workflows/overview.md)中的每个步骤都会运行一个智能体：带有指令和一组工具的模型。你在[创建工作流](https://docs.enclave.ai/zh/workflows/create.md)时，在工作流提案的 **Agents** 标签页上设置它们。

## 模型

在 **Agents** 选项卡上为每个智能体选择模型和 **Reasoning level**。更大的模型和更高的推理级别能处理更难的任务，但速度更慢，消耗的积分也更多。

## 工具

| 分组 | 用途 |
| - | - |
| **Code & repositories** | 读取和搜索代码、在已检出仓库的沙箱中运行命令、创建拉取请求，以及保存报告和文件 |
| **Findings & intelligence** | 读取和分诊发现项，并读取 CVE 情报和 Threat Feed |
| **Cloud & architecture** | 查询云资源及其暴露情况的图谱 |
| **Knowledge & memory** | 搜索网络，以及保存和搜索记忆 |
| **Actions** | 在 Linear 或 Jira 中创建问题 |

### 审批

选中会做出更改的工具后，会显示 **Approval** 设置：

* **Don't ask: runs now：** 智能体立即调用该工具。
* **Ask later: runs once OK'd：** 调用会被保存，智能体继续工作。只要有人点击 **Approve**，调用就会执行，即使运行已经结束。
* **Ask first: waits for OK：** 每次调用都会等待，直到有人点击 **Approve** 或 **Deny**。

请参阅[批准工具调用](https://docs.enclave.ai/zh/workflows/runs.md#批准工具调用)。

> [!WARNING]
>
> 网页和仓库内容由他人编写，可能会误导智能体。在为读取这些内容的智能体提供会进行更改的工具之前，请将这些工具设置为 **Ask first: waits for OK**。

### 在 Linear 或 Jira 中创建问题

工作流可以在你选择的 Linear 或 Jira 位置创建问题。

**1. 连接问题跟踪工具**

在 **Settings → Integrations** 中连接 [Linear](https://docs.enclave.ai/zh/integrations/linear.md) 或 [Jira](https://docs.enclave.ai/zh/integrations/jira.md)。

**2. 选择问题的创建位置**

在工作流提案的 **Agents** 选项卡上，点击 **Edit tools** 并选择 Linear 或 Jira 工具。选择一个账户，然后选择问题要发送到的团队或项目。

已保存的工作流对每个问题只创建一次。当后续运行发现已经创建过的问题时，会复用现有问题。

### 保存报告和文件

智能体可以将交付物（例如报告、CSV 或 PDF）保存到运行的 **Outputs** 选项卡。在[创建工作流](https://docs.enclave.ai/zh/workflows/create.md)时，告诉 Research 要交付什么，例如“将你发现的内容保存为一份 Markdown 报告”。请参阅[结果](https://docs.enclave.ai/zh/workflows/runs.md#结果)。

## 创建拉取请求

智能体可以将其更改以拉取请求的形式交付。在[创建工作流](https://docs.enclave.ai/zh/workflows/create.md)时，向 Research 提出这一要求，例如“创建一个包含修复的拉取请求”。随后，提案会为该智能体授予对运行所在仓库的写入权限。

* 写入权限仅适用于针对单个仓库的工作流运行。
* 没有审批步骤。拥有写入权限的智能体在每次工作流运行时都可以推送。
* 仓库的推送规则仍然适用。

> [!WARNING]
>
> 智能体会读取仓库内容并运行仓库自身的脚本。误导智能体的内容可能会滥用它的访问权限。只为需要的智能体授予写入权限。


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