Record Class Citations
java.lang.Object
java.lang.Record
com.github.copilot.generated.Citations
@Generated("copilot-sdk-codegen")
public record Citations(List<CitationSource> sources, List<CitationSpan> spans)
extends Record
Provider-agnostic citations linking spans of the assistant's response to their supporting sources.
- Since:
- 1.0.0
-
Constructor Summary
ConstructorsConstructorDescriptionCitations(List<CitationSource> sources, List<CitationSpan> spans) Creates an instance of aCitationsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.sources()Returns the value of thesourcesrecord component.spans()Returns the value of thespansrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Citations
Creates an instance of aCitationsrecord class.- Parameters:
sources- the value for thesourcesrecord componentspans- the value for thespansrecord 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). -
sources
Returns the value of thesourcesrecord component.- Returns:
- the value of the
sourcesrecord component
-
spans
Returns the value of thespansrecord component.- Returns:
- the value of the
spansrecord component
-