Record Class AgentDescriptor
java.lang.Object
java.lang.Record
io.agentscope.spring.boot.admin.registry.AgentDescriptor
public record AgentDescriptor(String agentId, String name, String description, String type, String modelName, String sessionId, Integer maxIters)
extends Record
Lightweight projection of an
Agent for inventory views.
Holds only the data safe to serialize over an admin API — no model API keys, no in-memory conversation buffers.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionagentId()Returns the value of theagentIdrecord component.Returns the value of thedescriptionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.maxIters()Returns the value of themaxItersrecord component.Returns the value of themodelNamerecord component.name()Returns the value of thenamerecord component.static AgentDescriptorof(io.agentscope.core.agent.Agent agent) Returns the value of thesessionIdrecord component.final StringtoString()Returns a string representation of this record class.type()Returns the value of thetyperecord component.
-
Constructor Details
-
AgentDescriptor
public AgentDescriptor(String agentId, String name, String description, String type, String modelName, String sessionId, Integer maxIters) Creates an instance of aAgentDescriptorrecord class.- Parameters:
agentId- the value for theagentIdrecord componentname- the value for thenamerecord componentdescription- the value for thedescriptionrecord componenttype- the value for thetyperecord componentmodelName- the value for themodelNamerecord componentsessionId- the value for thesessionIdrecord componentmaxIters- the value for themaxItersrecord component
-
-
Method Details
-
of
-
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). -
agentId
Returns the value of theagentIdrecord component.- Returns:
- the value of the
agentIdrecord component
-
name
Returns the value of thenamerecord component.- Returns:
- the value of the
namerecord component
-
description
Returns the value of thedescriptionrecord component.- Returns:
- the value of the
descriptionrecord component
-
type
Returns the value of thetyperecord component.- Returns:
- the value of the
typerecord component
-
modelName
Returns the value of themodelNamerecord component.- Returns:
- the value of the
modelNamerecord component
-
sessionId
Returns the value of thesessionIdrecord component.- Returns:
- the value of the
sessionIdrecord component
-
maxIters
Returns the value of themaxItersrecord component.- Returns:
- the value of the
maxItersrecord component
-