Class UsagePanel

java.lang.Object
ai.badmonkey.agentspaces.springai.usage.UsagePanel
All Implemented Interfaces:
ai.badmonkey.agentspaces.console.ConsolePanel

public class UsagePanel extends Object implements ai.badmonkey.agentspaces.console.ConsolePanel
The fleet console's model-usage panel: this peer's tokens per model and per agent, beside the fleet-wide totals push-sum estimates.
  • Constructor Details

    • UsagePanel

      public UsagePanel(FleetUsage usage)
      Creates the panel.
      Parameters:
      usage - the usage it shows
  • Method Details

    • id

      public String id()
      Specified by:
      id in interface ai.badmonkey.agentspaces.console.ConsolePanel
    • title

      public String title()
      Specified by:
      title in interface ai.badmonkey.agentspaces.console.ConsolePanel
    • data

      public Object data()
      Specified by:
      data in interface ai.badmonkey.agentspaces.console.ConsolePanel