# Interface TaskPayload

Payload for task lifecycle events.

interface TaskPayload {
type: "task";
phase: "completed" | "started";
taskId: string;
taskDescription?: string;
success?: boolean;
}

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:72

##### Index

### Properties

type
phase
taskId
taskDescription?
success?

## Properties

### `Readonly` type

type: "task"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:73

### `Readonly` phase

phase: "completed" | "started"

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:74

### `Readonly` taskId

taskId: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:75

### `Optional` `Readonly` taskDescription

taskDescription?: string

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:76

### `Optional` `Readonly` success

success?: boolean

- Defined in packages/nexus-agents/src/observability/swarm-observer-payloads.ts:77