Package com.tnsai.server.ws
Record Class WsProtocol.ClientEvent.McpResult
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ClientEvent.McpResult
- All Implemented Interfaces:
WsProtocol.ClientEvent
- Enclosing interface:
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 TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.error()Returns the value of theerrorrecord component.final inthashCode()Returns a hash code value for this object.result()Returns the value of theresultrecord component.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
-
McpResult
Creates an instance of aMcpResultrecord class.- Parameters:
v- the value for thevrecord componentsessionId- the value for thesessionIdrecord componenttoolCallId- the value for thetoolCallIdrecord componentresult- the value for theresultrecord componenterror- the value for theerrorrecord 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
-
result
Returns the value of theresultrecord component.- Returns:
- the value of the
resultrecord component
-
error
Returns the value of theerrorrecord component.- Returns:
- the value of the
errorrecord component
-