Package com.tnsai.server.ws
Record Class WsProtocol.ClientEvent.AgentRemove
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ClientEvent.AgentRemove
- All Implemented Interfaces:
WsProtocol.ClientEvent
- Enclosing interface:
WsProtocol.ClientEvent
public static record WsProtocol.ClientEvent.AgentRemove(int v, String sessionId, String agentId)
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
ConstructorsConstructorDescriptionAgentRemove(int v, String sessionId, String agentId) Creates an instance of aAgentRemoverecord class. -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord 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
-
AgentRemove
Creates an instance of aAgentRemoverecord class.- Parameters:
v- the value for thevrecord componentsessionId- the value for thesessionIdrecord componentagentId- the value for theagentIdrecord 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
-
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-