# Interface WaveTaskResult

Result of a single task execution.

interface WaveTaskResult {
taskId: string;
success: boolean;
output: string;
truncated: boolean;
originalLength: number;
estimatedTokens: number;
durationMs: number;
error?: string;
}

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:71

##### Index

### Properties

taskId
success
output
truncated
originalLength
estimatedTokens
durationMs
error?

## Properties

### `Readonly` taskId

taskId: string

Task ID this result belongs to.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:73

### `Readonly` success

success: boolean

Whether the task completed successfully.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:75

### `Readonly` output

output: string

The output text (truncated to maxOutputChars).

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:77

### `Readonly` truncated

truncated: boolean

Whether the output was truncated.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:79

### `Readonly` originalLength

originalLength: number

Original output length before truncation.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:81

### `Readonly` estimatedTokens

estimatedTokens: number

Estimated tokens consumed by this task.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:83

### `Readonly` durationMs

durationMs: number

Duration of this task in ms.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:85

### `Optional` `Readonly` error

error?: string

Error message if task failed.

- Defined in packages/nexus-agents/src/agents/wave-scheduler-types.ts:87