AS AgentScopeAPI 手册 / API Reference

AdminCommandRegistry

public final class AdminCommandRegistry
源码Source io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:33–66

管理台命令注册表,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.admin.command 包。核心成员包括 register、find、list、size。

Thread-safe registry of AdminCommand instances.

Built-in commands are populated by BuiltinCommandRegistrar at startup. Third-party starters (or business code) may inject additional commands via #register(AdminCommand) — the registry is the single source of truth that powers the /actuator/agentscope-commands catalog.

方法摘要Method Summary

方法Method说明Description
public void register(AdminCommand command)
设置注册。
Register a command.
public Optional<AdminCommand> find(String id)
设置查找。
Performs the find operation.
public List<AdminCommand> list()
返回列表。
All registered commands, sorted by `category` then `id` for stable output.
public int size()
返回大小。
Returns the size.

方法详情Method Detail

register

public void register(AdminCommand command)

设置注册。

Register a command.

参数Parameters
名称Name类型Type说明Description
commandAdminCommand命令(类型 `AdminCommand`)。The command.
源码Source io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:41–50

find

public Optional<AdminCommand> find(String id)

设置查找。

Performs the find operation.

参数Parameters
名称Name类型Type说明Description
idString标识(类型 `String`)。The id.
返回Returns Optional<AdminCommand>
返回可选。Returns optional.
源码Source io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:52–54

list

public List<AdminCommand> list()

返回列表。

All registered commands, sorted by category then id for stable output.

返回Returns List<AdminCommand>
返回列出。Returns list.
源码Source io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:57–61

size

public int size()

返回大小。

Returns the size.

返回Returns int
返回数值结果。Returns a numeric result.
源码Source io/agentscope/spring/boot/admin/command/AdminCommandRegistry.java:63–65
基于官方固定版本源码静态生成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.