# Interface StateTransition

State transition metadata.

interface StateTransition {
from: AgentState;
to: AgentState;
event: StateTransitionEvent;
timestamp: string;
context?: Record<string, unknown>;
}

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:27

##### Index

### Properties

from
to
event
timestamp
context?

## Properties

### from

from: AgentState

Previous state

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:29

### to

to: AgentState

New state

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:31

### event

event: StateTransitionEvent

Event that triggered the transition

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:33

### timestamp

timestamp: string

Timestamp of the transition

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:35

### `Optional` context

context?: Record<string, unknown>

Optional context data

- Defined in packages/nexus-agents/src/agents/state-machine-types.ts:37