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>
19 lines
741 B
Plaintext
19 lines
741 B
Plaintext
---
|
|
openapi: /admin-openapi.json POST /agent/{projectId}/job
|
|
keywords: [ "agent job", "create", "automation", "automate" ]
|
|
---
|
|
|
|
This endpoint creates an agent job based on provided messages and branch information. The job executes asynchronously and returns a streaming response with the execution details and results.
|
|
|
|
If a branch doesn't exist, the agent creates one. If files are edited successfully, a pull request is automatically created at the end of the job.
|
|
|
|
## Rate limits
|
|
|
|
The agent API has the following limits:
|
|
|
|
- 100 uses per Mintlify project per hour
|
|
|
|
## Suggested usage
|
|
|
|
For best results, use the [useChat hook from ai-sdk](https://ai-sdk.dev/docs/reference/ai-sdk-ui/use-chat#usechat) to send requests and handle responses.
|