Space Docs
API ReferenceAgent Task

agentTask.createRun

Type: Mutation · Auth: Workspace-aware

Input

FieldTypeRequiredDefaultDescription
taskIdstringYesID of the associated task
runTypeenum(plan, execute, retry, approval_execution)YesRun type
executorKindenum(automation, agent_pipeline, workflow, human)YesExecutor kind
statusenum(started, completed, failed, canceled)Yes"started"Status
inputPayloadobjectNoInput payload
planPayloadobjectNoPlan payload
resultPayloadobjectNoResult payload
errorstringNoError
traceRefIdstringNoID of the associated trace ref
workspaceIdstringNoID of the associated workspace

Example

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

On this page