Package com.tnsai.session.replay
Record Class SessionReplay.ReplayStats
java.lang.Object
java.lang.Record
com.tnsai.session.replay.SessionReplay.ReplayStats
- Enclosing class:
SessionReplay
public static record SessionReplay.ReplayStats(int totalSteps, int userMessages, int assistantMessages, int toolCalls, int uniqueTools, Duration duration)
extends Record
Statistics about a session replay.
-
Constructor Summary
ConstructorsConstructorDescriptionReplayStats(int totalSteps, int userMessages, int assistantMessages, int toolCalls, int uniqueTools, Duration duration) Creates an instance of aReplayStatsrecord class. -
Method Summary
Modifier and TypeMethodDescriptionintReturns the value of theassistantMessagesrecord component.duration()Returns the value of thedurationrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.intReturns the value of thetoolCallsrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalStepsrecord component.intReturns the value of theuniqueToolsrecord component.intReturns the value of theuserMessagesrecord component.
-
Constructor Details
-
ReplayStats
public ReplayStats(int totalSteps, int userMessages, int assistantMessages, int toolCalls, int uniqueTools, Duration duration) Creates an instance of aReplayStatsrecord class.- Parameters:
totalSteps- the value for thetotalStepsrecord componentuserMessages- the value for theuserMessagesrecord componentassistantMessages- the value for theassistantMessagesrecord componenttoolCalls- the value for thetoolCallsrecord componentuniqueTools- the value for theuniqueToolsrecord componentduration- the value for thedurationrecord 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 '=='. -
totalSteps
public int totalSteps()Returns the value of thetotalStepsrecord component.- Returns:
- the value of the
totalStepsrecord component
-
userMessages
public int userMessages()Returns the value of theuserMessagesrecord component.- Returns:
- the value of the
userMessagesrecord component
-
assistantMessages
public int assistantMessages()Returns the value of theassistantMessagesrecord component.- Returns:
- the value of the
assistantMessagesrecord component
-
toolCalls
public int toolCalls()Returns the value of thetoolCallsrecord component.- Returns:
- the value of the
toolCallsrecord component
-
uniqueTools
public int uniqueTools()Returns the value of theuniqueToolsrecord component.- Returns:
- the value of the
uniqueToolsrecord component
-
duration
Returns the value of thedurationrecord component.- Returns:
- the value of the
durationrecord component
-