Record Class ReportDocument.Interaction

Object
Record
akka.javasdk.testkit.eval.ReportDocument.Interaction
Record Components:
input - the command sent to the agent; a String command as is, any other command as JSON
userMessage - the user message the agent sent the model; empty when the trace did not carry it
reply - the agent's reply as text; empty when the agent call failed
finalModelText - the text of the last model response, before the agent mapped it into the reply; empty when the trace did not carry it
latencyMs - from the start of the agent command to its end
inputTokens - summed over the model calls
outputTokens - summed over the model calls
blocked - whether a guardrail blocked the turn
toolCalls - in call order
modelCalls - in call order
guardrails - 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 Details

  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • input

      public String input()
      Returns the value of the input record component.
      Returns:
      the value of the input record component
    • userMessage

      public String userMessage()
      Returns the value of the userMessage record component.
      Returns:
      the value of the userMessage record component
    • reply

      public String reply()
      Returns the value of the reply record component.
      Returns:
      the value of the reply record component
    • finalModelText

      public String finalModelText()
      Returns the value of the finalModelText record component.
      Returns:
      the value of the finalModelText record component
    • latencyMs

      public long latencyMs()
      Returns the value of the latencyMs record component.
      Returns:
      the value of the latencyMs record component
    • inputTokens

      public long inputTokens()
      Returns the value of the inputTokens record component.
      Returns:
      the value of the inputTokens record component
    • outputTokens

      public long outputTokens()
      Returns the value of the outputTokens record component.
      Returns:
      the value of the outputTokens record component
    • blocked

      public boolean blocked()
      Returns the value of the blocked record component.
      Returns:
      the value of the blocked record component
    • toolCalls

      public List<ReportDocument.ToolCall> toolCalls()
      Returns the value of the toolCalls record component.
      Returns:
      the value of the toolCalls record component
    • modelCalls

      public List<ReportDocument.ModelCall> modelCalls()
      Returns the value of the modelCalls record component.
      Returns:
      the value of the modelCalls record component
    • guardrails

      public List<ReportDocument.Guardrail> guardrails()
      Returns the value of the guardrails record component.
      Returns:
      the value of the guardrails record component