Interface StateReducers

Maps dot-notation field paths in GraphState.scratch / GraphState.artifacts to either a BuiltinReducer name or a custom ReducerFn.

Example:

const reducers: StateReducers = {
'scratch.messages': 'concat',
'artifacts.summary': (a, b) => String(b ?? a),
};
interface StateReducers {
    [fieldPath: string]: ReducerFn | BuiltinReducer;
}

Indexable

[fieldPath: string]: ReducerFn | BuiltinReducer