Package io.jmix.dynmodelai.agent
Record Class AgentRunInput
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.agent.AgentRunInput
public record AgentRunInput(UUID conversationId, UUID runId, String userText, String actor, PlanApprovalMode planApprovalMode, Locale locale, @Nullable AgentPlan planToRevise, @Nullable EditorModelSnapshot editorSnapshot)
extends Record
Immutable input captured for one agent run.
-
Constructor Summary
ConstructorsConstructorDescriptionAgentRunInput(UUID conversationId, UUID runId, String userText, String actor, PlanApprovalMode planApprovalMode, Locale locale) AgentRunInput(UUID conversationId, UUID runId, String userText, String actor, PlanApprovalMode planApprovalMode, Locale locale, @Nullable AgentPlan planToRevise, @Nullable EditorModelSnapshot editorSnapshot) Creates an instance of aAgentRunInputrecord class. -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.Returns the value of theconversationIdrecord component.@Nullable EditorModelSnapshotReturns the value of theeditorSnapshotrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.locale()Returns the value of thelocalerecord component.Returns the value of theplanApprovalModerecord component.@Nullable AgentPlanReturns the value of theplanToReviserecord component.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.userText()Returns the value of theuserTextrecord component.
-
Constructor Details
-
AgentRunInput
-
AgentRunInput
public AgentRunInput(UUID conversationId, UUID runId, String userText, String actor, PlanApprovalMode planApprovalMode, Locale locale, @Nullable AgentPlan planToRevise, @Nullable EditorModelSnapshot editorSnapshot) Creates an instance of aAgentRunInputrecord class.- Parameters:
conversationId- the value for theconversationIdrecord componentrunId- the value for therunIdrecord componentuserText- the value for theuserTextrecord componentactor- the value for theactorrecord componentplanApprovalMode- the value for theplanApprovalModerecord componentlocale- the value for thelocalerecord componentplanToRevise- the value for theplanToReviserecord componenteditorSnapshot- the value for theeditorSnapshotrecord 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). -
conversationId
Returns the value of theconversationIdrecord component.- Returns:
- the value of the
conversationIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
userText
Returns the value of theuserTextrecord component.- Returns:
- the value of the
userTextrecord component
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
planApprovalMode
Returns the value of theplanApprovalModerecord component.- Returns:
- the value of the
planApprovalModerecord component
-
locale
Returns the value of thelocalerecord component.- Returns:
- the value of the
localerecord component
-
planToRevise
Returns the value of theplanToReviserecord component.- Returns:
- the value of the
planToReviserecord component
-
editorSnapshot
Returns the value of theeditorSnapshotrecord component.- Returns:
- the value of the
editorSnapshotrecord component
-