# AgentUiChangeEvent
Source: https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/agentuichangeevent/
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:363](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L363)

A UI change for the browser to apply.

The agent loop is experimental in 0.3 and may change in any minor release.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

## Properties

### changeId

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

Defined in: [packages/protocol/src/lib/agent-wire.ts:371](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L371)

Id the browser echoes when it acknowledges the change.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### response

> **response**: [`MaelstromResponse`](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/maelstromresponse/)

Defined in: [packages/protocol/src/lib/agent-wire.ts:376](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L376)

The [MaelstromResponse](https://docs.maelstrom-ai.co/dev/reference/protocol/interfaces/maelstromresponse/) to apply: layout first, then the Execution Plan.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### runId

> **runId**: [`RunId`](https://docs.maelstrom-ai.co/dev/reference/protocol/type-aliases/runid/) | `null`

Defined in: [packages/protocol/src/lib/agent-wire.ts:369](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L369)

The Agent Run that caused the change, or `null` outside any run.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### type

> **type**: `"ui_change"`

Defined in: [packages/protocol/src/lib/agent-wire.ts:365](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L365)

Member discriminator.

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.

* * *

### version

> **version**: `1`

Defined in: [packages/protocol/src/lib/agent-wire.ts:367](https://github.com/maelstrom-co/maelstrom/blob/89a8f5e9d10cedcf0b30376d7846113f06f26120/packages/protocol/src/lib/agent-wire.ts#L367)

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

> [!WARNING]
> Experimental
> 
> This API should not be used in production and may be trimmed from a public release.
