Package io.jmix.dynmodelai.model
Record Class ConversationMessage
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.ConversationMessage
public record ConversationMessage(@Nullable UUID runId, String role, String content, OffsetDateTime createdDate, String actor, @Nullable RunOutcome outcome, @Nullable DraftPresentation publication)
extends Record
Persisted, read-only message of a Conversation.
outcome is set on the assistant's
message that ended a run: the question it asked, the summary of a ready Draft, or the reason
it failed, timed out or was cancelled.-
Constructor Summary
ConstructorsConstructorDescriptionConversationMessage(@Nullable UUID runId, String role, String content, OffsetDateTime createdDate, String actor, @Nullable RunOutcome outcome, @Nullable DraftPresentation publication) Creates an instance of aConversationMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.content()Returns the value of thecontentrecord component.Returns the value of thecreatedDaterecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.@Nullable RunOutcomeoutcome()Returns the value of theoutcomerecord component.@Nullable DraftPresentationReturns the value of thepublicationrecord component.role()Returns the value of therolerecord component.@Nullable UUIDrunId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
ConversationMessage
public ConversationMessage(@Nullable UUID runId, String role, String content, OffsetDateTime createdDate, String actor, @Nullable RunOutcome outcome, @Nullable DraftPresentation publication) Creates an instance of aConversationMessagerecord class.- Parameters:
runId- the value for therunIdrecord componentrole- the value for therolerecord componentcontent- the value for thecontentrecord componentcreatedDate- the value for thecreatedDaterecord componentactor- the value for theactorrecord componentoutcome- the value for theoutcomerecord componentpublication- the value for thepublicationrecord component
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
content
Returns the value of thecontentrecord component.- Returns:
- the value of the
contentrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord component
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-
publication
Returns the value of thepublicationrecord component.- Returns:
- the value of the
publicationrecord component
-