Class LiveConnectParameters

java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.LiveConnectParameters

public abstract class LiveConnectParameters extends JsonSerializable
Parameters for connecting to the live API.
  • Constructor Details

    • LiveConnectParameters

      public LiveConnectParameters()
  • Method Details

    • model

      public abstract Optional<String> model()
      ID of the model to use. For a list of models, see `Google models <https://cloud.google.com/vertex-ai/generative-ai/docs/learn/models>`_.
    • config

      public abstract Optional<LiveConnectConfig> config()
      Optional configuration parameters for the request.
    • builder

      public static LiveConnectParameters.Builder builder()
      Instantiates a builder for LiveConnectParameters.
    • toBuilder

      public abstract LiveConnectParameters.Builder toBuilder()
      Creates a builder with the same values as this instance.
    • fromJson

      public static LiveConnectParameters fromJson(String jsonString)
      Deserializes a JSON string to a LiveConnectParameters object.