Record Class AdminCommand

java.lang.Object
java.lang.Record
io.agentscope.spring.boot.admin.command.AdminCommand
Record Components:
id - stable internal id, e.g. session.compact
title - human-friendly label, e.g. "Compact session"
category - coarse grouping, e.g. AgentStateStore, Agent, System
plane - DATA = per-session REST; CONTROL = Actuator
httpMethod - HTTP verb the command is reached with, e.g. GET, POST
httpPath - full route from the application root, e.g. /v1/admin/sessions/{sessionId}:compact
aliases - extra display aliases (CLI-style, e.g. summarize)
writes - whether the command mutates state — disabled unless agentscope.admin.write-enabled=true
idempotent - whether repeated invocation is safe
description - short one-liner shown in the catalog

public record AdminCommand(String id, String title, String category, CommandPlane plane, String httpMethod, String httpPath, List<String> aliases, boolean writes, boolean idempotent, String description) extends Record
Self-describing record of an admin operation exposed by this starter.

The unified registry powers three views with the same metadata: REST routes, Actuator endpoints, and a machine-readable /actuator/agentscope-commands catalog used by CLI / Studio / Kubernetes operator clients.

  • Constructor Details

    • AdminCommand

      public AdminCommand(String id, String title, String category, CommandPlane plane, String httpMethod, String httpPath, List<String> aliases, boolean writes, boolean idempotent, String description)
      Creates an instance of a AdminCommand record class.
      Parameters:
      id - the value for the id record component
      title - the value for the title record component
      category - the value for the category record component
      plane - the value for the plane record component
      httpMethod - the value for the httpMethod record component
      httpPath - the value for the httpPath record component
      aliases - the value for the aliases record component
      writes - the value for the writes record component
      idempotent - the value for the idempotent record component
      description - the value for the description record component
  • Method Details

    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • id

      public String id()
      Returns the value of the id record component.
      Returns:
      the value of the id record component
    • title

      public String title()
      Returns the value of the title record component.
      Returns:
      the value of the title record component
    • category

      public String category()
      Returns the value of the category record component.
      Returns:
      the value of the category record component
    • plane

      public CommandPlane plane()
      Returns the value of the plane record component.
      Returns:
      the value of the plane record component
    • httpMethod

      public String httpMethod()
      Returns the value of the httpMethod record component.
      Returns:
      the value of the httpMethod record component
    • httpPath

      public String httpPath()
      Returns the value of the httpPath record component.
      Returns:
      the value of the httpPath record component
    • aliases

      public List<String> aliases()
      Returns the value of the aliases record component.
      Returns:
      the value of the aliases record component
    • writes

      public boolean writes()
      Returns the value of the writes record component.
      Returns:
      the value of the writes record component
    • idempotent

      public boolean idempotent()
      Returns the value of the idempotent record component.
      Returns:
      the value of the idempotent record component
    • description

      public String description()
      Returns the value of the description record component.
      Returns:
      the value of the description record component