SpringSubagentInventory
public final class SpringSubagentInventory implements SubagentInventory
源码Source
io/agentscope/spring/boot/admin/subagent/SpringSubagentInventory.java:34–67Spring 子智能体清单,支持智能体之间的发现、委派与协作。位于 io.agentscope.spring.boot.admin.subagent 包,实现 SubagentInventory。核心成员包括 list、SpringSubagentInventory。
Default SubagentInventory that scans the Spring context for any user-declared
SubagentEntry or SubagentDeclaration beans.
SubagentDeclaration takes precedence when both forms reference the same name —
declarations carry richer metadata.
构造器摘要Constructor Summary
方法摘要Method Summary
| 方法Method | 说明Description |
|---|---|
public List<SubagentDescriptor> list() | 返回列表。 Returns the list. |
构造器详情Constructor Detail
SpringSubagentInventory
public SpringSubagentInventory(ObjectProvider<Map<String, SubagentEntry>> entryBeans, ObjectProvider<Map<String, SubagentDeclaration>> declarationBeans)
初始化 SpringSubagentInventory 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
entryBeans | ObjectProvider<Map<String, SubagentEntry>> | 条目 Beans(类型 `ObjectProvider >`)。The entry beans. |
declarationBeans | ObjectProvider<Map<String, SubagentDeclaration>> | declaration Beans(类型 `ObjectProvider >`)。The declaration beans. |
源码Source
io/agentscope/spring/boot/admin/subagent/SpringSubagentInventory.java:39–44方法详情Method Detail
list
public List<SubagentDescriptor> list()
返回列表。
Returns the list.
List<SubagentDescriptor>返回列出。Returns list.
源码Source
io/agentscope/spring/boot/admin/subagent/SpringSubagentInventory.java:46–66