Package com.tnsai.server.ws
Record Class WsProtocol.ClientEvent.AgentAdd
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.ClientEvent.AgentAdd
- 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 TypeMethodDescriptiondomain()Returns the value of thedomainrecord component.final booleanIndicates whether some other object is "equal to" this one.goal()Returns the value of thegoalrecord component.final inthashCode()Returns a hash code value for this object.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.provider()Returns the value of theproviderrecord component.role()Returns the value of therolerecord component.roles()Returns the value of therolesrecord component.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
-
AgentAdd
public AgentAdd(int v, String sessionId, String role, String provider, String model, String goal, String domain, String name, List<WsProtocol.RoleDef> roles) Creates an instance of aAgentAddrecord class.- Parameters:
v- the value for thevrecord componentsessionId- the value for thesessionIdrecord componentrole- the value for therolerecord componentprovider- the value for theproviderrecord componentmodel- the value for themodelrecord componentgoal- the value for thegoalrecord componentdomain- the value for thedomainrecord componentname- the value for thenamerecord componentroles- the value for therolesrecord 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
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
provider
Returns the value of theproviderrecord component.- Returns:
- the value of the
providerrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
goal
Returns the value of thegoalrecord component.- Returns:
- the value of the
goalrecord component
-
domain
Returns the value of thedomainrecord component.- Returns:
- the value of the
domainrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-