Interface CodeBasedOptions

All Superinterfaces:
software.amazon.jsii.JsiiSerializable
All Known Implementing Classes:
CodeBasedOptions.Jsii$Proxy

@Generated(value="jsii-pacmak/1.130.0 (build 048a5ee)", date="2026-05-20T12:39:41.734Z") @Stability(Stable) public interface CodeBasedOptions extends software.amazon.jsii.JsiiSerializable
Options for configuring a code-based custom evaluator using a Lambda function.

Uses a Lambda function to implement custom evaluation logic.

Example:

 IFunction evalFunction;
 Evaluator codeEvaluator = Evaluator.Builder.create(this, "CodeEvaluator")
         .evaluatorName("custom_code_evaluator")
         .level(EvaluationLevel.TOOL_CALL)
         .description("Evaluates tool call accuracy using custom logic")
         .evaluatorConfig(EvaluatorConfig.codeBased(CodeBasedOptions.builder()
                 .lambdaFunction(evalFunction)
                 .timeout(Duration.seconds(30))
                 .build()))
         .build();