Class ToolComputerUse.Builder

java.lang.Object
com.google.genai.types.ToolComputerUse.Builder
Enclosing class:
ToolComputerUse

public abstract static class ToolComputerUse.Builder extends Object
Builder for ToolComputerUse.
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • environment

      public abstract ToolComputerUse.Builder environment(Environment environment)
      Setter for environment.

      environment: Required. The environment being operated.

    • environment

      @CanIgnoreReturnValue public ToolComputerUse.Builder environment(Environment.Known knownType)
      Setter for environment given a known enum.

      environment: Required. The environment being operated.

    • environment

      @CanIgnoreReturnValue public ToolComputerUse.Builder environment(String environment)
      Setter for environment given a string.

      environment: Required. The environment being operated.

    • excludedPredefinedFunctions

      public abstract ToolComputerUse.Builder excludedPredefinedFunctions(List<String> excludedPredefinedFunctions)
      Setter for excludedPredefinedFunctions.

      excludedPredefinedFunctions: By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.

    • excludedPredefinedFunctions

      public ToolComputerUse.Builder excludedPredefinedFunctions(String... excludedPredefinedFunctions)
      Setter for excludedPredefinedFunctions.

      excludedPredefinedFunctions: By default, predefined functions are included in the final model call. Some of them can be explicitly excluded from being automatically included. This can serve two purposes: 1. Using a more restricted / different action space. 2. Improving the definitions / instructions of predefined functions.

    • build

      public abstract ToolComputerUse build()