Optional conditionMap of condition hook names to evaluation functions.
Used when choices have condition: { type: 'hook', name: 'hookName' }.
conditionHooks: {
hasKey: (state) => state.inventory.includes('key'),
isHealthy: (state) => state.health > 50
}
Optional expressionFunction to evaluate expression strings.
Used when choices have condition: { type: 'expression', expr: 'level >= 5' }.
expressionEvaluator: (expr, state) => {
// Implement your expression parser here
return eval(expr.replace(/level/g, state.level.toString()));
}
Options for configuring runtime behavior.