mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
73edda4d1f
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
67 lines
3.2 KiB
Plaintext
67 lines
3.2 KiB
Plaintext
---
|
||
title: "什么是 agent?"
|
||
description: "使用 agent 自动维护和更新文档。可根据 Slack 消息、PR 或 API 调用生成更新。"
|
||
keywords: ["automation", "automate", "AI", "autoupdate", "maintenance"]
|
||
---
|
||
|
||
<Info>
|
||
只要拥有你控制台的访问权限,任意用户都可以在 [Enterprise 方案](https://mintlify.com/pricing?ref=agent) 中使用 agent。
|
||
</Info>
|
||
|
||
agent 是一款 AI 工具,会根据你的提示,为文档创建包含建议更改的拉取请求 (PR;亦称“合并请求”/Merge Request) 。当你发送请求时,agent 会:
|
||
|
||
* **调研**:阅读你现有的文档、所有已连接的代码仓库,以及相关上下文。
|
||
* **规划**:为复杂的文档工作创建结构化任务清单。
|
||
* **撰写**:生成或更新内容,遵循写作规范和最佳实践。
|
||
* **验证**:运行 Mintlify 命令行界面 (CLI) 检查,确保文档可以正确构建。
|
||
* **创建 PR**:打开一个包含建议更改的拉取请求 (PR;亦称“合并请求”/Merge Request) ,供你审核。
|
||
|
||
所有更改都会通过拉取请求完成。agent 永远不会直接向你的主 branch 进行提交。
|
||
|
||
<div id="what-you-can-do-with-the-agent">
|
||
## 你可以用智能助手做什么
|
||
</div>
|
||
|
||
使用智能助手可以:
|
||
|
||
* 根据你的提示词、拉取请求 (PR;亦称“合并请求”/Merge Request) 、Slack 线程或文件附件撰写新内容。
|
||
* 根据新功能或 API 变更更新现有文档。
|
||
* 处理并插入来自 Slack 附件的图片、图表和其他文件。
|
||
* 在你的文档中搜索并修改代码示例和 API 参考。
|
||
* 通过工作流自动化文档维护工作。
|
||
* 回答与你的文档和技术写作相关的问题。
|
||
* 处理代码审查反馈并维护文档质量。
|
||
* 在知识从 Slack 对话和拉取请求中流失之前,将其记录下来。
|
||
* 高效地在多个文件和目录之间导航并协调更改。
|
||
|
||
<div id="connect-your-github-account">
|
||
## 连接你的 GitHub 账户
|
||
</div>
|
||
|
||
默认情况下,代理会以 Mintlify 机器人身份创建拉取请求 (PR;亦称“合并请求”/Merge Request) 。若要将拉取请求归属到你的账号,请在控制台的 [My profile](https://dashboard.mintlify.com/settings/account) 页面连接你的 GitHub 账户。
|
||
|
||
<div id="connect-repositories-as-context">
|
||
## 将仓库连接为上下文
|
||
</div>
|
||
|
||
Agent 只能访问你通过 Mintlify GitHub 应用连接的仓库。你可以在 agent 面板的 **Settings** 中,或在 [GitHub 应用设置](https://github.com/apps/mintlify/installations/new) 中配置 agent 可访问的仓库。
|
||
|
||
<div id="next-steps">
|
||
## 后续步骤
|
||
</div>
|
||
|
||
<Card title="连接 Slack" horizontal icon="slack" href="/zh/agent/slack">
|
||
将 agent 添加到你的 Slack 工作区。
|
||
</Card>
|
||
|
||
<Card title="自定义行为" horizontal icon="wrench" href="/zh/agent/customize">
|
||
使用 `AGENTS.md` 文件配置 agent。
|
||
</Card>
|
||
|
||
<Card title="编写高效的提示词" horizontal icon="pen" href="/zh/agent/effective-prompts">
|
||
使用更聚焦的提示词以获得更好的效果。
|
||
</Card>
|
||
|
||
<Card title="使用工作流实现自动化" horizontal icon="refresh-cw" href="/zh/agent/workflows">
|
||
使用工作流自动化重复性任务和文档维护。
|
||
</Card> |