SubagentDescriptor
public record SubagentDescriptor( String name, String description, String source, String workspaceMode, String workspacePath, String model, int maxIters, List<String> toolAllowlist)
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81承载子智能体描述符数据的记录类型。位于 io.agentscope.spring.boot.admin.subagent 包。核心成员包括 name、description、source、workspaceMode、workspacePath、model。
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.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
name | String | 执行名称相关操作。 unique subagent name / agent-id |
description | String | 执行 `description` 方法。 used by the orchestrator agent to decide when to delegate |
source | String | 执行来源相关操作。 where this entry came from: `spring-bean` / `declaration` |
workspaceMode | String | 执行工作区模式相关操作。 `WorkspaceMode#ISOLATED` or `WorkspaceMode#SHARED`; may be null |
workspacePath | String | 执行工作区路径相关操作。 optional path to the on-disk subagent definition |
model | String | 执行模型相关操作。 optional override model id |
maxIters | int | 执行最大迭代次数相关操作。 per-call iteration cap, 0 if unspecified |
toolAllowlist | List<String> | 执行 `toolAllowlist` 方法。 when non-empty, only inherited parent tools whose names are listed are
visible to the subagent |
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public static SubagentDescriptor of(SubagentEntry e)static | 创建并返回实例。 Creates and returns an instance. |
public static SubagentDescriptor of(SubagentDeclaration d)static | 创建并返回实例。 Creates and returns an instance. |
记录组件详情Record Component Detail
name
String name执行名称相关操作。
unique subagent name / agent-id
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81description
String description执行 description 方法。
used by the orchestrator agent to decide when to delegate
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81source
String source执行来源相关操作。
where this entry came from: spring-bean / declaration
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81workspaceMode
String workspaceMode执行工作区模式相关操作。
WorkspaceMode#ISOLATED or WorkspaceMode#SHARED; may be null
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81workspacePath
String workspacePath执行工作区路径相关操作。
optional path to the on-disk subagent definition
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81model
String model执行模型相关操作。
optional override model id
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81maxIters
int maxIters执行最大迭代次数相关操作。
per-call iteration cap, 0 if unspecified
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81toolAllowlist
List<String> toolAllowlist执行 toolAllowlist 方法。
when non-empty, only inherited parent tools whose names are listed are visible to the subagent
io/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:38–81方法详情Method Detail
of
public static SubagentDescriptor of(SubagentEntry e)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
e | SubagentEntry | e(类型 `SubagentEntry`)。The e. |
SubagentDescriptorio/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:48–51of
public static SubagentDescriptor of(SubagentDeclaration d)
创建并返回实例。
Creates and returns an instance.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
d | SubagentDeclaration | d(类型 `SubagentDeclaration`)。The d. |
SubagentDescriptorio/agentscope/spring/boot/admin/subagent/SubagentDescriptor.java:53–64