Package akka.javasdk.testkit.eval
Record Class ReportDocument.Interaction
- Record Components:
input- the command sent to the agent; a String command as is, any other command as JSONuserMessage- the user message the agent sent the model; empty when the trace did not carry itreply- the agent's reply as text; empty when the agent call failedfinalModelText- the text of the last model response, before the agent mapped it into the reply; empty when the trace did not carry itlatencyMs- from the start of the agent command to its endinputTokens- summed over the model callsoutputTokens- summed over the model callsblocked- whether a guardrail blocked the turntoolCalls- in call ordermodelCalls- in call orderguardrails- every guardrail evaluation, in order
- Enclosing class:
ReportDocument
public static record ReportDocument.Interaction(String input, String userMessage, String reply, String finalModelText, long latencyMs, long inputTokens, long outputTokens, boolean blocked, List<ReportDocument.ToolCall> toolCalls, List<ReportDocument.ModelCall> modelCalls, List<ReportDocument.Guardrail> guardrails)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionInteraction(String input, String userMessage, String reply, String finalModelText, long latencyMs, long inputTokens, long outputTokens, boolean blocked, List<ReportDocument.ToolCall> toolCalls, List<ReportDocument.ModelCall> modelCalls, List<ReportDocument.Guardrail> guardrails) Creates an instance of aInteractionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionbooleanblocked()Returns the value of theblockedrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of thefinalModelTextrecord component.Returns the value of theguardrailsrecord component.final inthashCode()Returns a hash code value for this object.input()Returns the value of theinputrecord component.longReturns the value of theinputTokensrecord component.longReturns the value of thelatencyMsrecord component.Returns the value of themodelCallsrecord component.longReturns the value of theoutputTokensrecord component.reply()Returns the value of thereplyrecord component.Returns the value of thetoolCallsrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuserMessagerecord component.
-
Constructor Details
-
Interaction
public Interaction(String input, String userMessage, String reply, String finalModelText, long latencyMs, long inputTokens, long outputTokens, boolean blocked, List<ReportDocument.ToolCall> toolCalls, List<ReportDocument.ModelCall> modelCalls, List<ReportDocument.Guardrail> guardrails) Creates an instance of aInteractionrecord class.- Parameters:
input- the value for theinputrecord componentuserMessage- the value for theuserMessagerecord componentreply- the value for thereplyrecord componentfinalModelText- the value for thefinalModelTextrecord componentlatencyMs- the value for thelatencyMsrecord componentinputTokens- the value for theinputTokensrecord componentoutputTokens- the value for theoutputTokensrecord componentblocked- the value for theblockedrecord componenttoolCalls- the value for thetoolCallsrecord componentmodelCalls- the value for themodelCallsrecord componentguardrails- the value for theguardrailsrecord 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 '=='. -
input
Returns the value of theinputrecord component.- Returns:
- the value of the
inputrecord component
-
userMessage
Returns the value of theuserMessagerecord component.- Returns:
- the value of the
userMessagerecord component
-
reply
Returns the value of thereplyrecord component.- Returns:
- the value of the
replyrecord component
-
finalModelText
Returns the value of thefinalModelTextrecord component.- Returns:
- the value of the
finalModelTextrecord component
-
latencyMs
public long latencyMs()Returns the value of thelatencyMsrecord component.- Returns:
- the value of the
latencyMsrecord component
-
inputTokens
public long inputTokens()Returns the value of theinputTokensrecord component.- Returns:
- the value of the
inputTokensrecord component
-
outputTokens
public long outputTokens()Returns the value of theoutputTokensrecord component.- Returns:
- the value of the
outputTokensrecord component
-
blocked
public boolean blocked()Returns the value of theblockedrecord component.- Returns:
- the value of the
blockedrecord component
-
toolCalls
Returns the value of thetoolCallsrecord component.- Returns:
- the value of the
toolCallsrecord component
-
modelCalls
Returns the value of themodelCallsrecord component.- Returns:
- the value of the
modelCallsrecord component
-
guardrails
Returns the value of theguardrailsrecord component.- Returns:
- the value of the
guardrailsrecord component
-