Package io.jmix.dynmodelai.draft
Record Class ModelDraft
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.draft.ModelDraft
public record ModelDraft(UUID conversationId, UUID runId, String actor, @Nullable UUID baselineSettingsId, String baselineContent, String candidateYaml, AgentPlan plan, List<String> validationEntityNames)
extends Record
Current immutable, in-memory Draft of one Conversation.
A fully verified run creates a new Draft atomically and replaces the previous Draft of the
Conversation. Unsuccessful work never changes it. The host transfers its YAML to the shared editor;
the agent never publishes it. The Draft is identified by its conversationId and the
runId that produced it; actor is the username of that run. plan lists only
the steps of that run; validationEntityNames also includes editor changes outside that plan.
Connects the Engine's approved plan with the exact YAML produced by Dynamic Model
Tools without creating a second persistence or publication mechanism.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionactor()Returns the value of theactorrecord component.Returns the value of thebaselineContentrecord component.@Nullable UUIDReturns the value of thebaselineSettingsIdrecord component.Returns the value of thecandidateYamlrecord component.Returns the value of theconversationIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.plan()Returns the value of theplanrecord component.runId()Returns the value of therunIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidationEntityNamesrecord component.
-
Constructor Details
-
ModelDraft
public ModelDraft(UUID conversationId, UUID runId, String actor, @Nullable UUID baselineSettingsId, String baselineContent, String candidateYaml, AgentPlan plan, List<String> validationEntityNames) Creates an instance of aModelDraftrecord class.- Parameters:
conversationId- the value for theconversationIdrecord componentrunId- the value for therunIdrecord componentactor- the value for theactorrecord componentbaselineSettingsId- the value for thebaselineSettingsIdrecord componentbaselineContent- the value for thebaselineContentrecord componentcandidateYaml- the value for thecandidateYamlrecord componentplan- the value for theplanrecord componentvalidationEntityNames- the value for thevalidationEntityNamesrecord 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
-
actor
Returns the value of theactorrecord component.- Returns:
- the value of the
actorrecord component
-
baselineSettingsId
Returns the value of thebaselineSettingsIdrecord component.- Returns:
- the value of the
baselineSettingsIdrecord component
-
baselineContent
Returns the value of thebaselineContentrecord component.- Returns:
- the value of the
baselineContentrecord component
-
candidateYaml
Returns the value of thecandidateYamlrecord component.- Returns:
- the value of the
candidateYamlrecord component
-
plan
Returns the value of theplanrecord component.- Returns:
- the value of the
planrecord component
-
validationEntityNames
Returns the value of thevalidationEntityNamesrecord component.- Returns:
- the value of the
validationEntityNamesrecord component
-