Class ComputerUse

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      public abstract class ComputerUse.Builder

      Builder for ComputerUse.

    • Constructor Summary

      Constructors 
      Constructor Description
      ComputerUse()
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      abstract Optional<Environment> environment() Required.
      abstract Optional<List<String>> excludedPredefinedFunctions() By default, predefined functions are included in the final model call.
      static ComputerUse.Builder builder() Instantiates a builder for ComputerUse.
      abstract ComputerUse.Builder toBuilder() Creates a builder with the same values as this instance.
      static ComputerUse fromJson(String jsonString) Deserializes a JSON string to a ComputerUse object.
      • Methods inherited from class com.google.genai.JsonSerializable

        fromJsonNode, fromJsonString, objectMapper, setMaxReadLength, stringToJsonNode, toJson, toJsonNode, toJsonString
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ComputerUse

        ComputerUse()
    • Method Detail

      • excludedPredefinedFunctions

         abstract Optional<List<String>> 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.