# Interface WorkerJob

interface WorkerJob {
completedAt?: number;
createdAt: number;
currentStep?: string;
error?: string;
id: string;
interactions: {
from: string;
text: string;
timestamp: number;
type: string;
}[];
partialResult: string;
pendingQuestion?: { questionId: string; text: string };
result?: string;
resultSurfaced?: boolean;
status:
| "completed"
| "queued"
| "running"
| "waiting_for_input"
| "failed"
| "cancelled";
task: string;
}

- Defined in src/Agent/mode/Worker.mode.ts:98

##### Index

### Properties

completedAt?
createdAt
currentStep?
error?
id
interactions
partialResult
pendingQuestion?
result?
resultSurfaced?
status
task

## Properties

### `Optional` completedAt

completedAt?: number

- Defined in src/Agent/mode/Worker.mode.ts:103

### createdAt

createdAt: number

- Defined in src/Agent/mode/Worker.mode.ts:102

### `Optional` currentStep

currentStep?: string

- Defined in src/Agent/mode/Worker.mode.ts:109

### `Optional` error

error?: string

- Defined in src/Agent/mode/Worker.mode.ts:105

### id

id: string

- Defined in src/Agent/mode/Worker.mode.ts:99

### interactions

interactions: { from: string; text: string; timestamp: number; type: string }[]

- Defined in src/Agent/mode/Worker.mode.ts:107

### partialResult

partialResult: string

- Defined in src/Agent/mode/Worker.mode.ts:108

### `Optional` pendingQuestion

pendingQuestion?: { questionId: string; text: string }

- Defined in src/Agent/mode/Worker.mode.ts:106

### `Optional` result

result?: string

- Defined in src/Agent/mode/Worker.mode.ts:104

### `Optional` resultSurfaced

resultSurfaced?: boolean

- Defined in src/Agent/mode/Worker.mode.ts:110

### status

status:
| "completed"
| "queued"
| "running"
| "waiting_for_input"
| "failed"
| "cancelled"

- Defined in src/Agent/mode/Worker.mode.ts:101

### task

task: string

- Defined in src/Agent/mode/Worker.mode.ts:100