# AgentErrorEvent
Source: https://docs.maelstrom-ai.co/0.2/reference/protocol/interfaces/agenterrorevent/
Documentation revision: 89a8f5e9d10cedcf0b30376d7846113f06f26120
SDK manifests in this build: @maelstrom-co/react@0.2.1, @maelstrom-co/client@0.2.1, @maelstrom-co/connectors@0.2.1, @maelstrom-co/protocol@0.2.1, @maelstrom-co/engine@0.2.1
These docs follow this source revision. Manifest versions do not prove release compatibility; verify the installed package exports before using an API.

Defined in: packages/protocol/src/lib/agent-wire.ts:378

A failure outside any Agent Run.

## Properties

### changeId?

> `optional` **changeId?**: [`ChangeId`](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/changeid/)

Defined in: packages/protocol/src/lib/agent-wire.ts:390

The UI change the failure belongs to. Set for failures of a `ui_applied` input, such as an unknown or stale `changeId`, because that input carries no `inputId`.

* * *

### code?

> `optional` **code?**: `string`

Defined in: packages/protocol/src/lib/agent-wire.ts:394

Optional machine-readable failure kind with no closed taxonomy.

* * *

### error

> **error**: `string`

Defined in: packages/protocol/src/lib/agent-wire.ts:392

Human-readable failure description.

* * *

### inputId?

> `optional` **inputId?**: [`MessageId`](https://docs.maelstrom-ai.co/0.2/reference/protocol/type-aliases/messageid/)

Defined in: packages/protocol/src/lib/agent-wire.ts:384

The offending input, when there is one.

* * *

### type

> **type**: `"error"`

Defined in: packages/protocol/src/lib/agent-wire.ts:380

Member discriminator.

* * *

### version

> **version**: `1`

Defined in: packages/protocol/src/lib/agent-wire.ts:382

Agent wire version, always [AGENT\_WIRE\_VERSION](https://docs.maelstrom-ai.co/0.2/reference/protocol/variables/agent_wire_version/).
