Record Class ChatRequest
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.function.ChatRequest
- Record Components:
question- the user's question (required)language- the answer language (ISO code), already resolved to a concrete valuehistory- prior conversation turns for follow-up questions (may be empty)
public record ChatRequest(String question, String language, List<ChatRequest.HistoryMessage> history)
extends Record
Internal request passed to an
AssistantFunction: the current question, the resolved
answer language, and the prior conversation turns.-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionChatRequest(String question, String language, List<ChatRequest.HistoryMessage> history) Creates an instance of aChatRequestrecord 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.history()Returns the value of thehistoryrecord component.language()Returns the value of thelanguagerecord component.question()Returns the value of thequestionrecord 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). -
question
-
language
-
history
-