Files
mintlify__docs/zh/api/agent/create-agent-job.mdx
locadex-agent[bot] c0f6b30337 docs(locadex): add translations (#2090)
Co-authored-by: locadex-agent[bot] <217277504+locadex-agent[bot]@users.noreply.github.com>
2025-12-05 16:57:59 -08:00

22 lines
831 B
Plaintext
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
---
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) 来发送请求并处理响应。