# Type Alias StateReducer<T>

StateReducer:
| { type: "overwrite" }
| { type: "append" }
| { type: "custom"; merge: (existing: T, incoming: T) => T }

State reducer controls how values merge when multiple nodes write to the same state field. Inspired by LangGraph's Annotated reducers.

#### Type Parameters

- T = unknown

- Defined in packages/nexus-agents/src/orchestration/graph/graph-types.ts:65