Package io.jmix.dynmodelai.repository
Record Class HistoryMessage
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.repository.HistoryMessage
public record HistoryMessage(UUID id, UUID runId, OffsetDateTime createdDate, AgentMessageRole role, String content, @Nullable RunOutcome outcome)
extends Record
Immutable message text and its stable position in the original dialogue.
-
Constructor Summary
ConstructorsConstructorDescriptionHistoryMessage(UUID id, UUID runId, OffsetDateTime createdDate, AgentMessageRole role, String content, @Nullable RunOutcome outcome) Creates an instance of aHistoryMessagerecord class. -
Method Summary
Modifier and TypeMethodDescriptioncontent()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.id()Returns the value of theidrecord component.@Nullable RunOutcomeoutcome()Returns the value of theoutcomerecord component.role()Returns the value of therolerecord component.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
HistoryMessage
public HistoryMessage(UUID id, UUID runId, OffsetDateTime createdDate, AgentMessageRole role, String content, @Nullable RunOutcome outcome) Creates an instance of aHistoryMessagerecord class.- Parameters:
id- the value for theidrecord componentrunId- the value for therunIdrecord componentcreatedDate- the value for thecreatedDaterecord componentrole- the value for therolerecord componentcontent- the value for thecontentrecord componentoutcome- the value for theoutcomerecord 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). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
createdDate
Returns the value of thecreatedDaterecord component.- Returns:
- the value of the
createdDaterecord 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
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-