Skip to content
LogoLogo

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

MethodPathTagSummary
GET/api/v1/agicsagentList Agent Agics
GET/api/v1/flowsagentList Agent Flows
GET/api/v1/modelsagentList Agent Models
GET/api/v1/profileagentGet Profile
GET/api/v1/prompt-completionsagentList Prompt Completions
GET/api/v1/toolsagentList Agent Tools
GET/healthzagentHealth Check
GET/api/v1/capscapsGet Caps Summary
GET/api/v1/promptscapsList Prompts
GET/api/v1/prompts/templatescapsList Prompt Templates
GET/api/v1/prompts/templates/{template_name}capsGet Prompt Template
GET/api/v1/prompts/{name}capsGet Prompt
GET/api/v1/psychescapsList Psyches
GET/api/v1/psyches/templatescapsList Psyche Templates
GET/api/v1/psyches/templates/{template_name}capsGet Psyche Template
GET/api/v1/psyches/{name}capsGet Psyche
GET/api/v1/servicescapsList Services
GET/api/v1/services/templatescapsList Service Templates
GET/api/v1/services/templates/{template_name}capsGet Service Template
GET/api/v1/services/{name}capsGet Service
GET/api/v1/skillscapsList Skills
GET/api/v1/skills/templatescapsList Skill Templates
GET/api/v1/skills/templates/{template_name}capsGet Skill Template
GET/api/v1/skills/{name}capsGet Skill
PUT/api/v1/prompts/{name}/authoredcapsUpsert Authored Prompt
PUT/api/v1/prompts/{name}/configuredcapsConfigure Prompt
PUT/api/v1/psyches/{name}/authoredcapsUpsert Authored Psyche
PUT/api/v1/psyches/{name}/configuredcapsConfigure Psyche
PUT/api/v1/services/{name}/authoredcapsUpsert Authored Service
PUT/api/v1/services/{name}/configuredcapsConfigure Service
PUT/api/v1/skills/{name}/authoredcapsUpsert Authored Skill
PUT/api/v1/skills/{name}/configuredcapsConfigure Skill
DELETE/api/v1/prompts/{name}/authoredcapsDelete Authored Prompt
DELETE/api/v1/prompts/{name}/configuredcapsRemove Configured Prompt
DELETE/api/v1/psyches/{name}/authoredcapsDelete Authored Psyche
DELETE/api/v1/psyches/{name}/configuredcapsRemove Configured Psyche
DELETE/api/v1/services/{name}/authoredcapsDelete Authored Service
DELETE/api/v1/services/{name}/configuredcapsRemove Configured Service
DELETE/api/v1/skills/{name}/authoredcapsDelete Authored Skill
DELETE/api/v1/skills/{name}/configuredcapsRemove Configured Skill
GET/api/v1/choresjobsList Chores
GET/api/v1/chores/archivedjobsList Archived Chores
GET/api/v1/chores/archived/{chore_id}jobsGet Archived Chore
GET/api/v1/chores/{chore_id}jobsGet Chore
GET/api/v1/jobsjobsList Jobs
GET/api/v1/jobs/archivedjobsList Archived Jobs
GET/api/v1/jobs/archived/{job_id}jobsGet Archived Job
GET/api/v1/jobs/{job_id}jobsGet Job
GET/api/v1/tasksjobsList Tasks
GET/api/v1/tasks/archivedjobsList Archived Tasks
GET/api/v1/tasks/archived/{task_id}jobsGet Archived Task
GET/api/v1/tasks/{task_id}jobsGet Task
POST/api/v1/choresjobsCreate Chore
POST/api/v1/chores/{chore_id}/archivejobsArchive Chore
POST/api/v1/chores/{chore_id}/canceljobsCancel Chore
POST/api/v1/chores/{chore_id}/draftjobsDraft Chore
POST/api/v1/chores/{chore_id}/readyjobsReady Chore
POST/api/v1/chores/{chore_id}/runjobsRun Chore
POST/api/v1/tasksjobsCreate Task
POST/api/v1/tasks/{task_id}/archivejobsArchive Task
POST/api/v1/tasks/{task_id}/canceljobsCancel Task
POST/api/v1/tasks/{task_id}/draftjobsDraft Task
POST/api/v1/tasks/{task_id}/readyjobsReady Task
POST/api/v1/tasks/{task_id}/reopenjobsReopen Task
DELETE/api/v1/chores/archived/{chore_id}jobsDelete Archived Chore
DELETE/api/v1/tasks/archived/{task_id}jobsDelete Archived Task
PATCH/api/v1/chores/archived/{chore_id}jobsUpdate Archived Chore
PATCH/api/v1/chores/{chore_id}jobsUpdate Chore
PATCH/api/v1/tasks/archived/{task_id}jobsUpdate Archived Task
PATCH/api/v1/tasks/{task_id}jobsUpdate Task
GET/api/v1/runsrunsList Runs
GET/api/v1/runs/defaultsrunsGet Run Defaults
GET/api/v1/runs/{run_id}runsGet Run
GET/api/v1/runs/{run_id}/streamrunsStream Run Events
POST/api/v1/runs/authored/streamrunsExecute Authored Run Stream
POST/api/v1/runs/streamrunsExecute Run Stream
POST/api/v1/runs/{run_id}/cancelrunsCancel Run
POST/api/v1/runs/{run_id}/rerunrunsRerun Run
POST/api/v1/runs/{run_id}/rerun/streamrunsRerun Authored Run Stream
POST/api/v1/runs/{run_id}/retryrunsRetry Run
POST/api/v1/runs/{run_id}/retry/streamrunsRetry Authored Run Stream
POST/api/v1/runs/{run_id}/steerrunsSteer Run
GET/api/v1/threadsthreadsList Threads
GET/api/v1/threads/{thread_id}threadsGet Thread
GET/api/v1/threads/{thread_id}/resultthreadsGet Latest Thread Result
GET/api/v1/threads/{thread_id}/streamthreadsStream Thread Events
POST/api/v1/threadsthreadsCreate Thread
POST/api/v1/threads/{thread_id}/forkthreadsFork Thread
POST/api/v1/threads/{thread_id}/rewindthreadsRewind Thread

Agent

Agent profile, health, and operational update endpoints.

List Agent Agics

GET /api/v1/agics

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Agent Flows

GET /api/v1/flows

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Agent Models

GET /api/v1/models

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Profile

GET /api/v1/profile

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

List Prompt Completions

GET /api/v1/prompt-completions

Parameters:

NameInRequiredTypeDefaultDescription
runnablequerynostring | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Agent Tools

GET /api/v1/tools

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Health Check

GET /healthz

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject<string, boolean>

Caps

Capability inspection and mutation endpoints.

Get Caps Summary

GET /api/v1/caps

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

List Prompts

GET /api/v1/prompts

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<CapInfo>
422Validation Errorapplication/jsonHTTPValidationError

List Prompt Templates

GET /api/v1/prompts/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<object>

Get Prompt Template

GET /api/v1/prompts/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Prompt

GET /api/v1/prompts/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

List Psyches

GET /api/v1/psyches

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<CapInfo>
422Validation Errorapplication/jsonHTTPValidationError

List Psyche Templates

GET /api/v1/psyches/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<object>

Get Psyche Template

GET /api/v1/psyches/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Psyche

GET /api/v1/psyches/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

List Services

GET /api/v1/services

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<CapInfo>
422Validation Errorapplication/jsonHTTPValidationError

List Service Templates

GET /api/v1/services/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<object>

Get Service Template

GET /api/v1/services/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Service

GET /api/v1/services/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

List Skills

GET /api/v1/skills

Parameters:

NameInRequiredTypeDefaultDescription
queryquerynoarray<string> | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<CapInfo>
422Validation Errorapplication/jsonHTTPValidationError

List Skill Templates

GET /api/v1/skills/templates

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<object>

Get Skill Template

GET /api/v1/skills/templates/{template_name}

Parameters:

NameInRequiredTypeDefaultDescription
template_namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject
422Validation Errorapplication/jsonHTTPValidationError

Get Skill

GET /api/v1/skills/{name}

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Upsert Authored Prompt

PUT /api/v1/prompts/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Configure Prompt

PUT /api/v1/prompts/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesConfiguredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Upsert Authored Psyche

PUT /api/v1/psyches/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Configure Psyche

PUT /api/v1/psyches/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesConfiguredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Upsert Authored Service

PUT /api/v1/services/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Configure Service

PUT /api/v1/services/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesConfiguredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Upsert Authored Skill

PUT /api/v1/skills/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesPutCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Configure Skill

PUT /api/v1/skills/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesConfiguredCapRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonCapDetail
422Validation Errorapplication/jsonHTTPValidationError

Delete Authored Prompt

DELETE /api/v1/prompts/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Remove Configured Prompt

DELETE /api/v1/prompts/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Delete Authored Psyche

DELETE /api/v1/psyches/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Remove Configured Psyche

DELETE /api/v1/psyches/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Delete Authored Service

DELETE /api/v1/services/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Remove Configured Service

DELETE /api/v1/services/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Delete Authored Skill

DELETE /api/v1/skills/{name}/authored

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Remove Configured Skill

DELETE /api/v1/skills/{name}/configured

Parameters:

NameInRequiredTypeDefaultDescription
namepathyesstring
scopequerynohome | root"home"

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Jobs

Task and chore management endpoints.

List Chores

GET /api/v1/chores

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<JobInfo>

List Archived Chores

GET /api/v1/chores/archived

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<JobInfo>

Get Archived Chore

GET /api/v1/chores/archived/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Get Chore

GET /api/v1/chores/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

List Jobs

GET /api/v1/jobs

Parameters:

NameInRequiredTypeDefaultDescription
kindquerynotask | chore | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<JobInfo>
422Validation Errorapplication/jsonHTTPValidationError

List Archived Jobs

GET /api/v1/jobs/archived

Parameters:

NameInRequiredTypeDefaultDescription
kindquerynotask | chore | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<JobInfo>
422Validation Errorapplication/jsonHTTPValidationError

Get Archived Job

GET /api/v1/jobs/archived/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Get Job

GET /api/v1/jobs/{job_id}

Parameters:

NameInRequiredTypeDefaultDescription
job_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

List Tasks

GET /api/v1/tasks

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<JobInfo>

List Archived Tasks

GET /api/v1/tasks/archived

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<JobInfo>

Get Archived Task

GET /api/v1/tasks/archived/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Get Task

GET /api/v1/tasks/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Create Chore

POST /api/v1/chores

Request body:

Content TypeRequiredSchema
application/jsonyesChoreCreateRequest

Responses:

StatusDescriptionContent TypeSchema
201Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Archive Chore

POST /api/v1/chores/{chore_id}/archive

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Cancel Chore

POST /api/v1/chores/{chore_id}/cancel

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Draft Chore

POST /api/v1/chores/{chore_id}/draft

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Ready Chore

POST /api/v1/chores/{chore_id}/ready

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Run Chore

POST /api/v1/chores/{chore_id}/run

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
202Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Create Task

POST /api/v1/tasks

Request body:

Content TypeRequiredSchema
application/jsonyesTaskCreateRequest

Responses:

StatusDescriptionContent TypeSchema
201Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Archive Task

POST /api/v1/tasks/{task_id}/archive

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Cancel Task

POST /api/v1/tasks/{task_id}/cancel

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Draft Task

POST /api/v1/tasks/{task_id}/draft

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Ready Task

POST /api/v1/tasks/{task_id}/ready

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Reopen Task

POST /api/v1/tasks/{task_id}/reopen

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonany
422Validation Errorapplication/jsonHTTPValidationError

Delete Archived Chore

DELETE /api/v1/chores/archived/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Delete Archived Task

DELETE /api/v1/tasks/archived/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
204Successful Response
422Validation Errorapplication/jsonHTTPValidationError

Update Archived Chore

PATCH /api/v1/chores/archived/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesChorePatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Update Chore

PATCH /api/v1/chores/{chore_id}

Parameters:

NameInRequiredTypeDefaultDescription
chore_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesChorePatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Update Archived Task

PATCH /api/v1/tasks/archived/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesTaskPatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Update Task

PATCH /api/v1/tasks/{task_id}

Parameters:

NameInRequiredTypeDefaultDescription
task_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesTaskPatchRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonJobDetail
422Validation Errorapplication/jsonHTTPValidationError

Runs

Run execution and inspection endpoints.

List Runs

GET /api/v1/runs

Parameters:

NameInRequiredTypeDefaultDescription
limitquerynointeger50
thread_idquerynostring | null
statusquerynopending | running | succeeded | failed | canceled | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<RunInfo>
422Validation Errorapplication/jsonHTTPValidationError

Get Run Defaults

GET /api/v1/runs/defaults

Return concrete defaults for a client-owned run session.

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonobject

Get Run

GET /api/v1/runs/{run_id}

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonRunDetail
422Validation Errorapplication/jsonHTTPValidationError

Stream Run Events

GET /api/v1/runs/{run_id}/stream

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responsetext/event-streamany
422Validation Errorapplication/jsonHTTPValidationError

Execute Authored Run Stream

POST /api/v1/runs/authored/stream

Request body:

Content TypeRequiredSchema
application/jsonyesAuthoredRunRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responsetext/event-streamany
422Validation Errorapplication/jsonHTTPValidationError

Execute Run Stream

POST /api/v1/runs/stream

Request body:

Content TypeRequiredSchema
application/jsonyesRunCreateRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responsetext/event-streamany
422Validation Errorapplication/jsonHTTPValidationError

Cancel Run

POST /api/v1/runs/{run_id}/cancel

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonnoRunCancelRequest | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonRunCommandResult
422Validation Errorapplication/jsonHTTPValidationError

Rerun Run

POST /api/v1/runs/{run_id}/rerun

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonnoRunRerunRequest | null

Responses:

StatusDescriptionContent TypeSchema
202Successful Responseapplication/jsonRunCommandResult
422Validation Errorapplication/jsonHTTPValidationError

Rerun Authored Run Stream

POST /api/v1/runs/{run_id}/rerun/stream

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesAuthoredRerunRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responsetext/event-streamany
422Validation Errorapplication/jsonHTTPValidationError

Retry Run

POST /api/v1/runs/{run_id}/retry

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonnoRunRetryRequest | null

Responses:

StatusDescriptionContent TypeSchema
202Successful Responseapplication/jsonRunCommandResult
422Validation Errorapplication/jsonHTTPValidationError

Retry Authored Run Stream

POST /api/v1/runs/{run_id}/retry/stream

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesAuthoredRetryRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responsetext/event-streamany
422Validation Errorapplication/jsonHTTPValidationError

Steer Run

POST /api/v1/runs/{run_id}/steer

Parameters:

NameInRequiredTypeDefaultDescription
run_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesRunSteerRequest

Responses:

StatusDescriptionContent TypeSchema
202Successful Responseapplication/jsonRunCommandResult
422Validation Errorapplication/jsonHTTPValidationError

Threads

Thread lifecycle and inspection endpoints.

List Threads

GET /api/v1/threads

Parameters:

NameInRequiredTypeDefaultDescription
limitquerynointeger50
originquerynostring | null
channelquerynostring | null
statusquerynostring | null

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonarray<ThreadInfo>
422Validation Errorapplication/jsonHTTPValidationError

Get Thread

GET /api/v1/threads/{thread_id}

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring
limitquerynointeger50

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonThreadDetail
422Validation Errorapplication/jsonHTTPValidationError

Get Latest Thread Result

GET /api/v1/threads/{thread_id}/result

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonRunDetail
422Validation Errorapplication/jsonHTTPValidationError

Stream Thread Events

GET /api/v1/threads/{thread_id}/stream

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring

Responses:

StatusDescriptionContent TypeSchema
200Successful Responsetext/event-streamany
422Validation Errorapplication/jsonHTTPValidationError

Create Thread

POST /api/v1/threads

Request body:

Content TypeRequiredSchema
application/jsonyesThreadCreateRequest

Responses:

StatusDescriptionContent TypeSchema
201Successful Responseapplication/jsonThreadResult
422Validation Errorapplication/jsonHTTPValidationError

Fork Thread

POST /api/v1/threads/{thread_id}/fork

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesThreadForkRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonThreadResult
422Validation Errorapplication/jsonHTTPValidationError

Rewind Thread

POST /api/v1/threads/{thread_id}/rewind

Parameters:

NameInRequiredTypeDefaultDescription
thread_idpathyesstring

Request body:

Content TypeRequiredSchema
application/jsonyesThreadRewindRequest

Responses:

StatusDescriptionContent TypeSchema
200Successful Responseapplication/jsonThreadResult
422Validation Errorapplication/jsonHTTPValidationError

Schemas

AgentCapResource

Stable identity of one State capability available to an agent.

FieldRequiredTypeDefaultDescription
kindyesstring
nameyesstring
refyesstring

AgentCeiling

Stable queries that can only narrow agent resources.

FieldRequiredTypeDefaultDescription
modelsnoarray<string> | null
promptsnoarray<string> | null
psychesnoarray<string> | null
servicesnoarray<string> | null
skillsnoarray<string> | null
toolsnoarray<string> | null

AgentResources

Stable ordered resources available at one execution point.

FieldRequiredTypeDefaultDescription
capsnoarray<AgentCapResource>[]
modelsnoarray<string>[]
toolsnoarray<AgentToolResource>[]

AgentToolResource

Stable identity of one model-facing tool available to an agent.

FieldRequiredTypeDefaultDescription
model_nameyesstring
nameyesstring
pluginyesstring
toolsetyesstring

Array_Value_

One immutable typed Toolang array.

FieldRequiredTypeDefaultDescription
typeyesstring
valueyesarray<Value>

AskStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
namenostring | null
requestyesstring
spanyesSpan

AudioInputPart

One audio input part.

FieldRequiredTypeDefaultDescription
datanostring | null
data_urlnostring | null
filenamenostring | null
formatnomp3 | wav | null
media_typenostring | null
typeyesaudio

AudioPart

One canonical audio input part.

FieldRequiredTypeDefaultDescription
datayesstring
filenamenostring | null
formatyesmp3 | wav
media_typenostring | null
transcriptnostring | null
typenoaudio"audio"

AuthoredRerunRequest

One unresolved rerun request for server-owned resolution.

FieldRequiredTypeDefaultDescription
commandsnoarray<RunOverridePayload>
modelnoModelRequest | null
model_overridenoModelOverride | null
request_idyesstring

AuthoredRetryRequest

One unresolved retry request for server-owned resolution.

FieldRequiredTypeDefaultDescription
anchornostring | null
commandsnoarray<RunOverridePayload>
request_idyesstring

AuthoredRunRequest

One materialized authored run request.

FieldRequiredTypeDefaultDescription
modelyesModelRequest | null
policyyesRunPolicy
request_idyesstring
runnableyesRunnableRequest_str_
thread_idyesstring

CancelControlPayload

Optional run cancellation reason values.

FieldRequiredTypeDefaultDescription
inputnoobject<string, Value | string>

CapDetail

Complete representation of one effective capability.

FieldRequiredTypeDefaultDescription
contentnostring | null
definition_fileyesstring
descriptionyesstring | null
editableyesboolean
filesnoarray<string> | null
formyesauthored | inline | configured | referenced
kindyespsyche | skill | service | prompt
linenointeger | null
nameyesstring
originyeslocal | remote
refyesstring
scopeyesroot | home | here
summarynostring | null

CapInfo

Summary of one effective capability.

FieldRequiredTypeDefaultDescription
definition_fileyesstring
descriptionyesstring | null
editableyesboolean
formyesauthored | inline | configured | referenced
kindyespsyche | skill | service | prompt
linenointeger | null
nameyesstring
originyeslocal | remote
refyesstring
scopeyesroot | home | here
summarynostring | null

ChoreCreateRequest

Request one authored chore creation.

FieldRequiredTypeDefaultDescription
bodynostring""
schedulenostring"FREQ=HOURLY;INTERVAL=1"
titlenostring | null

ChorePatchRequest

Request one authored chore update.

FieldRequiredTypeDefaultDescription
bodynostring | null
schedulenostring | null
titlenostring | null

CollectionStepNoted

Collection cardinality learned while executing one Flow Step.

FieldRequiredTypeDefaultDescription
output_itemsnointeger | null
total_itemsyesinteger

CompactControlPayload

One compact Run output made available for adoption.

FieldRequiredTypeDefaultDescription
horizonyesstring

ConfiguredCapRequest

One configured cap ref mutation request.

FieldRequiredTypeDefaultDescription
refyesstring
scopenohome | root"home"

ControlInfo

One accepted execution control.

FieldRequiredTypeDefaultDescription
created_atyesstring
erroryesstring | null
finished_atyesstring | null
indexyesinteger
kindyesrun | recall | retry | reload | compact | execute | steer | cancel | create | fork | rewind
payloadyesRunControlPayload | RetryControlPayload | ReloadControlPayload | CompactControlPayload | ExecuteControlPayload | SteerControlPayload | CancelControlPayload | RecallControlPayload | CreateControlPayload | ForkControlPayload | RewindControlPayload
request_idyesstring | null
run_idyesstring
statusyespending | applied | wontapply | revoked
timingyesimmediate | next_step | next_call
triggered_bynostring | null

DocumentInputPart

One document input part.

FieldRequiredTypeDefaultDescription
datanostring | null
file_idnostring | null
filenamenostring | null
media_typenostring | null
typeyesdocument
urlnostring | null

DocumentPart

One canonical document part.

FieldRequiredTypeDefaultDescription
datanostring | null
file_idnostring | null
filenamenostring | null
media_typenostring | null
typenodocument"document"
urlnostring | null

DropStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
countnointeger | null
docnostring | null
lanesnointeger | null
positionnofirst | last | null
runnablenostring | null
spanyesSpan

ExecuteControlPayload

One durable same-Run runnable replacement.

FieldRequiredTypeDefaultDescription
inputyesobject<string, Value | string>
runnableyesstring
stateyesstring

ForkControlPayload

Fork one thread at a visible run.

FieldRequiredTypeDefaultDescription
fork_atyesstring
fork_fromyesstring
fork_headyesstring

GatherStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
runnableyesstring
spanyesSpan

ImageInputPart

One image input part.

FieldRequiredTypeDefaultDescription
detailnolow | high | auto | original"auto"
file_idnostring | null
filenamenostring | null
image_urlnostring | null
media_typenostring | null
typeyesimage

ImagePart

One canonical image input part.

FieldRequiredTypeDefaultDescription
detailnolow | high | auto | original"auto"
file_idnostring | null
filenamenostring | null
image_urlnostring | null
media_typenostring | null
typenoimage"image"

InputMessagePayload

One user-authored input message.

FieldRequiredTypeDefaultDescription
partsyesarray<TextInputPart | ImageInputPart | AudioInputPart | DocumentInputPart>
rolenouser"user"

IterationOccurrence

One loop iteration and the phase executing within it.

FieldRequiredTypeDefaultDescription
countnointeger | null
indexyesinteger
phaseyesbody | until

JobDetail

Complete representation of one authored job.

FieldRequiredTypeDefaultDescription
bodynostring""
idyesstring
kindyestask | chore
pathyesstring
remote_refnostring | null
remote_statusnostring | null
runtimeyesJobRuntimeInfo
schedulenostring | null
stageyesdraft | ready | archived
statusyespending | running | done | failed | canceled | null
titleyesstring
updated_atyesstring

JobInfo

Summary of one authored task or chore.

FieldRequiredTypeDefaultDescription
idyesstring
kindyestask | chore
pathyesstring
remote_refnostring | null
remote_statusnostring | null
runtimeyesJobRuntimeInfo
schedulenostring | null
stageyesdraft | ready | archived
statusyespending | running | done | failed | canceled | null
titleyesstring
updated_atyesstring

JobRuntimeInfo

Runtime state attached to one authored job.

FieldRequiredTypeDefaultDescription
errornostring | null
last_runyesLastRunInfo | null
next_run_atyesstring | null
thread_idyesstring

KeepStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
countnointeger | null
docnostring | null
lanesnointeger | null
positionnofirst | last | null
runnablenostring | null
spanyesSpan

LastRunInfo

Small run summary embedded in job runtime state.

FieldRequiredTypeDefaultDescription
errornostring | null
finished_atyesstring | null
idyesstring
started_atyesstring | null
statusyesstring

LetStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
spanyesSpan
valueyesstring

LoopStepNoted

Iteration count and terminal cause learned when a loop Step ends.

FieldRequiredTypeDefaultDescription
iterationsyesinteger
terminationyesexhausted | satisfied | failed | canceled
totalnointeger | null

MapStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
lanesnointeger | null
runnableyesstring
spanyesSpan

ModelAccounting

Versioned durable accounting for one completed model call.

FieldRequiredTypeDefaultDescription
estimatenoModelCost | null
input_tokensyesinteger
metersnoarray<ModelUsageMeter>[]
output_tokensyesinteger
pricingnoModelPricing | null
reasoningnoModelReasoningAccounting{}
reportednoModelCost | null
selectednoreported | estimated | none"none"
versionnointeger1

ModelCost

One provider-reported or catalog-estimated monetary amount.

FieldRequiredTypeDefaultDescription
amountyesstring
completeyesboolean
currencyyesstring
linesnoarray<ModelCostLine>[]

ModelCostLine

One applied quantity and rate contributing to a model cost.

FieldRequiredTypeDefaultDescription
amountyesstring
conditionnoobject | null
meteryesstring
peryesstring
quantityyesstring
rateyesstring
unityesstring

ModelOverride

Sparse model identity and typed parameter changes from one input source.

FieldRequiredTypeDefaultDescription
effortnonone | minimal | low | medium | high | xhigh | max | default | integer | auto | null
identitynostring | null

ModelParameters

Typed call parameters attached to one model request.

FieldRequiredTypeDefaultDescription
reasoningnoReasoningParameters | null

ModelPricing

Catalog pricing provenance captured for one completed call.

FieldRequiredTypeDefaultDescription
matchnoobject
plannostring"standard"
revisionnostring | null
sourceyesstring

ModelReasoningAccounting

Requested, selected, and provider-reported reasoning controls.

FieldRequiredTypeDefaultDescription
reportednoobject | null
requestednoobject | null
selectednoobject | null

ModelRequest

One exact model ref and its typed call parameters.

FieldRequiredTypeDefaultDescription
parametersnoModelParameters{}
refyesstring

ModelStepNoted

Accounting and continuation learned when a model Step ends.

FieldRequiredTypeDefaultDescription
accountingnoModelAccounting | null
contnoobject | null
costnostring | null
pricenoModelTokenPrice | null
tokensnoModelTokenCount | null

ModelTokenCount

Input and output tokens consumed by one model Step.

FieldRequiredTypeDefaultDescription
inputyesinteger
outputyesinteger

ModelTokenPrice

Decimal-text prices applied to one model Step.

FieldRequiredTypeDefaultDescription
inputyesstring | null
outputyesstring | null

ModelUsageMeter

One auditable quantity within model-call accounting.

FieldRequiredTypeDefaultDescription
nameyesstring
quantityyesstring
unitnostring"token"

Occurrence

Runtime position of one Run or Step within structural execution.

FieldRequiredTypeDefaultDescription
itemnoOccurrencePosition | null
iterationnoIterationOccurrence | null
lanenoOccurrencePosition | null

OccurrencePosition

One zero-based position within a known total.

FieldRequiredTypeDefaultDescription
countyesinteger
indexyesinteger

Output

One produced local and its optional destination in the local table.

FieldRequiredTypeDefaultDescription
bindingnostring | null
localyesobject

PromptInvocation

One resolved authored prompt invocation and its immutable definition.

FieldRequiredTypeDefaultDescription
argumentsyesarray<tuple<string, string>>
cap_refyesstring
content_hashyesstring
nameyesstring
parentyesinteger | null

PutCapRequest

One authored cap write request.

FieldRequiredTypeDefaultDescription
contentnostring | null
scopenohome | root"home"

ReasoningParameters

Reasoning controls requested for one model selection.

FieldRequiredTypeDefaultDescription
budget_tokensnointeger | null
effortnonone | minimal | low | medium | high | xhigh | max | default | null

RecallControlPayload

One immutable resource revision recalled by the runtime.

FieldRequiredTypeDefaultDescription
contentyesstring
revisionyesstring
targetyesRulesRecallTarget | SkillRecallTarget | ServiceRecallTarget

ReloadControlPayload

One durable Agent State revision adopted by an active root run.

FieldRequiredTypeDefaultDescription
stateyesstring

RepeatStmt

FieldRequiredTypeDefaultDescription
bindingnonull
countnointeger | null
docnostring | null
runnablenostring | null
spanyesSpan
stmtsnoarray<RunStmt | SeekStmt | AskStmt | ScatterStmt | StormStmt | GatherStmt | SettleStmt | MapStmt | KeepStmt | DropStmt | SortStmt | RepeatStmt | LetStmt>[]

RetryControlPayload

Effective settings and restart boundary for one retry.

FieldRequiredTypeDefaultDescription
limitsyesRunLimits-Output
model_requestnoModelRequest | null
resourcesyesAgentResources
retry_fromyesstring | null

RewindControlPayload

Rewind one thread with an optimistic head check.

FieldRequiredTypeDefaultDescription
rewind_fromyesstring
rewind_ifyesstring
rewind_throughyesstring

RulesRecallTarget

FieldRequiredTypeDefaultDescription
kindnorules"rules"
pathyesstring
workspaceyesstring

RunCancelRequest

Request run cancellation.

FieldRequiredTypeDefaultDescription
modenoimmediate | next_step | next_call"immediate"
reasonnostring | null
request_idnostring | null

RunCommand

One low-level command retained by execution and restart protocols.

FieldRequiredTypeDefaultDescription
fieldyesstring
groupyesallow | default | limit
valueyesarray<string> | string | integer | string | null

RunCommandResult

One accepted HTTP run control.

FieldRequiredTypeDefaultDescription
commandyesControlInfo
runyesRunDetail

RunControlPayload

Resolved preparation snapshot for one new run.

FieldRequiredTypeDefaultDescription
authored_commandsnoarray<RunCommand>[]
authored_inputnoobject<string, string> | null
authored_session_commandsnoarray<RunCommand>[]
horizonnostring | null
inputyesobject<string, Value | string>
limitsyesRunLimits-Output
modelyesstring
model_requestnoModelRequest | null
prompt_invocationsnoarray<PromptInvocation>[]
resourcesyesAgentResources
runnableyesstring
sandboxnostring | null
stateyesstring | null

RunControlRefData

One caller-facing run-control reference.

FieldRequiredTypeDefaultDescription
indexyesinteger
runyesstring

RunCreateRequest

One non-interactive agic or flow execution request.

FieldRequiredTypeDefaultDescription
modelyesModelRequest | null
policyyesRunPolicy
request_idyesstring
runnableyesRunnableRequest_object_
thread_idyesstring

RunDetail

One complete run detail schema.

FieldRequiredTypeDefaultDescription
call_kindyesstring
controlyesRunControlRefData
controlsyesarray<ControlInfo>
created_atyesstring
erroryesobject | null
finished_atyesstring | null
idyesstring
input_textyesstring
occurrenceyesOccurrence | null
outputyesOutput | null
parentyesstring | null
root_run_idyesstring
runnable_kindyesstring
runnable_nameyesstring | null
started_atyesstring
stateyesRunControlRefData
statusyespending | running | succeeded | failed | canceled
stepsnoarray<StepData>
summaryyesstring
thread_idyesstring
updated_atyesstring

RunInfo

One caller-facing run summary and identity schema.

FieldRequiredTypeDefaultDescription
call_kindyesstring
created_atyesstring
erroryesobject | null
finished_atyesstring | null
idyesstring
input_textyesstring
occurrenceyesOccurrence | null
parentyesstring | null
root_run_idyesstring
runnable_kindyesstring
runnable_nameyesstring | null
started_atyesstring
stateyesRunControlRefData
statusyespending | running | succeeded | failed | canceled
summaryyesstring
thread_idyesstring
updated_atyesstring

RunLimits-Input

Limits applied to one root run tree.

FieldRequiredTypeDefaultDescription
agic_model_callsnointeger | null200
agic_tool_callsnointeger | null
costnonumber | string | null
timenointeger | null
tokensnointeger | null

RunLimits-Output

Limits applied to one root run tree.

FieldRequiredTypeDefaultDescription
agic_model_callsnointeger | null200
agic_tool_callsnointeger | null
costnostring | null
timenointeger | null
tokensnointeger | null

RunLimitsPayload

One partial run-limit override.

FieldRequiredTypeDefaultDescription
agic_model_callsnointeger | null
agic_tool_callsnointeger | null
costnonumber | string | null
timenointeger | null
tokensnointeger | null

RunnableRequest_object_

One concrete runnable ref and its complete input.

FieldRequiredTypeDefaultDescription
inputnoobject
refyesstring

RunnableRequest_str_

One concrete runnable ref and its complete input.

FieldRequiredTypeDefaultDescription
inputnoobject<string, string>
refyesstring

RunOverridePayload

One retained low-level restart command on the stable HTTP wire.

FieldRequiredTypeDefaultDescription
fieldyesstring
groupyesallow | default | limit
valueyesarray<string> | string | integer | null

RunPolicy

Materialized caller policy for one root run.

FieldRequiredTypeDefaultDescription
allownoarray<AgentCeiling>[]
limitsnoRunLimits-Input

RunRerunRequest

Request a new run from one source invocation.

FieldRequiredTypeDefaultDescription
limitsnoRunLimitsPayload | null
modelnoModelRequest | null
request_idnostring | null

RunRetryRequest

Request retry from one durable step boundary.

FieldRequiredTypeDefaultDescription
anchornostring | null
limitsnoRunLimitsPayload | null
request_idnostring | null

RunSteerRequest

Request one steering message for a running run.

FieldRequiredTypeDefaultDescription
messageyesInputMessagePayload
modenoimmediate | next_step | next_call"next_step"
request_idnostring | null

RunStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
runnableyesstring
spanyesSpan

ScatterStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
countyesinteger
docnostring | null
runnableyesstring
spanyesSpan

SeekStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
nameyesstring
runnableyesstring
spanyesSpan

ServiceRecallTarget

FieldRequiredTypeDefaultDescription
kindnoservice"service"
refyesstring

SettleStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
runnableyesstring
spanyesSpan

SkillRecallTarget

FieldRequiredTypeDefaultDescription
kindnoskill"skill"
refyesstring

SortStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
docnostring | null
lanesnointeger | null
orderyesascending | descending
runnableyesstring
spanyesSpan

Span

FieldRequiredTypeDefaultDescription
lineyesinteger

SteerControlPayload

Values injected at one agic model boundary.

FieldRequiredTypeDefaultDescription
inputyesobject<string, Value | string>

StepData

One caller-facing execution step.

FieldRequiredTypeDefaultDescription
aborted_bynostring | null
created_atnostring""
errornoobject | null
finished_atnostring | null
givenyesany
inputyesarray<string>
kindyesrun | agent | human | model | tool | par | loop | value
notednoModelStepNoted | ToolStepNoted | CollectionStepNoted | LoopStepNoted | null
occurrencenoOccurrence | null
outputyesOutput | null
pathyesstring
preceded_bynoarray<string>[]
started_atnostring""
stateyesRunControlRefData
statusnopending | running | succeeded | failed | canceled"running"

StormStmt

FieldRequiredTypeDefaultDescription
bindingnostring | null"_"
countyesinteger
docnostring | null
lanesnointeger | null
runnableyesstring
spanyesSpan

Struct_Value_

One immutable authored Toolang struct value.

FieldRequiredTypeDefaultDescription
typeyesstring
valueyesobject<string, Value>

TaskCreateRequest

Request one authored task creation.

FieldRequiredTypeDefaultDescription
bodynostring""
titlenostring | null

TaskPatchRequest

Request one authored task update.

FieldRequiredTypeDefaultDescription
bodynostring | null
titlenostring | null

TextInputPart

One text input part.

FieldRequiredTypeDefaultDescription
textyesstring
typeyestext

TextPart

One canonical text part.

FieldRequiredTypeDefaultDescription
textyesstring
typenotext"text"

ThreadControlRefData

One caller-facing thread-control reference.

FieldRequiredTypeDefaultDescription
indexyesinteger
threadyesstring

ThreadCreateRequest

Request one empty thread.

FieldRequiredTypeDefaultDescription
clientnoweb | term | tui | chat | script"term"
peernoThreadPeerPayload | null

ThreadDetail

One complete thread detail schema.

FieldRequiredTypeDefaultDescription
active_runyesThreadRunInfo | null
channelyesstring
created_atyesstring
created_byyesThreadControlRefData
headyesThreadControlRefData
idyesstring
latest_runyesThreadRunInfo | null
originyesstring
peeryesThreadPeerInfo
run_countyesinteger
runsnoarray<RunDetail>
statusyesstring
titleyesstring
updated_atyesstring

ThreadForkRequest

Request a thread fork from one anchor run.

FieldRequiredTypeDefaultDescription
request_idnostring | null
run_idnostring | null

ThreadInfo

One thread summary, with latest_run identifying its latest visible root.

FieldRequiredTypeDefaultDescription
active_runyesThreadRunInfo | null
channelyesstring
created_atyesstring
created_byyesThreadControlRefData
headyesThreadControlRefData
idyesstring
latest_runyesThreadRunInfo | null
originyesstring
peeryesThreadPeerInfo
run_countyesinteger
statusyesstring
titleyesstring
updated_atyesstring

ThreadPeerInfo

One caller-facing thread peer.

FieldRequiredTypeDefaultDescription
namenostring"user"
threadnostring | null
typenouser | agent"user"

ThreadPeerPayload

One optional thread peer descriptor.

FieldRequiredTypeDefaultDescription
namenostring"user"
threadnostring | null
typenostring"user"

ThreadResult

One HTTP thread mutation response.

FieldRequiredTypeDefaultDescription
threadyesThreadInfo

ThreadRewindRequest

Request a thread rewind from one anchor run.

FieldRequiredTypeDefaultDescription
request_idnostring | null
run_idnostring | null

ThreadRunInfo

One compact run summary embedded in a thread summary.

FieldRequiredTypeDefaultDescription
created_atyesstring
finished_atyesstring | null
idyesstring
started_atyesstring
statusyespending | running | succeeded | failed | canceled
updated_atyesstring

ToolCallPart

One canonical tool-call part.

FieldRequiredTypeDefaultDescription
call_idnostring | null
inputnoobject
reasoningnostring | null
tool_call_idyesstring
tool_familyyesstring
tool_nameyesstring
typenotool_call"tool_call"

ToolResultPart

One canonical tool-result part.

FieldRequiredTypeDefaultDescription
call_idnostring | null
errornostring | null
outputnoobject
tool_call_idyesstring
tool_familyyesstring
tool_nameyesstring
typenotool_result"tool_result"

ToolStepNoted

Human-readable terminal summary learned when a tool Step ends.

FieldRequiredTypeDefaultDescription
summaryyesstring

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

FieldRequiredTypeDefaultDescription
detailnoarray<ValidationError>

ValidationError

FieldRequiredTypeDefaultDescription
ctxnoobject
inputnoany
locyesarray<string | integer>
msgyesstring
typeyesstring
© 2026 Toolang