Package com.google.genai.types
Class CustomCodeExecutionSpec.Builder
java.lang.Object
com.google.genai.types.CustomCodeExecutionSpec.Builder
- Enclosing class:
- CustomCodeExecutionSpec
Builder for CustomCodeExecutionSpec.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CustomCodeExecutionSpecbuild()Clears the value of evaluationFunction field.abstract CustomCodeExecutionSpec.BuilderevaluationFunction(String evaluationFunction) Setter for evaluationFunction.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
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].
-
clearEvaluationFunction
Clears the value of evaluationFunction field. -
build
-