Class CustomCodeExecutionSpec.Builder
- Enclosing class:
- CustomCodeExecutionSpec
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract CustomCodeExecutionSpecbuild()Clears the value of codeExecutionRegion field.Clears the value of evaluationFunction field.abstract CustomCodeExecutionSpec.BuildercodeExecutionRegion(String codeExecutionRegion) Setter for codeExecutionRegion.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. -
codeExecutionRegion
Setter for codeExecutionRegion.codeExecutionRegion: Optional. The region to use for code execution. If set, the Code Execution Sandbox will be invoked in the specified region regardless of the request's originating region. Must be a region where the Code Execution Sandbox is available. For the current list of [supported regions](https://cloud.google.com/vertex-ai/generative-ai/docs/agent-engine/locations). If unset, the request's originating region is used; requests from regions where the sandbox is unavailable will fail with UNIMPLEMENTED.
-
clearCodeExecutionRegion
Clears the value of codeExecutionRegion field. -
build
-