Package akka.javasdk.testkit.eval
Record Class RecordedCall
public record RecordedCall(String tool, Map<String,Object> arguments, String resultJson)
extends Record
One tool call as recorded in production: the tool, the arguments the agent passed, and the result
as recorded JSON. An
EvalCase derived from a recording carries its calls, and ExperimentRunner loads each result into the stub bound to the tool before the turn.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionThe recorded value of one argument, or null when the call did not carry it.Returns the value of theargumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.<T> TThe recorded result, read into the given type.Returns the value of theresultJsonrecord component.tool()Returns the value of thetoolrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RecordedCall
Creates an instance of aRecordedCallrecord class.- Parameters:
tool- the value for thetoolrecord componentarguments- the value for theargumentsrecord componentresultJson- the value for theresultJsonrecord component
-
-
Method Details
-
argument
The recorded value of one argument, or null when the call did not carry it. -
resultAs
The recorded result, read into the given type. -
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). -
tool
Returns the value of thetoolrecord component.- Returns:
- the value of the
toolrecord component
-
arguments
Returns the value of theargumentsrecord component.- Returns:
- the value of the
argumentsrecord component
-
resultJson
Returns the value of theresultJsonrecord component.- Returns:
- the value of the
resultJsonrecord component
-