Record Class AssistantConversationService.Message
java.lang.Object
java.lang.Record
ch.tocco.nice2.optional.aiassistant.impl.conversation.AssistantConversationService.Message
- Record Components:
role- who authored the messagecontent- the message textcreatedAt- when the message was storedsources- optional citations (only present on assistant messages; may be empty)
- Enclosing class:
AssistantConversationService
public static record AssistantConversationService.Message(Role role, String content, org.joda.time.DateTime createdAt, List<ChatResponse.Source> sources)
extends Record
A single message of a
AssistantConversationService.ConversationDetail.-
Constructor Summary
ConstructorsConstructorDescriptionMessage(Role role, String content, org.joda.time.DateTime createdAt, List<ChatResponse.Source> sources) Creates an instance of aMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()Returns the value of thecontentrecord component.org.joda.time.DateTimeReturns the value of thecreatedAtrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.role()Returns the value of therolerecord component.sources()Returns the value of thesourcesrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Message
public Message(Role role, String content, org.joda.time.DateTime createdAt, List<ChatResponse.Source> sources) Creates an instance of aMessagerecord class.
-
-
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). -
role
-
content
-
createdAt
-
sources
-