Package io.jmix.dynmodelai.session
Record Class ConversationRun
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.session.ConversationRun
public record ConversationRun(AgentRunInput input, @Nullable UUID baselineSettingsId, AgentRunState state, @Nullable ValidatedPlan validatedPlan)
extends Record
Immutable lifecycle snapshot of the Run owned by a Conversation session.
-
Constructor Summary
ConstructorsConstructorDescriptionConversationRun(AgentRunInput input, @Nullable UUID baselineSettingsId, AgentRunState state, @Nullable ValidatedPlan validatedPlan) Creates an instance of aConversationRunrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable UUIDReturns the value of thebaselineSettingsIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.transition(AgentRunTransition.Condition condition) validated(ValidatedPlan plan) @Nullable ValidatedPlanReturns the value of thevalidatedPlanrecord component.
-
Constructor Details
-
ConversationRun
public ConversationRun(AgentRunInput input, @Nullable UUID baselineSettingsId, AgentRunState state, @Nullable ValidatedPlan validatedPlan) Creates an instance of aConversationRunrecord class.- Parameters:
input- the value for theinputrecord componentbaselineSettingsId- the value for thebaselineSettingsIdrecord componentstate- the value for thestaterecord componentvalidatedPlan- the value for thevalidatedPlanrecord component
-
-
Method Details
-
transition
-
validated
-
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). -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
baselineSettingsId
Returns the value of thebaselineSettingsIdrecord component.- Returns:
- the value of the
baselineSettingsIdrecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
validatedPlan
Returns the value of thevalidatedPlanrecord component.- Returns:
- the value of the
validatedPlanrecord component
-