Start an aictrl task
start_taskStart one first-party task returned by list_tasks for an exact pull-request revision. The repository must already be connected to the organization; if unsure, call get_started with the same organization_id first. PR Explanation reads the pull request and stores a private explanation in aictrl; it posts nothing to GitHub. Code Review reads the pull request and posts its findings as review comments on that pull request. Call only after the user explicitly asks to run that task in the current turn. Retrying the same request with the same idempotency key returns the same execution.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| task_id | Yes | Task Template ID returned by list_tasks. | |
| audience | No | Optional audience for the generated explanation. Applies to the PR Explanation task only. | |
| pull_request | Yes | ||
| idempotency_key | Yes | Stable caller-generated key. Reuse only for the identical task request. | |
| organization_id | Yes | aictrl organization ID returned by list_organizations or get_started. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reused | Yes | ||
| status | Yes | ||
| task_id | Yes | ||
| admission | Yes | ||
| created_at | Yes | ||
| execution_id | Yes |