Record Class GroundingMetadata
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.GroundingMetadata
public record GroundingMetadata(List<GroundingMetadata.GroundingChunk> groundingChunks, List<GroundingMetadata.GroundingSupport> groundingSupports, List<String> webSearchQueries, GroundingMetadata.SearchEntryPoint searchEntryPoint, GroundingMetadata.RetrievalMetadata retrievalMetadata, String googleMapsWidgetContextToken)
extends Record
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic final recordstatic final recordstatic final recordstatic final recordstatic final record -
Constructor Summary
ConstructorsConstructorDescriptionGroundingMetadata(List<GroundingMetadata.GroundingChunk> groundingChunks, List<GroundingMetadata.GroundingSupport> groundingSupports, List<String> webSearchQueries, GroundingMetadata.SearchEntryPoint searchEntryPoint, GroundingMetadata.RetrievalMetadata retrievalMetadata, String googleMapsWidgetContextToken) Creates an instance of aGroundingMetadatarecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic GroundingMetadata.Builderbuilder()final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegoogleMapsWidgetContextTokenrecord component.Returns the value of thegroundingChunksrecord component.Returns the value of thegroundingSupportsrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theretrievalMetadatarecord component.Returns the value of thesearchEntryPointrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thewebSearchQueriesrecord component.
-
Constructor Details
-
GroundingMetadata
public GroundingMetadata(List<GroundingMetadata.GroundingChunk> groundingChunks, List<GroundingMetadata.GroundingSupport> groundingSupports, List<String> webSearchQueries, GroundingMetadata.SearchEntryPoint searchEntryPoint, GroundingMetadata.RetrievalMetadata retrievalMetadata, String googleMapsWidgetContextToken) Creates an instance of aGroundingMetadatarecord class.- Parameters:
groundingChunks- the value for thegroundingChunksrecord componentgroundingSupports- the value for thegroundingSupportsrecord componentwebSearchQueries- the value for thewebSearchQueriesrecord componentsearchEntryPoint- the value for thesearchEntryPointrecord componentretrievalMetadata- the value for theretrievalMetadatarecord componentgoogleMapsWidgetContextToken- the value for thegoogleMapsWidgetContextTokenrecord component
-
-
Method Details
-
builder
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
groundingChunks
Returns the value of thegroundingChunksrecord component.- Returns:
- the value of the
groundingChunksrecord component
-
groundingSupports
Returns the value of thegroundingSupportsrecord component.- Returns:
- the value of the
groundingSupportsrecord component
-
webSearchQueries
-
searchEntryPoint
Returns the value of thesearchEntryPointrecord component.- Returns:
- the value of the
searchEntryPointrecord component
-
retrievalMetadata
Returns the value of theretrievalMetadatarecord component.- Returns:
- the value of the
retrievalMetadatarecord component
-
googleMapsWidgetContextToken
Returns the value of thegoogleMapsWidgetContextTokenrecord component.- Returns:
- the value of the
googleMapsWidgetContextTokenrecord component
-