java.lang.Object
java.lang.Record
com.agentforge4j.llm.fake.FakeInvocation
- Record Components:
workflowId- innermost active workflow id for this callrunId- run id (selects the per-run script and counters)stepId- step idagentId- agent id
public record FakeInvocation(String workflowId, String runId, String stepId, String agentId)
extends Record
Identity a
FakeLlmClient passes to a FakeResponseSource for one invocation. The source selects the
script by runId() and atomically advances the ordinal for the (runId, workflowId, stepId, agentId)
sequence — the client carries no ordinal and holds no per-run state.-
Constructor Summary
ConstructorsConstructorDescriptionFakeInvocation(String workflowId, String runId, String stepId, String agentId) Creates an instance of aFakeInvocationrecord 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
-
FakeInvocation
Creates an instance of aFakeInvocationrecord class.- Parameters:
workflowId- the value for theworkflowIdrecord componentrunId- the value for therunIdrecord 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). -
workflowId
Returns the value of theworkflowIdrecord component.- Returns:
- the value of the
workflowIdrecord component
-
runId
Returns the value of therunIdrecord component.- Returns:
- the value of the
runIdrecord 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
-