Maps dot-notation field paths in GraphState.scratch / GraphState.artifacts to either a BuiltinReducer name or a custom ReducerFn.
GraphState.scratch
GraphState.artifacts
BuiltinReducer
ReducerFn
Example:
const reducers: StateReducers = { 'scratch.messages': 'concat', 'artifacts.summary': (a, b) => String(b ?? a),}; Copy
const reducers: StateReducers = { 'scratch.messages': 'concat', 'artifacts.summary': (a, b) => String(b ?? a),};
Maps dot-notation field paths in
GraphState.scratch/GraphState.artifactsto either aBuiltinReducername or a customReducerFn.Example: