Uses of Class
com.google.genai.types.Part
Packages that use Part
-
Uses of Part in com.google.genai.types
Methods in com.google.genai.types that return PartModifier and TypeMethodDescriptionabstract Part
Part.Builder.build()
static Part
Constructs a InlineData Part from a byte array and MIME type.static Part
Part.fromFunctionCall
(String name, Map<String, Object> args) Constructs a FunctionCall Part from a function name and args.static Part
Part.fromFunctionResponse
(String name, Map<String, Object> response) Constructs a FunctionResponse Part from a function name and response.static Part
Deserializes a JSON string to a Part object.static Part
Constructs a Text Part from a text string.static Part
Constructs a FileData Part from a file URI and MIME type.Methods in com.google.genai.types that return types with arguments of type PartModifier and TypeMethodDescriptionContent.parts()
List of parts that constitute a single message.@Nullable com.google.common.collect.ImmutableList<Part>
GenerateContentResponse.parts()
Returns the list of parts in the first candidate of the response.Methods in com.google.genai.types with parameters of type PartModifier and TypeMethodDescriptionstatic Content
Constructs a Content from parts, assuming the role is "user".Setter for parts.Method parameters in com.google.genai.types with type arguments of type Part