Class AgentInventory

java.lang.Object
io.agentscope.spring.boot.admin.service.AgentInventory

public final class AgentInventory extends Object
Aggregates inventory information across AgentRegistry, Spring-managed Toolkit and Model beans, and the GracefulShutdownManager.

Read-only by design; consumed by every Actuator endpoint in this starter.

  • Constructor Details

    • AgentInventory

      public AgentInventory(AgentRegistry agentRegistry, org.springframework.beans.factory.ObjectProvider<Map<String,io.agentscope.core.tool.Toolkit>> toolkitBeans, org.springframework.beans.factory.ObjectProvider<Map<String,io.agentscope.core.model.Model>> modelBeans)
  • Method Details

    • agents

      public List<AgentDescriptor> agents()
    • toolsByBean

      public Map<String,List<String>> toolsByBean()
      Returns beanName -> [toolName...].
    • modelsByBean

      public Map<String,String> modelsByBean()
      Returns beanName -> modelName.
    • processStatus

      public Map<String,Object> processStatus()
      Process-wide status fields derived from GracefulShutdownManager.