java.lang.Object
java.lang.Record
com.agentforge4j.llm.fake.OrdinalKey
- Record Components:
runId- run idworkflowId- innermost active workflow idstepId- step idagentId- agent id
public record OrdinalKey(String runId, String workflowId, String stepId, String agentId)
extends Record
Counter key for the per-sequence ordinal, held inside the per-run store (never on the client). A separate ordinal
sequence is maintained for each distinct
(runId, workflowId, stepId, agentId) tuple, so two agents in one
step, or the same agent across loop re-entries, advance independently.-
Constructor Summary
ConstructorsConstructorDescriptionOrdinalKey(String runId, String workflowId, String stepId, String agentId) Creates an instance of aOrdinalKeyrecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.runId()Returns the value of therunIdrecord component.stepId()Returns the value of thestepIdrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkflowIdrecord component.
-
Constructor Details
-
OrdinalKey
Creates an instance of aOrdinalKeyrecord class.- Parameters:
runId- the value for therunIdrecord componentworkflowId- the value for theworkflowIdrecord componentstepId- the value for thestepIdrecord componentagentId- the value for theagentIdrecord 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). -
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord component
-
workflowId
Returns the value of theworkflowIdrecord component.- Returns:
- the value of the
workflowIdrecord component
-
stepId
Returns the value of thestepIdrecord component.- Returns:
- the value of the
stepIdrecord component
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-