Domain Model
Agent Task Run
Fields
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| id | string.uuid | Yes | — | Id |
| createdAt | string.date-time | Yes | — | Created at |
| updatedAt | string.date-time | Yes | — | Updated at |
| taskId | string | Yes | — | ID of the associated task |
| workspaceId | string | Yes | — | ID of the associated workspace |
| runType | enum(plan, execute, retry, approval_execution) | Yes | — | Run type |
| executorKind | enum(automation, agent_pipeline, workflow, human) | Yes | — | Executor kind |
| status | enum(started, completed, failed, canceled) | Yes | — | Status |
| inputPayload | unknown | Yes | — | Input payload |
| planPayload | unknown | Yes | — | Plan payload |
| resultPayload | unknown | Yes | — | Result payload |
| startedAt | string.date-time | Yes | — | Started at |
| completedAt | unknown | Yes | — | Completed at |
| error | unknown | Yes | — | Error |
| traceRefId | unknown | Yes | — | ID of the associated trace ref |
Create Schema
Fields accepted when creating a new record:
| Field | Type | Required | Default | Description |
|---|---|---|---|---|
| taskId | string | Yes | — | ID of the associated task |
| runType | enum(plan, execute, retry, approval_execution) | Yes | — | Run type |
| executorKind | enum(automation, agent_pipeline, workflow, human) | Yes | — | Executor kind |
| status | enum(started, completed, failed, canceled) | Yes | "started" | Status |
| inputPayload | object | No | — | Input payload |
| planPayload | object | No | — | Plan payload |
| resultPayload | object | No | — | Result payload |
| error | string | No | — | Error |
| traceRefId | string | No | — | ID of the associated trace ref |
| workspaceId | string | No | — | ID of the associated workspace |