Record Class ChatResponse.Source
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.function.ChatResponse.Source
- Record Components:
title- the page title (raw; the frontend adds the suffix when disambiguating)url- deep link to the pagerank- 1-based relevance rank (1 = most relevant); the frontend shows the best NsourceType-"MANUAL"or"SYSDOC"(machine-readable)sourceLabel- localized display term for the source ("Handbuch" / "Systembeschreibung"), which the frontend appends when two shown sources share a title
- Enclosing class:
ChatResponse
-
Constructor Summary
Constructors -
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.intrank()Returns the value of therankrecord component.Returns the value of thesourceLabelrecord component.Returns the value of thesourceTyperecord component.title()Returns the value of thetitlerecord component.final StringtoString()Returns a string representation of this record class.url()Returns the value of theurlrecord component.
-
Constructor Details
-
Source
Creates an instance of aSourcerecord class.- Parameters:
title- the value for thetitlerecord componenturl- the value for theurlrecord componentrank- the value for therankrecord componentsourceType- the value for thesourceTyperecord componentsourceLabel- the value for thesourceLabelrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
title
-
url
-
rank
-
sourceType
Returns the value of thesourceTyperecord component.- Returns:
- the value of the
sourceTyperecord component
-
sourceLabel
Returns the value of thesourceLabelrecord component.- Returns:
- the value of the
sourceLabelrecord component
-