Package io.jmix.dynmodelai.model
Record Class AgentGraphState
java.lang.Object
java.lang.Record
io.jmix.dynmodelai.model.AgentGraphState
public record AgentGraphState(String node, AgentGraphState.Status status, int attempt, List<String> facts, Map<String,Boolean> conditions)
extends Record
Observed graph position, sufficient for a historical diagram, not a process checkpoint.
Facts are type names, not serialized Embabel objects. Conditions are decisions already evaluated
by the graph; reading history must never evaluate them again.
-
Nested Class Summary
Nested Classes -
Constructor Summary
ConstructorsConstructorDescriptionAgentGraphState(String node, AgentGraphState.Status status, int attempt, List<String> facts, Map<String, Boolean> conditions) Creates an instance of aAgentGraphStaterecord class. -
Method Summary
Modifier and TypeMethodDescriptionintattempt()Returns the value of theattemptrecord component.Returns the value of theconditionsrecord component.final booleanIndicates whether some other object is "equal to" this one.facts()Returns the value of thefactsrecord component.final inthashCode()Returns a hash code value for this object.node()Returns the value of thenoderecord component.status()Returns the value of thestatusrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentGraphState
public AgentGraphState(String node, AgentGraphState.Status status, int attempt, List<String> facts, Map<String, Boolean> conditions) Creates an instance of aAgentGraphStaterecord class.- Parameters:
node- the value for thenoderecord componentstatus- the value for thestatusrecord componentattempt- the value for theattemptrecord componentfacts- the value for thefactsrecord componentconditions- the value for theconditionsrecord 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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
node
Returns the value of thenoderecord component.- Returns:
- the value of the
noderecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord component
-
attempt
public int attempt()Returns the value of theattemptrecord component.- Returns:
- the value of the
attemptrecord component
-
facts
Returns the value of thefactsrecord component.- Returns:
- the value of the
factsrecord component
-
conditions
Returns the value of theconditionsrecord component.- Returns:
- the value of the
conditionsrecord component
-