Agent API
Reference for the local Toolang agent HTTP API.
Base URL for a running local agent is http://127.0.0.1:<port> unless the agent is started with a different host or port.
Endpoints
| Method | Path | Tag | Summary |
|---|---|---|---|
GET | /api/v1/agics | agent | List Agent Agics |
GET | /api/v1/flows | agent | List Agent Flows |
GET | /api/v1/models | agent | List Agent Models |
GET | /api/v1/profile | agent | Get Profile |
GET | /api/v1/prompt-completions | agent | List Prompt Completions |
GET | /api/v1/tools | agent | List Agent Tools |
GET | /healthz | agent | Health Check |
GET | /api/v1/caps | caps | Get Caps Summary |
GET | /api/v1/prompts | caps | List Prompts |
GET | /api/v1/prompts/templates | caps | List Prompt Templates |
GET | /api/v1/prompts/templates/{template_name} | caps | Get Prompt Template |
GET | /api/v1/prompts/{name} | caps | Get Prompt |
GET | /api/v1/psyches | caps | List Psyches |
GET | /api/v1/psyches/templates | caps | List Psyche Templates |
GET | /api/v1/psyches/templates/{template_name} | caps | Get Psyche Template |
GET | /api/v1/psyches/{name} | caps | Get Psyche |
GET | /api/v1/services | caps | List Services |
GET | /api/v1/services/templates | caps | List Service Templates |
GET | /api/v1/services/templates/{template_name} | caps | Get Service Template |
GET | /api/v1/services/{name} | caps | Get Service |
GET | /api/v1/skills | caps | List Skills |
GET | /api/v1/skills/templates | caps | List Skill Templates |
GET | /api/v1/skills/templates/{template_name} | caps | Get Skill Template |
GET | /api/v1/skills/{name} | caps | Get Skill |
PUT | /api/v1/prompts/{name}/authored | caps | Upsert Authored Prompt |
PUT | /api/v1/prompts/{name}/configured | caps | Configure Prompt |
PUT | /api/v1/psyches/{name}/authored | caps | Upsert Authored Psyche |
PUT | /api/v1/psyches/{name}/configured | caps | Configure Psyche |
PUT | /api/v1/services/{name}/authored | caps | Upsert Authored Service |
PUT | /api/v1/services/{name}/configured | caps | Configure Service |
PUT | /api/v1/skills/{name}/authored | caps | Upsert Authored Skill |
PUT | /api/v1/skills/{name}/configured | caps | Configure Skill |
DELETE | /api/v1/prompts/{name}/authored | caps | Delete Authored Prompt |
DELETE | /api/v1/prompts/{name}/configured | caps | Remove Configured Prompt |
DELETE | /api/v1/psyches/{name}/authored | caps | Delete Authored Psyche |
DELETE | /api/v1/psyches/{name}/configured | caps | Remove Configured Psyche |
DELETE | /api/v1/services/{name}/authored | caps | Delete Authored Service |
DELETE | /api/v1/services/{name}/configured | caps | Remove Configured Service |
DELETE | /api/v1/skills/{name}/authored | caps | Delete Authored Skill |
DELETE | /api/v1/skills/{name}/configured | caps | Remove Configured Skill |
GET | /api/v1/chores | jobs | List Chores |
GET | /api/v1/chores/archived | jobs | List Archived Chores |
GET | /api/v1/chores/archived/{chore_id} | jobs | Get Archived Chore |
GET | /api/v1/chores/{chore_id} | jobs | Get Chore |
GET | /api/v1/jobs | jobs | List Jobs |
GET | /api/v1/jobs/archived | jobs | List Archived Jobs |
GET | /api/v1/jobs/archived/{job_id} | jobs | Get Archived Job |
GET | /api/v1/jobs/{job_id} | jobs | Get Job |
GET | /api/v1/tasks | jobs | List Tasks |
GET | /api/v1/tasks/archived | jobs | List Archived Tasks |
GET | /api/v1/tasks/archived/{task_id} | jobs | Get Archived Task |
GET | /api/v1/tasks/{task_id} | jobs | Get Task |
POST | /api/v1/chores | jobs | Create Chore |
POST | /api/v1/chores/{chore_id}/archive | jobs | Archive Chore |
POST | /api/v1/chores/{chore_id}/cancel | jobs | Cancel Chore |
POST | /api/v1/chores/{chore_id}/draft | jobs | Draft Chore |
POST | /api/v1/chores/{chore_id}/ready | jobs | Ready Chore |
POST | /api/v1/chores/{chore_id}/run | jobs | Run Chore |
POST | /api/v1/tasks | jobs | Create Task |
POST | /api/v1/tasks/{task_id}/archive | jobs | Archive Task |
POST | /api/v1/tasks/{task_id}/cancel | jobs | Cancel Task |
POST | /api/v1/tasks/{task_id}/draft | jobs | Draft Task |
POST | /api/v1/tasks/{task_id}/ready | jobs | Ready Task |
POST | /api/v1/tasks/{task_id}/reopen | jobs | Reopen Task |
DELETE | /api/v1/chores/archived/{chore_id} | jobs | Delete Archived Chore |
DELETE | /api/v1/tasks/archived/{task_id} | jobs | Delete Archived Task |
PATCH | /api/v1/chores/archived/{chore_id} | jobs | Update Archived Chore |
PATCH | /api/v1/chores/{chore_id} | jobs | Update Chore |
PATCH | /api/v1/tasks/archived/{task_id} | jobs | Update Archived Task |
PATCH | /api/v1/tasks/{task_id} | jobs | Update Task |
GET | /api/v1/runs | runs | List Runs |
GET | /api/v1/runs/defaults | runs | Get Run Defaults |
GET | /api/v1/runs/{run_id} | runs | Get Run |
GET | /api/v1/runs/{run_id}/stream | runs | Stream Run Events |
POST | /api/v1/runs/authored/stream | runs | Execute Authored Run Stream |
POST | /api/v1/runs/stream | runs | Execute Run Stream |
POST | /api/v1/runs/{run_id}/cancel | runs | Cancel Run |
POST | /api/v1/runs/{run_id}/rerun | runs | Rerun Run |
POST | /api/v1/runs/{run_id}/rerun/stream | runs | Rerun Authored Run Stream |
POST | /api/v1/runs/{run_id}/retry | runs | Retry Run |
POST | /api/v1/runs/{run_id}/retry/stream | runs | Retry Authored Run Stream |
POST | /api/v1/runs/{run_id}/steer | runs | Steer Run |
GET | /api/v1/threads | threads | List Threads |
GET | /api/v1/threads/{thread_id} | threads | Get Thread |
GET | /api/v1/threads/{thread_id}/result | threads | Get Latest Thread Result |
GET | /api/v1/threads/{thread_id}/stream | threads | Stream Thread Events |
POST | /api/v1/threads | threads | Create Thread |
POST | /api/v1/threads/{thread_id}/fork | threads | Fork Thread |
POST | /api/v1/threads/{thread_id}/rewind | threads | Rewind Thread |
Agent
Agent profile, health, and operational update endpoints.
List Agent Agics
GET /api/v1/agics
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Agent Flows
GET /api/v1/flows
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Agent Models
GET /api/v1/models
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Profile
GET /api/v1/profile
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
List Prompt Completions
GET /api/v1/prompt-completions
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| runnable | query | no | string | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Agent Tools
GET /api/v1/tools
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Health Check
GET /healthz
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object<string, boolean> |
Caps
Capability inspection and mutation endpoints.
Get Caps Summary
GET /api/v1/caps
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
List Prompts
GET /api/v1/prompts
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<CapInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
List Prompt Templates
GET /api/v1/prompts/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<object> |
Get Prompt Template
GET /api/v1/prompts/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Prompt
GET /api/v1/prompts/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
List Psyches
GET /api/v1/psyches
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<CapInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
List Psyche Templates
GET /api/v1/psyches/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<object> |
Get Psyche Template
GET /api/v1/psyches/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Psyche
GET /api/v1/psyches/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
List Services
GET /api/v1/services
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<CapInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
List Service Templates
GET /api/v1/services/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<object> |
Get Service Template
GET /api/v1/services/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Service
GET /api/v1/services/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
List Skills
GET /api/v1/skills
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| query | query | no | array<string> | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<CapInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
List Skill Templates
GET /api/v1/skills/templates
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<object> |
Get Skill Template
GET /api/v1/skills/templates/{template_name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| template_name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Skill
GET /api/v1/skills/{name}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert Authored Prompt
PUT /api/v1/prompts/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Configure Prompt
PUT /api/v1/prompts/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ConfiguredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert Authored Psyche
PUT /api/v1/psyches/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Configure Psyche
PUT /api/v1/psyches/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ConfiguredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert Authored Service
PUT /api/v1/services/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Configure Service
PUT /api/v1/services/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ConfiguredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Upsert Authored Skill
PUT /api/v1/skills/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | PutCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Configure Skill
PUT /api/v1/skills/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ConfiguredCapRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | CapDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Authored Prompt
DELETE /api/v1/prompts/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Remove Configured Prompt
DELETE /api/v1/prompts/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Authored Psyche
DELETE /api/v1/psyches/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Remove Configured Psyche
DELETE /api/v1/psyches/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Authored Service
DELETE /api/v1/services/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Remove Configured Service
DELETE /api/v1/services/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Authored Skill
DELETE /api/v1/skills/{name}/authored
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Remove Configured Skill
DELETE /api/v1/skills/{name}/configured
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| name | path | yes | string | ||
| scope | query | no | home | root | "home" |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Jobs
Task and chore management endpoints.
List Chores
GET /api/v1/chores
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<JobInfo> |
List Archived Chores
GET /api/v1/chores/archived
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<JobInfo> |
Get Archived Chore
GET /api/v1/chores/archived/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Chore
GET /api/v1/chores/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
List Jobs
GET /api/v1/jobs
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| kind | query | no | task | chore | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<JobInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
List Archived Jobs
GET /api/v1/jobs/archived
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| kind | query | no | task | chore | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<JobInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Archived Job
GET /api/v1/jobs/archived/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Job
GET /api/v1/jobs/{job_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| job_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
List Tasks
GET /api/v1/tasks
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<JobInfo> |
List Archived Tasks
GET /api/v1/tasks/archived
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<JobInfo> |
Get Archived Task
GET /api/v1/tasks/archived/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Task
GET /api/v1/tasks/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Create Chore
POST /api/v1/chores
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChoreCreateRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 201 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Archive Chore
POST /api/v1/chores/{chore_id}/archive
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Cancel Chore
POST /api/v1/chores/{chore_id}/cancel
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Draft Chore
POST /api/v1/chores/{chore_id}/draft
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Ready Chore
POST /api/v1/chores/{chore_id}/ready
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Run Chore
POST /api/v1/chores/{chore_id}/run
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 202 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Create Task
POST /api/v1/tasks
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | TaskCreateRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 201 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Archive Task
POST /api/v1/tasks/{task_id}/archive
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Cancel Task
POST /api/v1/tasks/{task_id}/cancel
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Draft Task
POST /api/v1/tasks/{task_id}/draft
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Ready Task
POST /api/v1/tasks/{task_id}/ready
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Reopen Task
POST /api/v1/tasks/{task_id}/reopen
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Archived Chore
DELETE /api/v1/chores/archived/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Delete Archived Task
DELETE /api/v1/tasks/archived/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 204 | Successful Response | ||
| 422 | Validation Error | application/json | HTTPValidationError |
Update Archived Chore
PATCH /api/v1/chores/archived/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChorePatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Chore
PATCH /api/v1/chores/{chore_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| chore_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ChorePatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Archived Task
PATCH /api/v1/tasks/archived/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | TaskPatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Update Task
PATCH /api/v1/tasks/{task_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| task_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | TaskPatchRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | JobDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Runs
Run execution and inspection endpoints.
List Runs
GET /api/v1/runs
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| limit | query | no | integer | 50 | |
| thread_id | query | no | string | null | ||
| status | query | no | pending | running | succeeded | failed | canceled | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<RunInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Run Defaults
GET /api/v1/runs/defaults
Return concrete defaults for a client-owned run session.
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | object |
Get Run
GET /api/v1/runs/{run_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | RunDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Stream Run Events
GET /api/v1/runs/{run_id}/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | text/event-stream | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Execute Authored Run Stream
POST /api/v1/runs/authored/stream
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | AuthoredRunRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | text/event-stream | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Execute Run Stream
POST /api/v1/runs/stream
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | RunCreateRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | text/event-stream | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Cancel Run
POST /api/v1/runs/{run_id}/cancel
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | no | RunCancelRequest | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | RunCommandResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Rerun Run
POST /api/v1/runs/{run_id}/rerun
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | no | RunRerunRequest | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 202 | Successful Response | application/json | RunCommandResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Rerun Authored Run Stream
POST /api/v1/runs/{run_id}/rerun/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | AuthoredRerunRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | text/event-stream | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Retry Run
POST /api/v1/runs/{run_id}/retry
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | no | RunRetryRequest | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 202 | Successful Response | application/json | RunCommandResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Retry Authored Run Stream
POST /api/v1/runs/{run_id}/retry/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | AuthoredRetryRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | text/event-stream | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Steer Run
POST /api/v1/runs/{run_id}/steer
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| run_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | RunSteerRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 202 | Successful Response | application/json | RunCommandResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Threads
Thread lifecycle and inspection endpoints.
List Threads
GET /api/v1/threads
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| limit | query | no | integer | 50 | |
| origin | query | no | string | null | ||
| channel | query | no | string | null | ||
| status | query | no | string | null |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | array<ThreadInfo> |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Thread
GET /api/v1/threads/{thread_id}
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string | ||
| limit | query | no | integer | 50 |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | ThreadDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Get Latest Thread Result
GET /api/v1/threads/{thread_id}/result
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | RunDetail |
| 422 | Validation Error | application/json | HTTPValidationError |
Stream Thread Events
GET /api/v1/threads/{thread_id}/stream
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | text/event-stream | any |
| 422 | Validation Error | application/json | HTTPValidationError |
Create Thread
POST /api/v1/threads
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ThreadCreateRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 201 | Successful Response | application/json | ThreadResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Fork Thread
POST /api/v1/threads/{thread_id}/fork
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ThreadForkRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | ThreadResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Rewind Thread
POST /api/v1/threads/{thread_id}/rewind
Parameters:
| Name | In | Required | Type | Default | Description |
|---|---|---|---|---|---|
| thread_id | path | yes | string |
Request body:
| Content Type | Required | Schema |
|---|---|---|
| application/json | yes | ThreadRewindRequest |
Responses:
| Status | Description | Content Type | Schema |
|---|---|---|---|
| 200 | Successful Response | application/json | ThreadResult |
| 422 | Validation Error | application/json | HTTPValidationError |
Schemas
AgentCapResource
Stable identity of one State capability available to an agent.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
kind | yes | string | ||
name | yes | string | ||
ref | yes | string |
AgentCeiling
Stable queries that can only narrow agent resources.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
models | no | array<string> | null | ||
prompts | no | array<string> | null | ||
psyches | no | array<string> | null | ||
services | no | array<string> | null | ||
skills | no | array<string> | null | ||
tools | no | array<string> | null |
AgentResources
Stable ordered resources available at one execution point.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
caps | no | array<AgentCapResource> | [] | |
models | no | array<string> | [] | |
tools | no | array<AgentToolResource> | [] |
AgentToolResource
Stable identity of one model-facing tool available to an agent.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
model_name | yes | string | ||
name | yes | string | ||
plugin | yes | string | ||
toolset | yes | string |
Array_Value_
One immutable typed Toolang array.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
type | yes | string | ||
value | yes | array<Value> |
AskStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
name | no | string | null | ||
request | yes | string | ||
span | yes | Span |
AudioInputPart
One audio input part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
data | no | string | null | ||
data_url | no | string | null | ||
filename | no | string | null | ||
format | no | mp3 | wav | null | ||
media_type | no | string | null | ||
type | yes | audio |
AudioPart
One canonical audio input part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
data | yes | string | ||
filename | no | string | null | ||
format | yes | mp3 | wav | ||
media_type | no | string | null | ||
transcript | no | string | null | ||
type | no | audio | "audio" |
AuthoredRerunRequest
One unresolved rerun request for server-owned resolution.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
commands | no | array<RunOverridePayload> | ||
model | no | ModelRequest | null | ||
model_override | no | ModelOverride | null | ||
request_id | yes | string |
AuthoredRetryRequest
One unresolved retry request for server-owned resolution.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
anchor | no | string | null | ||
commands | no | array<RunOverridePayload> | ||
request_id | yes | string |
AuthoredRunRequest
One materialized authored run request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
model | yes | ModelRequest | null | ||
policy | yes | RunPolicy | ||
request_id | yes | string | ||
runnable | yes | RunnableRequest_str_ | ||
thread_id | yes | string |
CancelControlPayload
Optional run cancellation reason values.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | no | object<string, Value | string> |
CapDetail
Complete representation of one effective capability.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
content | no | string | null | ||
definition_file | yes | string | ||
description | yes | string | null | ||
editable | yes | boolean | ||
files | no | array<string> | null | ||
form | yes | authored | inline | configured | referenced | ||
kind | yes | psyche | skill | service | prompt | ||
line | no | integer | null | ||
name | yes | string | ||
origin | yes | local | remote | ||
ref | yes | string | ||
scope | yes | root | home | here | ||
summary | no | string | null |
CapInfo
Summary of one effective capability.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
definition_file | yes | string | ||
description | yes | string | null | ||
editable | yes | boolean | ||
form | yes | authored | inline | configured | referenced | ||
kind | yes | psyche | skill | service | prompt | ||
line | no | integer | null | ||
name | yes | string | ||
origin | yes | local | remote | ||
ref | yes | string | ||
scope | yes | root | home | here | ||
summary | no | string | null |
ChoreCreateRequest
Request one authored chore creation.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | "" | |
schedule | no | string | "FREQ=HOURLY;INTERVAL=1" | |
title | no | string | null |
ChorePatchRequest
Request one authored chore update.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | null | ||
schedule | no | string | null | ||
title | no | string | null |
CollectionStepNoted
Collection cardinality learned while executing one Flow Step.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
output_items | no | integer | null | ||
total_items | yes | integer |
CompactControlPayload
One compact Run output made available for adoption.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
horizon | yes | string |
ConfiguredCapRequest
One configured cap ref mutation request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
ref | yes | string | ||
scope | no | home | root | "home" |
ControlInfo
One accepted execution control.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
created_at | yes | string | ||
error | yes | string | null | ||
finished_at | yes | string | null | ||
index | yes | integer | ||
kind | yes | run | recall | retry | reload | compact | execute | steer | cancel | create | fork | rewind | ||
payload | yes | RunControlPayload | RetryControlPayload | ReloadControlPayload | CompactControlPayload | ExecuteControlPayload | SteerControlPayload | CancelControlPayload | RecallControlPayload | CreateControlPayload | ForkControlPayload | RewindControlPayload | ||
request_id | yes | string | null | ||
run_id | yes | string | ||
status | yes | pending | applied | wontapply | revoked | ||
timing | yes | immediate | next_step | next_call | ||
triggered_by | no | string | null |
DocumentInputPart
One document input part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
data | no | string | null | ||
file_id | no | string | null | ||
filename | no | string | null | ||
media_type | no | string | null | ||
type | yes | document | ||
url | no | string | null |
DocumentPart
One canonical document part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
data | no | string | null | ||
file_id | no | string | null | ||
filename | no | string | null | ||
media_type | no | string | null | ||
type | no | document | "document" | |
url | no | string | null |
DropStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
count | no | integer | null | ||
doc | no | string | null | ||
lanes | no | integer | null | ||
position | no | first | last | null | ||
runnable | no | string | null | ||
span | yes | Span |
ExecuteControlPayload
One durable same-Run runnable replacement.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | yes | object<string, Value | string> | ||
runnable | yes | string | ||
state | yes | string |
ForkControlPayload
Fork one thread at a visible run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
fork_at | yes | string | ||
fork_from | yes | string | ||
fork_head | yes | string |
GatherStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
runnable | yes | string | ||
span | yes | Span |
ImageInputPart
One image input part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
detail | no | low | high | auto | original | "auto" | |
file_id | no | string | null | ||
filename | no | string | null | ||
image_url | no | string | null | ||
media_type | no | string | null | ||
type | yes | image |
ImagePart
One canonical image input part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
detail | no | low | high | auto | original | "auto" | |
file_id | no | string | null | ||
filename | no | string | null | ||
image_url | no | string | null | ||
media_type | no | string | null | ||
type | no | image | "image" |
InputMessagePayload
One user-authored input message.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
parts | yes | array<TextInputPart | ImageInputPart | AudioInputPart | DocumentInputPart> | ||
role | no | user | "user" |
IterationOccurrence
One loop iteration and the phase executing within it.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
count | no | integer | null | ||
index | yes | integer | ||
phase | yes | body | until |
JobDetail
Complete representation of one authored job.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | "" | |
id | yes | string | ||
kind | yes | task | chore | ||
path | yes | string | ||
remote_ref | no | string | null | ||
remote_status | no | string | null | ||
runtime | yes | JobRuntimeInfo | ||
schedule | no | string | null | ||
stage | yes | draft | ready | archived | ||
status | yes | pending | running | done | failed | canceled | null | ||
title | yes | string | ||
updated_at | yes | string |
JobInfo
Summary of one authored task or chore.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
id | yes | string | ||
kind | yes | task | chore | ||
path | yes | string | ||
remote_ref | no | string | null | ||
remote_status | no | string | null | ||
runtime | yes | JobRuntimeInfo | ||
schedule | no | string | null | ||
stage | yes | draft | ready | archived | ||
status | yes | pending | running | done | failed | canceled | null | ||
title | yes | string | ||
updated_at | yes | string |
JobRuntimeInfo
Runtime state attached to one authored job.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
error | no | string | null | ||
last_run | yes | LastRunInfo | null | ||
next_run_at | yes | string | null | ||
thread_id | yes | string |
KeepStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
count | no | integer | null | ||
doc | no | string | null | ||
lanes | no | integer | null | ||
position | no | first | last | null | ||
runnable | no | string | null | ||
span | yes | Span |
LastRunInfo
Small run summary embedded in job runtime state.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
error | no | string | null | ||
finished_at | yes | string | null | ||
id | yes | string | ||
started_at | yes | string | null | ||
status | yes | string |
LetStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
span | yes | Span | ||
value | yes | string |
LoopStepNoted
Iteration count and terminal cause learned when a loop Step ends.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
iterations | yes | integer | ||
termination | yes | exhausted | satisfied | failed | canceled | ||
total | no | integer | null |
MapStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
lanes | no | integer | null | ||
runnable | yes | string | ||
span | yes | Span |
ModelAccounting
Versioned durable accounting for one completed model call.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
estimate | no | ModelCost | null | ||
input_tokens | yes | integer | ||
meters | no | array<ModelUsageMeter> | [] | |
output_tokens | yes | integer | ||
pricing | no | ModelPricing | null | ||
reasoning | no | ModelReasoningAccounting | {} | |
reported | no | ModelCost | null | ||
selected | no | reported | estimated | none | "none" | |
version | no | integer | 1 |
ModelCost
One provider-reported or catalog-estimated monetary amount.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
amount | yes | string | ||
complete | yes | boolean | ||
currency | yes | string | ||
lines | no | array<ModelCostLine> | [] |
ModelCostLine
One applied quantity and rate contributing to a model cost.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
amount | yes | string | ||
condition | no | object | null | ||
meter | yes | string | ||
per | yes | string | ||
quantity | yes | string | ||
rate | yes | string | ||
unit | yes | string |
ModelOverride
Sparse model identity and typed parameter changes from one input source.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
effort | no | none | minimal | low | medium | high | xhigh | max | default | integer | auto | null | ||
identity | no | string | null |
ModelParameters
Typed call parameters attached to one model request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
reasoning | no | ReasoningParameters | null |
ModelPricing
Catalog pricing provenance captured for one completed call.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
match | no | object | ||
plan | no | string | "standard" | |
revision | no | string | null | ||
source | yes | string |
ModelReasoningAccounting
Requested, selected, and provider-reported reasoning controls.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
reported | no | object | null | ||
requested | no | object | null | ||
selected | no | object | null |
ModelRequest
One exact model ref and its typed call parameters.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
parameters | no | ModelParameters | {} | |
ref | yes | string |
ModelStepNoted
Accounting and continuation learned when a model Step ends.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
accounting | no | ModelAccounting | null | ||
cont | no | object | null | ||
cost | no | string | null | ||
price | no | ModelTokenPrice | null | ||
tokens | no | ModelTokenCount | null |
ModelTokenCount
Input and output tokens consumed by one model Step.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | yes | integer | ||
output | yes | integer |
ModelTokenPrice
Decimal-text prices applied to one model Step.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | yes | string | null | ||
output | yes | string | null |
ModelUsageMeter
One auditable quantity within model-call accounting.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
name | yes | string | ||
quantity | yes | string | ||
unit | no | string | "token" |
Occurrence
Runtime position of one Run or Step within structural execution.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
item | no | OccurrencePosition | null | ||
iteration | no | IterationOccurrence | null | ||
lane | no | OccurrencePosition | null |
OccurrencePosition
One zero-based position within a known total.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
count | yes | integer | ||
index | yes | integer |
Output
One produced local and its optional destination in the local table.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | ||
local | yes | object |
PromptInvocation
One resolved authored prompt invocation and its immutable definition.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
arguments | yes | array<tuple<string, string>> | ||
cap_ref | yes | string | ||
content_hash | yes | string | ||
name | yes | string | ||
parent | yes | integer | null |
PutCapRequest
One authored cap write request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
content | no | string | null | ||
scope | no | home | root | "home" |
ReasoningParameters
Reasoning controls requested for one model selection.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
budget_tokens | no | integer | null | ||
effort | no | none | minimal | low | medium | high | xhigh | max | default | null |
RecallControlPayload
One immutable resource revision recalled by the runtime.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
content | yes | string | ||
revision | yes | string | ||
target | yes | RulesRecallTarget | SkillRecallTarget | ServiceRecallTarget |
ReloadControlPayload
One durable Agent State revision adopted by an active root run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
state | yes | string |
RepeatStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | null | ||
count | no | integer | null | ||
doc | no | string | null | ||
runnable | no | string | null | ||
span | yes | Span | ||
stmts | no | array<RunStmt | SeekStmt | AskStmt | ScatterStmt | StormStmt | GatherStmt | SettleStmt | MapStmt | KeepStmt | DropStmt | SortStmt | RepeatStmt | LetStmt> | [] |
RetryControlPayload
Effective settings and restart boundary for one retry.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
limits | yes | RunLimits-Output | ||
model_request | no | ModelRequest | null | ||
resources | yes | AgentResources | ||
retry_from | yes | string | null |
RewindControlPayload
Rewind one thread with an optimistic head check.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
rewind_from | yes | string | ||
rewind_if | yes | string | ||
rewind_through | yes | string |
RulesRecallTarget
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
kind | no | rules | "rules" | |
path | yes | string | ||
workspace | yes | string |
RunCancelRequest
Request run cancellation.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
mode | no | immediate | next_step | next_call | "immediate" | |
reason | no | string | null | ||
request_id | no | string | null |
RunCommand
One low-level command retained by execution and restart protocols.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
field | yes | string | ||
group | yes | allow | default | limit | ||
value | yes | array<string> | string | integer | string | null |
RunCommandResult
One accepted HTTP run control.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
command | yes | ControlInfo | ||
run | yes | RunDetail |
RunControlPayload
Resolved preparation snapshot for one new run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
authored_commands | no | array<RunCommand> | [] | |
authored_input | no | object<string, string> | null | ||
authored_session_commands | no | array<RunCommand> | [] | |
horizon | no | string | null | ||
input | yes | object<string, Value | string> | ||
limits | yes | RunLimits-Output | ||
model | yes | string | ||
model_request | no | ModelRequest | null | ||
prompt_invocations | no | array<PromptInvocation> | [] | |
resources | yes | AgentResources | ||
runnable | yes | string | ||
sandbox | no | string | null | ||
state | yes | string | null |
RunControlRefData
One caller-facing run-control reference.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
index | yes | integer | ||
run | yes | string |
RunCreateRequest
One non-interactive agic or flow execution request.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
model | yes | ModelRequest | null | ||
policy | yes | RunPolicy | ||
request_id | yes | string | ||
runnable | yes | RunnableRequest_object_ | ||
thread_id | yes | string |
RunDetail
One complete run detail schema.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
call_kind | yes | string | ||
control | yes | RunControlRefData | ||
controls | yes | array<ControlInfo> | ||
created_at | yes | string | ||
error | yes | object | null | ||
finished_at | yes | string | null | ||
id | yes | string | ||
input_text | yes | string | ||
occurrence | yes | Occurrence | null | ||
output | yes | Output | null | ||
parent | yes | string | null | ||
root_run_id | yes | string | ||
runnable_kind | yes | string | ||
runnable_name | yes | string | null | ||
started_at | yes | string | ||
state | yes | RunControlRefData | ||
status | yes | pending | running | succeeded | failed | canceled | ||
steps | no | array<StepData> | ||
summary | yes | string | ||
thread_id | yes | string | ||
updated_at | yes | string |
RunInfo
One caller-facing run summary and identity schema.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
call_kind | yes | string | ||
created_at | yes | string | ||
error | yes | object | null | ||
finished_at | yes | string | null | ||
id | yes | string | ||
input_text | yes | string | ||
occurrence | yes | Occurrence | null | ||
parent | yes | string | null | ||
root_run_id | yes | string | ||
runnable_kind | yes | string | ||
runnable_name | yes | string | null | ||
started_at | yes | string | ||
state | yes | RunControlRefData | ||
status | yes | pending | running | succeeded | failed | canceled | ||
summary | yes | string | ||
thread_id | yes | string | ||
updated_at | yes | string |
RunLimits-Input
Limits applied to one root run tree.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
agic_model_calls | no | integer | null | 200 | |
agic_tool_calls | no | integer | null | ||
cost | no | number | string | null | ||
time | no | integer | null | ||
tokens | no | integer | null |
RunLimits-Output
Limits applied to one root run tree.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
agic_model_calls | no | integer | null | 200 | |
agic_tool_calls | no | integer | null | ||
cost | no | string | null | ||
time | no | integer | null | ||
tokens | no | integer | null |
RunLimitsPayload
One partial run-limit override.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
agic_model_calls | no | integer | null | ||
agic_tool_calls | no | integer | null | ||
cost | no | number | string | null | ||
time | no | integer | null | ||
tokens | no | integer | null |
RunnableRequest_object_
One concrete runnable ref and its complete input.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | no | object | ||
ref | yes | string |
RunnableRequest_str_
One concrete runnable ref and its complete input.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | no | object<string, string> | ||
ref | yes | string |
RunOverridePayload
One retained low-level restart command on the stable HTTP wire.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
field | yes | string | ||
group | yes | allow | default | limit | ||
value | yes | array<string> | string | integer | null |
RunPolicy
Materialized caller policy for one root run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
allow | no | array<AgentCeiling> | [] | |
limits | no | RunLimits-Input |
RunRerunRequest
Request a new run from one source invocation.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
limits | no | RunLimitsPayload | null | ||
model | no | ModelRequest | null | ||
request_id | no | string | null |
RunRetryRequest
Request retry from one durable step boundary.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
anchor | no | string | null | ||
limits | no | RunLimitsPayload | null | ||
request_id | no | string | null |
RunSteerRequest
Request one steering message for a running run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
message | yes | InputMessagePayload | ||
mode | no | immediate | next_step | next_call | "next_step" | |
request_id | no | string | null |
RunStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
runnable | yes | string | ||
span | yes | Span |
ScatterStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
count | yes | integer | ||
doc | no | string | null | ||
runnable | yes | string | ||
span | yes | Span |
SeekStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
name | yes | string | ||
runnable | yes | string | ||
span | yes | Span |
ServiceRecallTarget
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
kind | no | service | "service" | |
ref | yes | string |
SettleStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
runnable | yes | string | ||
span | yes | Span |
SkillRecallTarget
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
kind | no | skill | "skill" | |
ref | yes | string |
SortStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
doc | no | string | null | ||
lanes | no | integer | null | ||
order | yes | ascending | descending | ||
runnable | yes | string | ||
span | yes | Span |
Span
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
line | yes | integer |
SteerControlPayload
Values injected at one agic model boundary.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
input | yes | object<string, Value | string> |
StepData
One caller-facing execution step.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
aborted_by | no | string | null | ||
created_at | no | string | "" | |
error | no | object | null | ||
finished_at | no | string | null | ||
given | yes | any | ||
input | yes | array<string> | ||
kind | yes | run | agent | human | model | tool | par | loop | value | ||
noted | no | ModelStepNoted | ToolStepNoted | CollectionStepNoted | LoopStepNoted | null | ||
occurrence | no | Occurrence | null | ||
output | yes | Output | null | ||
path | yes | string | ||
preceded_by | no | array<string> | [] | |
started_at | no | string | "" | |
state | yes | RunControlRefData | ||
status | no | pending | running | succeeded | failed | canceled | "running" |
StormStmt
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
binding | no | string | null | "_" | |
count | yes | integer | ||
doc | no | string | null | ||
lanes | no | integer | null | ||
runnable | yes | string | ||
span | yes | Span |
Struct_Value_
One immutable authored Toolang struct value.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
type | yes | string | ||
value | yes | object<string, Value> |
TaskCreateRequest
Request one authored task creation.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | "" | |
title | no | string | null |
TaskPatchRequest
Request one authored task update.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
body | no | string | null | ||
title | no | string | null |
TextInputPart
One text input part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
text | yes | string | ||
type | yes | text |
TextPart
One canonical text part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
text | yes | string | ||
type | no | text | "text" |
ThreadControlRefData
One caller-facing thread-control reference.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
index | yes | integer | ||
thread | yes | string |
ThreadCreateRequest
Request one empty thread.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
client | no | web | term | tui | chat | script | "term" | |
peer | no | ThreadPeerPayload | null |
ThreadDetail
One complete thread detail schema.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
active_run | yes | ThreadRunInfo | null | ||
channel | yes | string | ||
created_at | yes | string | ||
created_by | yes | ThreadControlRefData | ||
head | yes | ThreadControlRefData | ||
id | yes | string | ||
latest_run | yes | ThreadRunInfo | null | ||
origin | yes | string | ||
peer | yes | ThreadPeerInfo | ||
run_count | yes | integer | ||
runs | no | array<RunDetail> | ||
status | yes | string | ||
title | yes | string | ||
updated_at | yes | string |
ThreadForkRequest
Request a thread fork from one anchor run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
request_id | no | string | null | ||
run_id | no | string | null |
ThreadInfo
One thread summary, with latest_run identifying its latest visible root.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
active_run | yes | ThreadRunInfo | null | ||
channel | yes | string | ||
created_at | yes | string | ||
created_by | yes | ThreadControlRefData | ||
head | yes | ThreadControlRefData | ||
id | yes | string | ||
latest_run | yes | ThreadRunInfo | null | ||
origin | yes | string | ||
peer | yes | ThreadPeerInfo | ||
run_count | yes | integer | ||
status | yes | string | ||
title | yes | string | ||
updated_at | yes | string |
ThreadPeerInfo
One caller-facing thread peer.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
name | no | string | "user" | |
thread | no | string | null | ||
type | no | user | agent | "user" |
ThreadPeerPayload
One optional thread peer descriptor.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
name | no | string | "user" | |
thread | no | string | null | ||
type | no | string | "user" |
ThreadResult
One HTTP thread mutation response.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
thread | yes | ThreadInfo |
ThreadRewindRequest
Request a thread rewind from one anchor run.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
request_id | no | string | null | ||
run_id | no | string | null |
ThreadRunInfo
One compact run summary embedded in a thread summary.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
created_at | yes | string | ||
finished_at | yes | string | null | ||
id | yes | string | ||
started_at | yes | string | ||
status | yes | pending | running | succeeded | failed | canceled | ||
updated_at | yes | string |
ToolCallPart
One canonical tool-call part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
call_id | no | string | null | ||
input | no | object | ||
reasoning | no | string | null | ||
tool_call_id | yes | string | ||
tool_family | yes | string | ||
tool_name | yes | string | ||
type | no | tool_call | "tool_call" |
ToolResultPart
One canonical tool-result part.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
call_id | no | string | null | ||
error | no | string | null | ||
output | no | object | ||
tool_call_id | yes | string | ||
tool_family | yes | string | ||
tool_name | yes | string | ||
type | no | tool_result | "tool_result" |
ToolStepNoted
Human-readable terminal summary learned when a tool Step ends.
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
summary | yes | string |
CreateControlPayload
Create one empty thread.
Type: object
Value
Type: string | integer | number | boolean | TextPart | ImagePart | AudioPart | DocumentPart | ToolCallPart | ToolResultPart | Array_Value_ | Struct_Value_ | array<Value> | object<string, Value> | null
HTTPValidationError
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
detail | no | array<ValidationError> |
ValidationError
| Field | Required | Type | Default | Description |
|---|---|---|---|---|
ctx | no | object | ||
input | no | any | ||
loc | yes | array<string | integer> | ||
msg | yes | string | ||
type | yes | string |