Record Class GroundingMetadata.GroundingSupport
java.lang.Object
java.lang.Record
dev.langchain4j.model.googleai.GroundingMetadata.GroundingSupport
- Enclosing class:
GroundingMetadata
-
Constructor Summary
ConstructorsConstructorDescriptionGroundingSupport(List<Integer> groundingChunkIndices, List<Double> confidenceScores, GroundingMetadata.Segment segment) Creates an instance of aGroundingSupportrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theconfidenceScoresrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thegroundingChunkIndicesrecord component.final inthashCode()Returns a hash code value for this object.segment()Returns the value of thesegmentrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
GroundingSupport
public GroundingSupport(List<Integer> groundingChunkIndices, List<Double> confidenceScores, GroundingMetadata.Segment segment) Creates an instance of aGroundingSupportrecord class.- Parameters:
groundingChunkIndices- the value for thegroundingChunkIndicesrecord componentconfidenceScores- the value for theconfidenceScoresrecord componentsegment- the value for thesegmentrecord component
-
-
Method Details
-
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). -
groundingChunkIndices
-
confidenceScores
-
segment
Returns the value of thesegmentrecord component.- Returns:
- the value of the
segmentrecord component
-