Space Docs
API ReferenceAgent Task

agentTask.createRun

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
taskIdstringYes—ID of the associated task
runTypeenum(plan, execute, retry, approval_execution)Yes—Run type
executorKindenum(automation, agent_pipeline, workflow, human)Yes—Executor kind
statusenum(started, completed, failed, canceled)Yes"started"Status
inputPayloadobjectNo—Input payload
planPayloadobjectNo—Plan payload
resultPayloadobjectNo—Result payload
errorstringNo—Error
traceRefIdstringNo—ID of the associated trace ref
workspaceIdstringNo—ID of the associated workspace

Example

{
  "taskId": "550e8400-e29b-41d4-a716-446655440000",
  "runType": "plan",
  "executorKind": "automation",
  "status": "started",
  "inputPayload": null,
  "planPayload": null
}

On this page