mirror of
https://github.com/mintlify/docs.git
synced 2026-09-14 13:35:46 +08:00
c0f6b30337
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
22 lines
831 B
Plaintext
22 lines
831 B
Plaintext
---
|
||
openapi: /zh/admin-openapi.json POST /agent/{projectId}/job
|
||
keywords: [ "agent job", "create", "automation", "automate" ]
|
||
---
|
||
|
||
此端点会根据提供的消息和 branch 信息创建一个代理任务。该任务异步执行,并以流式方式返回包含执行详情与结果的响应。
|
||
|
||
如果 branch 不存在,代理会自动创建该 branch。若文件编辑成功,任务结束时会自动创建一个拉取请求(PR;亦称“合并请求”/Merge Request)。
|
||
|
||
<div id="rate-limits">
|
||
## 速率限制
|
||
</div>
|
||
|
||
代理 API 的限制如下:
|
||
|
||
- 每个 Mintlify 项目每小时最多可调用 100 次
|
||
|
||
<div id="suggested-usage">
|
||
## 建议用法
|
||
</div>
|
||
|
||
为获得最佳效果,请使用 [ai-sdk 的 useChat 钩子](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat#usechat) 来发送请求并处理响应。 |