Package io.jmix.dynmodelai.model
Record Class AnswerHumanInputRequest
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.AnswerHumanInputRequest
public record AnswerHumanInputRequest(UUID conversationId, UUID runId, UUID requestId, String answer, PlanApprovalMode planApprovalMode, @Nullable EditorModelSnapshot editorSnapshot)
extends Record
Answers a pending question. Shared-editor clients supply a fresh snapshot, including manual edits
since the question; without one, the originating Run's model selection is retained.
-
Constructor Summary
ConstructorsConstructorDescriptionAnswerHumanInputRequest(UUID conversationId, UUID runId, UUID requestId, String answer, PlanApprovalMode planApprovalMode, @Nullable EditorModelSnapshot editorSnapshot) Creates an instance of aAnswerHumanInputRequestrecord class. -
Method Summary
Modifier and TypeMethodDescriptionanswer()Returns the value of theanswerrecord 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.Returns the value of theplanApprovalModerecord component.Returns the value of therequestIdrecord component.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AnswerHumanInputRequest
public AnswerHumanInputRequest(UUID conversationId, UUID runId, UUID requestId, String answer, PlanApprovalMode planApprovalMode, @Nullable EditorModelSnapshot editorSnapshot) Creates an instance of aAnswerHumanInputRequestrecord class.- Parameters:
conversationId- the value for theconversationIdrecord componentrunId- the value for therunIdrecord componentrequestId- the value for therequestIdrecord componentanswer- the value for theanswerrecord componentplanApprovalMode- the value for theplanApprovalModerecord 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
-
requestId
Returns the value of therequestIdrecord component.- Returns:
- the value of the
requestIdrecord component
-
answer
Returns the value of theanswerrecord component.- Returns:
- the value of the
answerrecord component
-
planApprovalMode
Returns the value of theplanApprovalModerecord component.- Returns:
- the value of the
planApprovalModerecord component
-
editorSnapshot
Returns the value of theeditorSnapshotrecord component.- Returns:
- the value of the
editorSnapshotrecord component
-