Package io.jmix.dynmodelai.model
Record Class SubmitMessageRequest
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.SubmitMessageRequest
public record SubmitMessageRequest(@Nullable UUID conversationId, String text, PlanApprovalMode planApprovalMode, @Nullable EditorModelSnapshot editorSnapshot)
extends Record
Works on a complete current editor snapshot, or on the published model when no snapshot is given.
-
Constructor Summary
ConstructorsConstructorDescriptionSubmitMessageRequest(@Nullable UUID conversationId, String text, PlanApprovalMode planApprovalMode) SubmitMessageRequest(@Nullable UUID conversationId, String text, PlanApprovalMode planApprovalMode, @Nullable EditorModelSnapshot editorSnapshot) Creates an instance of aSubmitMessageRequestrecord class. -
Method Summary
Modifier and TypeMethodDescription@Nullable UUIDReturns 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.text()Returns the value of thetextrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
SubmitMessageRequest
public SubmitMessageRequest(@Nullable UUID conversationId, String text, PlanApprovalMode planApprovalMode) -
SubmitMessageRequest
public SubmitMessageRequest(@Nullable UUID conversationId, String text, PlanApprovalMode planApprovalMode, @Nullable EditorModelSnapshot editorSnapshot) Creates an instance of aSubmitMessageRequestrecord class.- Parameters:
conversationId- the value for theconversationIdrecord componenttext- the value for thetextrecord 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
-
text
Returns the value of thetextrecord component.- Returns:
- the value of the
textrecord 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
-