Record Class SubagentDescriptor
java.lang.Object
java.lang.Record
io.agentscope.spring.boot.admin.subagent.SubagentDescriptor
- Record Components:
name- unique subagent name / agent-iddescription- used by the orchestrator agent to decide when to delegatesource- where this entry came from:spring-bean/declarationworkspaceMode-WorkspaceMode.ISOLATEDorWorkspaceMode.SHARED; may be nullworkspacePath- optional path to the on-disk subagent definitionmodel- optional override model idmaxIters- per-call iteration cap, 0 if unspecifiedtoolAllowlist- when non-empty, only inherited parent tools whose names are listed are visible to the subagent
public record SubagentDescriptor(String name, String description, String source, String workspaceMode, String workspacePath, String model, int maxIters, List<String> toolAllowlist)
extends Record
Wire view of a registered subagent — flattens whichever projection (a
SubagentEntry
from a built agent, or a SubagentDeclaration loaded from a yaml/markdown spec) the
inventory adapter happens to hold.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.intmaxIters()Returns the value of themaxItersrecord component.model()Returns the value of themodelrecord component.name()Returns the value of thenamerecord component.static SubagentDescriptorof(io.agentscope.harness.agent.middleware.SubagentEntry e) static SubagentDescriptorof(io.agentscope.harness.agent.subagent.SubagentDeclaration d) source()Returns the value of thesourcerecord component.Returns the value of thetoolAllowlistrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theworkspaceModerecord component.Returns the value of theworkspacePathrecord component.
-
Constructor Details
-
SubagentDescriptor
public SubagentDescriptor(String name, String description, String source, String workspaceMode, String workspacePath, String model, int maxIters, List<String> toolAllowlist) Creates an instance of aSubagentDescriptorrecord class.- Parameters:
name- the value for thenamerecord componentdescription- the value for thedescriptionrecord componentsource- the value for thesourcerecord componentworkspaceMode- the value for theworkspaceModerecord componentworkspacePath- the value for theworkspacePathrecord componentmodel- the value for themodelrecord componentmaxIters- the value for themaxItersrecord componenttoolAllowlist- the value for thetoolAllowlistrecord component
-
-
Method Details
-
of
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
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
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-
workspaceMode
Returns the value of theworkspaceModerecord component.- Returns:
- the value of the
workspaceModerecord component
-
workspacePath
Returns the value of theworkspacePathrecord component.- Returns:
- the value of the
workspacePathrecord component
-
model
Returns the value of themodelrecord component.- Returns:
- the value of the
modelrecord component
-
maxIters
public int maxIters()Returns the value of themaxItersrecord component.- Returns:
- the value of the
maxItersrecord component
-
toolAllowlist
Returns the value of thetoolAllowlistrecord component.- Returns:
- the value of the
toolAllowlistrecord component
-