# Interface StateChangePayload

Payload for state change events.

interface StateChangePayload {
type: "state_change";
previousState: SwarmAgentState;
newState: SwarmAgentState;
reason?: string;
}

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

##### Index

### Properties

type
previousState
newState
reason?

## Properties

### `Readonly` type

type: "state_change"

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

### `Readonly` previousState

previousState: SwarmAgentState

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

### `Readonly` newState

newState: SwarmAgentState

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

### `Optional` `Readonly` reason

reason?: string

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