Package com.google.genai.types
Class CitationMetadata
java.lang.Object
com.google.genai.JsonSerializable
com.google.genai.types.CitationMetadata
Citation information when the model quotes another source.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
Builder for CitationMetadata. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic CitationMetadata.Builder
builder()
Instantiates a builder for CitationMetadata.Contains citation information when the model directly quotes, at length, from another source.static CitationMetadata
Deserializes a JSON string to a CitationMetadata object.abstract CitationMetadata.Builder
Creates a builder with the same values as this instance.Methods inherited from class com.google.genai.JsonSerializable
fromJsonString, toJson
-
Constructor Details
-
CitationMetadata
public CitationMetadata()
-
-
Method Details
-
citations
Contains citation information when the model directly quotes, at length, from another source. Can include traditional websites and code repositories. -
builder
Instantiates a builder for CitationMetadata. -
toBuilder
Creates a builder with the same values as this instance. -
fromJson
Deserializes a JSON string to a CitationMetadata object.
-