Class CustomCodeExecutionSpec.Builder

    • Constructor Detail

      • CustomCodeExecutionSpec.Builder

        CustomCodeExecutionSpec.Builder()
    • Method Detail

      • evaluationFunction

         abstract CustomCodeExecutionSpec.Builder evaluationFunction(String evaluationFunction)

        Setter for evaluationFunction.

        evaluationFunction: A string representing a user-defined function for evaluation. Expected user to define the following function, e.g.: def evaluate(instance: dict[str, Any]) -> float: Please include this function signature in the code snippet. Instance is the evaluation instance, any fields populated in the instance are available to the function as instance[field_name].