Record Class ChatResponse
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.function.ChatResponse
- Record Components:
answer- the grounded, cited answer in the requested languagesources- distinct citations provided as context, ranked by relevance; the frontend decides how many to show (may be empty for functions that don't cite)
The result an
AssistantFunction returns for one turn.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChatResponse(String answer, List<ChatResponse.Source> sources) Creates an instance of aChatResponserecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord component.final 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.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
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). -
answer
-
sources
-