Package com.tnsai.server.ws
Record Class WsProtocol.ServerEvent.AuditEntry
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ServerEvent.AuditEntry
- All Implemented Interfaces:
WsProtocol.ServerEvent
- Enclosing interface:
WsProtocol.ServerEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.server.ws.WsProtocol.ServerEvent
WsProtocol.ServerEvent.AgentState, WsProtocol.ServerEvent.AuditEntry, WsProtocol.ServerEvent.AutonomyChanged, WsProtocol.ServerEvent.Done, WsProtocol.ServerEvent.Error, WsProtocol.ServerEvent.IndexDone, WsProtocol.ServerEvent.IndexProgress, WsProtocol.ServerEvent.IndexStart, WsProtocol.ServerEvent.KbAdded, WsProtocol.ServerEvent.KbListResult, WsProtocol.ServerEvent.KbRemoved, WsProtocol.ServerEvent.KbSearchResult, WsProtocol.ServerEvent.McpCall, WsProtocol.ServerEvent.TeamUpdate, WsProtocol.ServerEvent.Token, WsProtocol.ServerEvent.ToolApproveRequest, WsProtocol.ServerEvent.ToolResult, WsProtocol.ServerEvent.ToolStart -
Constructor Summary
ConstructorsConstructorDescriptionAuditEntry(int v, String type, String sessionId, String toolCallId, String agentId, String tool, String risk, String decision, long timestamp, String summary) Creates an instance of aAuditEntryrecord class.AuditEntry(String sessionId, String toolCallId, String agentId, String tool, String risk, String decision, long timestamp, String summary) -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.decision()Returns the value of thedecisionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.risk()Returns the value of theriskrecord component.Returns the value of thesessionIdrecord component.summary()Returns the value of thesummaryrecord component.longReturns the value of thetimestamprecord component.tool()Returns the value of thetoolrecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.intv()Returns the value of thevrecord component.
-
Constructor Details
-
AuditEntry
-
AuditEntry
public AuditEntry(int v, String type, String sessionId, String toolCallId, String agentId, String tool, String risk, String decision, long timestamp, String summary) Creates an instance of aAuditEntryrecord class.- Parameters:
v- the value for thevrecord componenttype- the value for thetyperecord componentsessionId- the value for thesessionIdrecord componenttoolCallId- the value for thetoolCallIdrecord componentagentId- the value for theagentIdrecord componenttool- the value for thetoolrecord componentrisk- the value for theriskrecord componentdecision- the value for thedecisionrecord componenttimestamp- the value for thetimestamprecord componentsummary- the value for thesummaryrecord 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 '=='. -
v
public int v()Returns the value of thevrecord component.- Specified by:
vin interfaceWsProtocol.ServerEvent- Returns:
- the value of the
vrecord component
-
type
Returns the value of thetyperecord component.- Specified by:
typein interfaceWsProtocol.ServerEvent- Returns:
- the value of the
typerecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Specified by:
sessionIdin interfaceWsProtocol.ServerEvent- Returns:
- the value of the
sessionIdrecord component
-
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
tool
Returns the value of thetoolrecord component.- Returns:
- the value of the
toolrecord component
-
risk
Returns the value of theriskrecord component.- Returns:
- the value of the
riskrecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-
timestamp
public long timestamp()Returns the value of thetimestamprecord component.- Returns:
- the value of the
timestamprecord component
-
summary
Returns the value of thesummaryrecord component.- Returns:
- the value of the
summaryrecord component
-