Package com.google.genai.types
Class GenerateContentParameters
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.GenerateContentParameters
Config for models.generate_content parameters.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for GenerateContentParameters. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()
Instantiates a builder for GenerateContentParameters.abstract Optional<GenerateContentConfig>
config()
Configuration that contains optional model parameters.contents()
Content of the request.static GenerateContentParameters
Deserializes a JSON string to a GenerateContentParameters object.model()
ID of the model to use.abstract GenerateContentParameters.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
stringToJsonNode, toJson
-
Constructor Details
-
GenerateContentParameters
public GenerateContentParameters()
-
-
Method Details
-
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>`_. -
contents
Content of the request. -
config
Configuration that contains optional model parameters. -
builder
Instantiates a builder for GenerateContentParameters. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a GenerateContentParameters object.
-