Record Class AssistantRequest
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.rest.AssistantRequest
- Record Components:
question- the user's question (required)conversationKey- key of an existing conversation to continue;nullstarts a new onefunction- which assistant function to use (e.g."MANUAL"); the client always sends its active function; ignored when continuing an existing conversation (the function is taken from the existing conversation)language- the answer language (ISO code); the client always sends it
-
Constructor Summary
ConstructorsConstructorDescriptionAssistantRequest(String question, @Nullable String conversationKey, String function, String language) Creates an instance of aAssistantRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable StringReturns the value of theconversationKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.function()Returns the value of thefunctionrecord component.final inthashCode()Returns a hash code value for this object.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
-
AssistantRequest
public AssistantRequest(String question, @Nullable String conversationKey, String function, String language) Creates an instance of aAssistantRequestrecord class.- Parameters:
question- the value for thequestionrecord componentconversationKey- the value for theconversationKeyrecord componentfunction- the value for thefunctionrecord componentlanguage- the value for thelanguagerecord 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). -
question
-
conversationKey
Returns the value of theconversationKeyrecord component.- Returns:
- the value of the
conversationKeyrecord component
-
function
-
language
-