AgentscopeAdminAutoConfiguration
@AutoConfiguration @ConditionalOnClass(Agent.class) @ConditionalOnProperty(prefix = "agentscope.admin", name = "enabled", havingValue = "true") @EnableConfigurationProperties(AdminProperties.class) @org.springframework.context.annotation.Import(AdminOpenApiConfiguration.class) public class AgentscopeAdminAutoConfiguration
io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:89–347Agentscope 管理台 Auto 配置,保存相关配置项。位于 io.agentscope.spring.boot.admin 包。核心成员包括 agentscopeAgentRegistry、agentscopeAdminCommandRegistry、agentscopeBuiltinCommandRegistrar、agentscopeAdminAuditLogger、agentscopeSummarizationStrategy、agentscopeSnapshotStore。
Spring Boot auto-configuration for the AgentScope admin/ops starter.
Activation rules:
-
agentscope.admin.enabled=true— master switch (defaults to false so this starter never accidentally exposes admin endpoints just by being on the classpath). -
Agenton the classpath — guards against running without agentscope-core.
Web controllers register only when a Servlet web application is detected
(ConditionalOnWebApplication). Actuator endpoints register only when the Actuator
Endpoint type is on the classpath.
嵌套类摘要Nested Class Summary
| 类Class | 类型Kind | 说明Description |
|---|---|---|
MetricsHookLifecycle | 类class | 指标钩子生命周期,承载智能体的部署、调度与服务化运行。 Tiny lifecycle bean — wires/unwires the metrics hook with the application context. |
WebMvcConfiguration | 类class | Web Mvc 配置,保存相关配置项。 Data-plane REST surface. |
ActuatorEndpointsConfiguration | 类class | Actuator Endpoints 配置,保存相关配置项。 Control-plane Actuator endpoints. |
方法摘要Method Summary
方法详情Method Detail
agentscopeAgentRegistry
public AgentRegistry agentscopeAgentRegistry(ObjectProvider<Map<String, Agent>> agentBeans)
设置该参数。
Default AgentRegistry.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
agentBeans | ObjectProvider<Map<String, Agent>> | 智能体 Beans(类型 `ObjectProvider >`)。The agent beans. |
AgentRegistryio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:104–123agentscopeAdminCommandRegistry
public AdminCommandRegistry agentscopeAdminCommandRegistry()
返回 agentscopeAdminCommandRegistry 结果。
Returns the agentscope admin command registry.
AdminCommandRegistryio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:125–129agentscopeBuiltinCommandRegistrar
public BuiltinCommandRegistrar agentscopeBuiltinCommandRegistrar(AdminCommandRegistry registry, AdminProperties properties)
执行 agentscopeBuiltinCommandRegistrar 方法。
Performs the agentscope builtin command registrar operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
registry | AdminCommandRegistry | 注册表(类型 `AdminCommandRegistry`)。The registry. |
properties | AdminProperties | 属性(类型 `AdminProperties`)。The properties. |
BuiltinCommandRegistrario/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:131–135agentscopeAdminAuditLogger
public AdminAuditLogger agentscopeAdminAuditLogger(AdminProperties properties, ApplicationEventPublisher publisher)
执行 agentscopeAdminAuditLogger 方法。
Performs the agentscope admin audit logger operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
properties | AdminProperties | 属性(类型 `AdminProperties`)。The properties. |
publisher | ApplicationEventPublisher | publisher(类型 `ApplicationEventPublisher`)。The publisher. |
AdminAuditLoggerio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:137–142agentscopeSummarizationStrategy
public SummarizationStrategy agentscopeSummarizationStrategy()
返回 agentscopeSummarizationStrategy 结果。
Returns the agentscope summarization strategy.
SummarizationStrategyio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:144–148agentscopeSnapshotStore
public SnapshotStore agentscopeSnapshotStore()
返回 agentscopeSnapshotStore 结果。
Returns the agentscope snapshot store.
SnapshotStoreio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:150–154agentscopeSessionOperations
public SessionOperations agentscopeSessionOperations(AgentRegistry registry, SummarizationStrategy summarizer, AdminProperties properties, SnapshotStore snapshots)
执行 agentscopeSessionOperations 方法。
Performs the agentscope session operations operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
registry | AgentRegistry | 注册表(类型 `AgentRegistry`)。The registry. |
summarizer | SummarizationStrategy | summarizer(类型 `SummarizationStrategy`)。The summarizer. |
properties | AdminProperties | 属性(类型 `AdminProperties`)。The properties. |
snapshots | SnapshotStore | snapshots(类型 `SnapshotStore`)。The snapshots. |
SessionOperationsio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:156–164agentscopeAgentInventory
public AgentInventory agentscopeAgentInventory(AgentRegistry registry, ObjectProvider<Map<String, Toolkit>> toolkits, ObjectProvider<Map<String, Model>> models)
执行 agentscopeAgentInventory 方法。
Performs the agentscope agent inventory operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
registry | AgentRegistry | 注册表(类型 `AgentRegistry`)。The registry. |
toolkits | ObjectProvider<Map<String, Toolkit>> | toolkits(类型 `ObjectProvider >`)。The toolkits. |
models | ObjectProvider<Map<String, Model>> | 模型(类型 `ObjectProvider >`)。The models. |
AgentInventoryio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:166–173agentscopeSubagentInventory
public SubagentInventory agentscopeSubagentInventory(ObjectProvider<Map<String, SubagentEntry>> entryBeans, ObjectProvider<Map<String, SubagentDeclaration>> declarationBeans)
执行 agentscopeSubagentInventory 方法。
Performs the agentscope subagent inventory operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
entryBeans | ObjectProvider<Map<String, SubagentEntry>> | 条目 Beans(类型 `ObjectProvider >`)。The entry beans. |
declarationBeans | ObjectProvider<Map<String, SubagentDeclaration>> | declaration Beans(类型 `ObjectProvider >`)。The declaration beans. |
SubagentInventoryio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:175–181agentscopeSubagentTaskOperations
public SubagentTaskOperations agentscopeSubagentTaskOperations(ObjectProvider<TaskRepository> repoProvider)
设置该参数。
Performs the agentscope subagent task operations operation.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
repoProvider | ObjectProvider<TaskRepository> | 仓库提供者(类型 `ObjectProvider`)。The repo provider. |
SubagentTaskOperationsio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:183–188agentscopeMetricsRecorder
public MetricsRecorder agentscopeMetricsRecorder()
返回 agentscopeMetricsRecorder 结果。
Returns the agentscope metrics recorder.
MetricsRecorderio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:190–194agentscopeMetricsHookLifecycle
public MetricsHookLifecycle agentscopeMetricsHookLifecycle(MetricsRecorder recorder)
设置该参数。
Registers a MetricsHook into AgentBase#addSystemHook(Hook) at startup so every subsequently constructed agent contributes token-usage counters.
| 名称Name | 类型Type | 说明Description |
|---|---|---|
recorder | MetricsRecorder | 记录器(类型 `MetricsRecorder`)。The recorder. |
MetricsHookLifecycleio/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:202–206嵌套类详情Nested Class Detail
MetricsHookLifecycle
public static final class MetricsHookLifecycle指标钩子生命周期,承载智能体的部署、调度与服务化运行。位于 io.agentscope.spring.boot.admin 包。核心成员包括 register、unregister、hook、MetricsHookLifecycle。
Tiny lifecycle bean — wires/unwires the metrics hook with the application context.
WebMvcConfiguration
@Configuration(proxyBeanMethods = false) @ConditionalOnWebApplication(type = ConditionalOnWebApplication.Type.SERVLET) @ConditionalOnClass(name = "org.springframework.web.bind.annotation.RestController") public static class WebMvcConfigurationWeb Mvc 配置,保存相关配置项。位于 io.agentscope.spring.boot.admin 包。核心成员包括 agentscopeSessionAdminController、agentscopeSubagentTaskController。
Data-plane REST surface. Only loaded for Servlet web applications.
ActuatorEndpointsConfiguration
@Configuration(proxyBeanMethods = false) @ConditionalOnClass(name = "org.springframework.boot.actuate.endpoint.annotation.Endpoint") public static class ActuatorEndpointsConfigurationActuator Endpoints 配置,保存相关配置项。位于 io.agentscope.spring.boot.admin 包。核心成员包括 agentscopeStatusEndpoint、agentscopeAgentsEndpoint、agentscopeToolsEndpoint、agentscopeModelsEndpoint、agentscopeCommandsEndpoint、agentscopeDoctorEndpoint。
Control-plane Actuator endpoints. Loaded only when Spring Boot Actuator's
@Endpoint type is on the classpath; each endpoint registration still respects the
standard management.endpoint.<id>.enabled / management.endpoints.web.exposure
conventions.