Package com.tnsai.server.ws
Record Class WsProtocol.ClientEvent.ToolApprove
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ClientEvent.ToolApprove
- All Implemented Interfaces:
WsProtocol.ClientEvent
- Enclosing interface:
WsProtocol.ClientEvent
public static record WsProtocol.ClientEvent.ToolApprove(int v, String sessionId, String toolCallId, String decision)
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
ConstructorsConstructorDescriptionToolApprove(int v, String sessionId, String toolCallId, String decision) Creates an instance of aToolApproverecord class. -
Method Summary
Modifier and TypeMethodDescriptiondecision()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.Returns the value of thesessionIdrecord component.Returns the value of thetoolCallIdrecord component.final StringtoString()Returns a string representation of this record class.intv()Returns the value of thevrecord component.
-
Constructor Details
-
ToolApprove
Creates an instance of aToolApproverecord class.- Parameters:
v- the value for thevrecord componentsessionId- the value for thesessionIdrecord componenttoolCallId- the value for thetoolCallIdrecord componentdecision- the value for thedecisionrecord 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
-
toolCallId
Returns the value of thetoolCallIdrecord component.- Returns:
- the value of the
toolCallIdrecord component
-
decision
Returns the value of thedecisionrecord component.- Returns:
- the value of the
decisionrecord component
-