Package com.tnsai.server.ws
Record Class WsProtocol.ServerEvent.KbListResult
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ServerEvent.KbListResult
- All Implemented Interfaces:
WsProtocol.ServerEvent
- Enclosing interface:
WsProtocol.ServerEvent
public static record WsProtocol.ServerEvent.KbListResult(int v, String type, String sessionId, List<WsProtocol.KbDocInfo> documents, int totalCount)
extends Record
implements 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
ConstructorsConstructorDescriptionKbListResult(int v, String type, String sessionId, List<WsProtocol.KbDocInfo> documents, int totalCount) Creates an instance of aKbListResultrecord class.KbListResult(String sessionId, List<WsProtocol.KbDocInfo> documents, int totalCount) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentsrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.intReturns the value of thetotalCountrecord component.type()Returns the value of thetyperecord component.intv()Returns the value of thevrecord component.
-
Constructor Details
-
KbListResult
-
KbListResult
public KbListResult(int v, String type, String sessionId, List<WsProtocol.KbDocInfo> documents, int totalCount) Creates an instance of aKbListResultrecord class.- Parameters:
v- the value for thevrecord componenttype- the value for thetyperecord componentsessionId- the value for thesessionIdrecord componentdocuments- the value for thedocumentsrecord componenttotalCount- the value for thetotalCountrecord 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
-
documents
Returns the value of thedocumentsrecord component.- Returns:
- the value of the
documentsrecord component
-
totalCount
public int totalCount()Returns the value of thetotalCountrecord component.- Returns:
- the value of the
totalCountrecord component
-