AS AgentScopeAPI 手册 / API Reference

SpringSubagentInventory

public final class SpringSubagentInventory implements SubagentInventory
源码Source io/agentscope/spring/boot/admin/subagent/SpringSubagentInventory.java:34–67

Spring 子智能体清单,支持智能体之间的发现、委派与协作。位于 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

构造器Constructor说明Description
public SpringSubagentInventory(ObjectProvider<Map<String, SubagentEntry>> entryBeans, ObjectProvider<Map<String, SubagentDeclaration>> declarationBeans)
初始化 `SpringSubagentInventory` 实例。
Creates a new instance.

方法摘要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
entryBeansObjectProvider<Map<String, SubagentEntry>>条目 Beans(类型 `ObjectProvider >`)。The entry beans.
declarationBeansObjectProvider<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.

返回Returns List<SubagentDescriptor>
返回列出。Returns list.
源码Source io/agentscope/spring/boot/admin/subagent/SpringSubagentInventory.java:46–66
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.