Record Class AistioConfig

java.lang.Object
java.lang.Record
io.agentscope.extensions.aistio.AistioConfig
Record Components:
controlPlane - aistiod ASDP gRPC endpoint, host:port (optional)
controlPlaneHttp - aistiod REST base URL for HTTP self-register, e.g. http://localhost:8081
internalToken - trusted bootstrap/workload token for first registration
registrationCredential - Agent registration credential for an existing logical identity
agentId - stable Catalog Agent UUID when registration is performed out of band
bindingId - stable external Binding UUID when registration is performed out of band
generation - registered AgentInstance generation when registration is performed out of band
agentKey - stable logical key registered in the control plane
tenant - collaboration tenant
namespace - collaboration / Kubernetes namespace
instanceKey - this replica's stable key; defaults to HOSTNAME then the local host name
enableEvents - whether to persist and push the Level-2 event stream (on by default when ASDP gRPC is enabled because it is the canonical conversation history used for reconnect and replay)
eventJournalDir - directory for the durable event outbox; empty uses ~/.agentscope/aistio/event-journal
contractHttpPort - port for the in-process /agentscope/* contract server; 0 binds an ephemeral port
contractHttpHost - bind address, empty for all interfaces
publicBaseUrl - URL the control plane should use to reach the contract server; empty derives http://localhost:<boundPort>
sessionAffinity - affinity hint the control plane uses when routing session commands
startHttp - whether to start the contract server
startGrpc - whether to open the ASDP upstream channel
startHttpRegister - whether to POST /api/v1/agent-registrations

public record AistioConfig(String controlPlane, String controlPlaneHttp, String internalToken, String registrationCredential, String agentId, String bindingId, long generation, String agentKey, String tenant, String namespace, String instanceKey, boolean enableEvents, String eventJournalDir, int contractHttpPort, String contractHttpHost, String publicBaseUrl, String sessionAffinity, boolean startHttp, boolean startGrpc, boolean startHttpRegister) extends Record
Connection and reporting settings for a SessionBridge.

Standalone BYO (recommended locally): set controlPlaneHttp + internalToken, keep startGrpc=false. The bridge serves /agentscope/* and self-registers via POST /api/v1/agent-registrations.

Optional ASDP gRPC: set controlPlane (host:port) and startGrpc=true.

  • Constructor Details

    • AistioConfig

      public AistioConfig(String controlPlane, String controlPlaneHttp, String internalToken, String registrationCredential, String agentId, String bindingId, long generation, String agentKey, String tenant, String namespace, String instanceKey, boolean enableEvents, String eventJournalDir, int contractHttpPort, String contractHttpHost, String publicBaseUrl, String sessionAffinity, boolean startHttp, boolean startGrpc, boolean startHttpRegister)
      Creates an instance of a AistioConfig record class.
      Parameters:
      controlPlane - the value for the controlPlane record component
      controlPlaneHttp - the value for the controlPlaneHttp record component
      internalToken - the value for the internalToken record component
      registrationCredential - the value for the registrationCredential record component
      agentId - the value for the agentId record component
      bindingId - the value for the bindingId record component
      generation - the value for the generation record component
      agentKey - the value for the agentKey record component
      tenant - the value for the tenant record component
      namespace - the value for the namespace record component
      instanceKey - the value for the instanceKey record component
      enableEvents - the value for the enableEvents record component
      eventJournalDir - the value for the eventJournalDir record component
      contractHttpPort - the value for the contractHttpPort record component
      contractHttpHost - the value for the contractHttpHost record component
      publicBaseUrl - the value for the publicBaseUrl record component
      sessionAffinity - the value for the sessionAffinity record component
      startHttp - the value for the startHttp record component
      startGrpc - the value for the startGrpc record component
      startHttpRegister - the value for the startHttpRegister record component
  • Method Details

    • builder

      public static AistioConfig.Builder builder(String agentKey)
    • 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.
    • controlPlane

      public String controlPlane()
      Returns the value of the controlPlane record component.
      Returns:
      the value of the controlPlane record component
    • controlPlaneHttp

      public String controlPlaneHttp()
      Returns the value of the controlPlaneHttp record component.
      Returns:
      the value of the controlPlaneHttp record component
    • internalToken

      public String internalToken()
      Returns the value of the internalToken record component.
      Returns:
      the value of the internalToken record component
    • registrationCredential

      public String registrationCredential()
      Returns the value of the registrationCredential record component.
      Returns:
      the value of the registrationCredential record component
    • agentId

      public String agentId()
      Returns the value of the agentId record component.
      Returns:
      the value of the agentId record component
    • bindingId

      public String bindingId()
      Returns the value of the bindingId record component.
      Returns:
      the value of the bindingId record component
    • generation

      public long generation()
      Returns the value of the generation record component.
      Returns:
      the value of the generation record component
    • agentKey

      public String agentKey()
      Returns the value of the agentKey record component.
      Returns:
      the value of the agentKey record component
    • tenant

      public String tenant()
      Returns the value of the tenant record component.
      Returns:
      the value of the tenant record component
    • namespace

      public String namespace()
      Returns the value of the namespace record component.
      Returns:
      the value of the namespace record component
    • instanceKey

      public String instanceKey()
      Returns the value of the instanceKey record component.
      Returns:
      the value of the instanceKey record component
    • enableEvents

      public boolean enableEvents()
      Returns the value of the enableEvents record component.
      Returns:
      the value of the enableEvents record component
    • eventJournalDir

      public String eventJournalDir()
      Returns the value of the eventJournalDir record component.
      Returns:
      the value of the eventJournalDir record component
    • contractHttpPort

      public int contractHttpPort()
      Returns the value of the contractHttpPort record component.
      Returns:
      the value of the contractHttpPort record component
    • contractHttpHost

      public String contractHttpHost()
      Returns the value of the contractHttpHost record component.
      Returns:
      the value of the contractHttpHost record component
    • publicBaseUrl

      public String publicBaseUrl()
      Returns the value of the publicBaseUrl record component.
      Returns:
      the value of the publicBaseUrl record component
    • sessionAffinity

      public String sessionAffinity()
      Returns the value of the sessionAffinity record component.
      Returns:
      the value of the sessionAffinity record component
    • startHttp

      public boolean startHttp()
      Returns the value of the startHttp record component.
      Returns:
      the value of the startHttp record component
    • startGrpc

      public boolean startGrpc()
      Returns the value of the startGrpc record component.
      Returns:
      the value of the startGrpc record component
    • startHttpRegister

      public boolean startHttpRegister()
      Returns the value of the startHttpRegister record component.
      Returns:
      the value of the startHttpRegister record component