Package com.tnsai.server.ws
Record Class WsProtocol.AgentInfo
java.lang.Object
java.lang.Record
com.tnsai.server.ws.WsProtocol.AgentInfo
- Enclosing class:
WsProtocol
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal 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.id()Returns the value of theidrecord component.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.status()Returns the value of thestatusrecord component.tools()Returns the value of thetoolsrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
AgentInfo
public AgentInfo(String id, String name, String role, String status, String provider, String model, String goal, List<String> tools, List<String> roles) Creates an instance of aAgentInforecord class.- Parameters:
id- the value for theidrecord componentname- the value for thenamerecord componentrole- the value for therolerecord componentstatus- the value for thestatusrecord componentprovider- the value for theproviderrecord componentmodel- the value for themodelrecord componentgoal- the value for thegoalrecord componenttools- the value for thetoolsrecord 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. All components in this record class are compared withObjects::equals(Object,Object). -
id
Returns the value of theidrecord component.- Returns:
- the value of the
idrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
role
Returns the value of therolerecord component.- Returns:
- the value of the
rolerecord component
-
status
Returns the value of thestatusrecord component.- Returns:
- the value of the
statusrecord 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
-
tools
Returns the value of thetoolsrecord component.- Returns:
- the value of the
toolsrecord component
-
roles
Returns the value of therolesrecord component.- Returns:
- the value of the
rolesrecord component
-