Package com.tnsai.server.ws
Record Class WsProtocol.ClientEvent.KbRemove
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ClientEvent.KbRemove
- All Implemented Interfaces:
WsProtocol.ClientEvent
- Enclosing interface:
WsProtocol.ClientEvent
public static record WsProtocol.ClientEvent.KbRemove(int v, String sessionId, String documentId)
extends Record
implements WsProtocol.ClientEvent
-
Nested Class Summary
Nested classes/interfaces inherited from interface com.tnsai.server.ws.WsProtocol.ClientEvent
WsProtocol.ClientEvent.AgentAdd, WsProtocol.ClientEvent.AgentRemove, WsProtocol.ClientEvent.Cancel, WsProtocol.ClientEvent.Chat, WsProtocol.ClientEvent.KbAdd, WsProtocol.ClientEvent.KbList, WsProtocol.ClientEvent.KbRemove, WsProtocol.ClientEvent.KbSearch, WsProtocol.ClientEvent.McpResult, WsProtocol.ClientEvent.McpTools, WsProtocol.ClientEvent.SetAutonomy, WsProtocol.ClientEvent.ToolApprove -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thedocumentIdrecord 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.intv()Returns the value of thevrecord component.
-
Constructor Details
-
KbRemove
Creates an instance of aKbRemoverecord class.- Parameters:
v- the value for thevrecord componentsessionId- the value for thesessionIdrecord componentdocumentId- the value for thedocumentIdrecord 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.ClientEvent- Returns:
- the value of the
vrecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Specified by:
sessionIdin interfaceWsProtocol.ClientEvent- Returns:
- the value of the
sessionIdrecord component
-
documentId
Returns the value of thedocumentIdrecord component.- Returns:
- the value of the
documentIdrecord component
-