AS AgentScopeAPI 手册 / API Reference

ActuatorEndpointsConfiguration

@Configuration(proxyBeanMethods = false) @ConditionalOnClass(name = "org.springframework.boot.actuate.endpoint.annotation.Endpoint") public static class ActuatorEndpointsConfiguration
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:269–346

Actuator 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.

方法摘要Method Summary

方法Method说明Description
public AgentscopeStatusEndpoint agentscopeStatusEndpoint(AgentInventory inventory, AdminProperties properties)
执行 `agentscopeStatusEndpoint` 方法。
Performs the agentscope status endpoint operation.
public AgentscopeAgentsEndpoint agentscopeAgentsEndpoint(AgentInventory inventory)
设置该参数。
Performs the agentscope agents endpoint operation.
public AgentscopeToolsEndpoint agentscopeToolsEndpoint(AgentInventory inventory)
设置该参数。
Performs the agentscope tools endpoint operation.
public AgentscopeModelsEndpoint agentscopeModelsEndpoint(AgentInventory inventory)
设置该参数。
Performs the agentscope models endpoint operation.
public AgentscopeCommandsEndpoint agentscopeCommandsEndpoint(AdminCommandRegistry registry)
设置该参数。
Performs the agentscope commands endpoint operation.
public AgentscopeDoctorEndpoint agentscopeDoctorEndpoint(AdminProperties properties, AgentInventory inventory, ObjectProvider<AgentStateStore> sessions)
执行 `agentscopeDoctorEndpoint` 方法。
Performs the agentscope doctor endpoint operation.
public AgentscopeUsageEndpoint agentscopeUsageEndpoint(MetricsRecorder recorder)
设置该参数。
Performs the agentscope usage endpoint operation.
public AgentscopePermissionsEndpoint agentscopePermissionsEndpoint(AgentRegistry registry)
设置该参数。
Performs the agentscope permissions endpoint operation.
public AgentscopeDrainEndpoint agentscopeDrainEndpoint(AdminProperties properties, AdminAuditLogger audit)
执行 `agentscopeDrainEndpoint` 方法。
Performs the agentscope drain endpoint operation.
public AgentscopeShutdownEndpoint agentscopeShutdownEndpoint(AdminProperties properties, AdminAuditLogger audit, ApplicationContext context)
执行 `agentscopeShutdownEndpoint` 方法。
Performs the agentscope shutdown endpoint operation.
public AgentscopeSubagentsEndpoint agentscopeSubagentsEndpoint(SubagentInventory inventory)
设置该参数。
Performs the agentscope subagents endpoint operation.

方法详情Method Detail

agentscopeStatusEndpoint

public AgentscopeStatusEndpoint agentscopeStatusEndpoint(AgentInventory inventory, AdminProperties properties)

执行 agentscopeStatusEndpoint 方法。

Performs the agentscope status endpoint operation.

参数Parameters
名称Name类型Type说明Description
inventoryAgentInventory清单(类型 `AgentInventory`)。The inventory.
propertiesAdminProperties属性(类型 `AdminProperties`)。The properties.
返回Returns AgentscopeStatusEndpoint
返回AgentscopeStatusEndpoint。Returns agentscope status endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:273–278

agentscopeAgentsEndpoint

public AgentscopeAgentsEndpoint agentscopeAgentsEndpoint(AgentInventory inventory)

设置该参数。

Performs the agentscope agents endpoint operation.

参数Parameters
名称Name类型Type说明Description
inventoryAgentInventory清单(类型 `AgentInventory`)。The inventory.
返回Returns AgentscopeAgentsEndpoint
返回AgentscopeAgentsEndpoint。Returns agentscope agents endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:280–284

agentscopeToolsEndpoint

public AgentscopeToolsEndpoint agentscopeToolsEndpoint(AgentInventory inventory)

设置该参数。

Performs the agentscope tools endpoint operation.

参数Parameters
名称Name类型Type说明Description
inventoryAgentInventory清单(类型 `AgentInventory`)。The inventory.
返回Returns AgentscopeToolsEndpoint
返回AgentscopeToolsEndpoint。Returns agentscope tools endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:286–290

agentscopeModelsEndpoint

public AgentscopeModelsEndpoint agentscopeModelsEndpoint(AgentInventory inventory)

设置该参数。

Performs the agentscope models endpoint operation.

参数Parameters
名称Name类型Type说明Description
inventoryAgentInventory清单(类型 `AgentInventory`)。The inventory.
返回Returns AgentscopeModelsEndpoint
返回AgentscopeModelsEndpoint。Returns agentscope models endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:292–296

agentscopeCommandsEndpoint

public AgentscopeCommandsEndpoint agentscopeCommandsEndpoint(AdminCommandRegistry registry)

设置该参数。

Performs the agentscope commands endpoint operation.

参数Parameters
名称Name类型Type说明Description
registryAdminCommandRegistry注册表(类型 `AdminCommandRegistry`)。The registry.
返回Returns AgentscopeCommandsEndpoint
返回AgentscopeCommandsEndpoint。Returns agentscope commands endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:298–303

agentscopeDoctorEndpoint

public AgentscopeDoctorEndpoint agentscopeDoctorEndpoint(AdminProperties properties, AgentInventory inventory, ObjectProvider<AgentStateStore> sessions)

执行 agentscopeDoctorEndpoint 方法。

Performs the agentscope doctor endpoint operation.

参数Parameters
名称Name类型Type说明Description
propertiesAdminProperties属性(类型 `AdminProperties`)。The properties.
inventoryAgentInventory清单(类型 `AgentInventory`)。The inventory.
sessionsObjectProvider<AgentStateStore>会话(类型 `ObjectProvider`)。The sessions.
返回Returns AgentscopeDoctorEndpoint
返回AgentscopeDoctorEndpoint。Returns agentscope doctor endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:305–312

agentscopeUsageEndpoint

public AgentscopeUsageEndpoint agentscopeUsageEndpoint(MetricsRecorder recorder)

设置该参数。

Performs the agentscope usage endpoint operation.

参数Parameters
名称Name类型Type说明Description
recorderMetricsRecorder记录器(类型 `MetricsRecorder`)。The recorder.
返回Returns AgentscopeUsageEndpoint
返回AgentscopeUsageEndpoint。Returns agentscope usage endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:314–318

agentscopePermissionsEndpoint

public AgentscopePermissionsEndpoint agentscopePermissionsEndpoint(AgentRegistry registry)

设置该参数。

Performs the agentscope permissions endpoint operation.

参数Parameters
名称Name类型Type说明Description
registryAgentRegistry注册表(类型 `AgentRegistry`)。The registry.
返回Returns AgentscopePermissionsEndpoint
返回AgentscopePermissionsEndpoint。Returns agentscope permissions endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:320–324

agentscopeDrainEndpoint

public AgentscopeDrainEndpoint agentscopeDrainEndpoint(AdminProperties properties, AdminAuditLogger audit)

执行 agentscopeDrainEndpoint 方法。

Performs the agentscope drain endpoint operation.

参数Parameters
名称Name类型Type说明Description
propertiesAdminProperties属性(类型 `AdminProperties`)。The properties.
auditAdminAuditLoggeraudit(类型 `AdminAuditLogger`)。The audit.
返回Returns AgentscopeDrainEndpoint
返回AgentscopeDrainEndpoint。Returns agentscope drain endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:326–331

agentscopeShutdownEndpoint

public AgentscopeShutdownEndpoint agentscopeShutdownEndpoint(AdminProperties properties, AdminAuditLogger audit, ApplicationContext context)

执行 agentscopeShutdownEndpoint 方法。

Performs the agentscope shutdown endpoint operation.

参数Parameters
名称Name类型Type说明Description
propertiesAdminProperties属性(类型 `AdminProperties`)。The properties.
auditAdminAuditLoggeraudit(类型 `AdminAuditLogger`)。The audit.
contextApplicationContext上下文(类型 `ApplicationContext`)。The context.
返回Returns AgentscopeShutdownEndpoint
返回AgentscopeShutdownEndpoint。Returns agentscope shutdown endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:333–338

agentscopeSubagentsEndpoint

public AgentscopeSubagentsEndpoint agentscopeSubagentsEndpoint(SubagentInventory inventory)

设置该参数。

Performs the agentscope subagents endpoint operation.

参数Parameters
名称Name类型Type说明Description
inventorySubagentInventory清单(类型 `SubagentInventory`)。The inventory.
返回Returns AgentscopeSubagentsEndpoint
返回AgentscopeSubagentsEndpoint。Returns agentscope subagents endpoint.
源码Source io/agentscope/spring/boot/admin/AgentscopeAdminAutoConfiguration.java:340–345
基于官方固定版本源码静态生成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.