Class ControlPlaneStores

java.lang.Object
io.agentscope.extensions.aistio.store.ControlPlaneStores

public final class ControlPlaneStores extends Object
Factory for control-plane hosted store components (/api/v1/dp/*).

AgentStateStore is deliberately excluded — callers must supply their own via withAgentStateStore(AgentStateStore).


 ControlPlaneStores cp = ControlPlaneStores.fromEnv();
 HarnessAgent.builder()
     .distributedStore(cp.withAgentStateStore(redisStore.agentStateStore()))
     .filesystem(new RemoteFilesystemSpec().isolationScope(IsolationScope.USER))
     .build();
 
  • Method Summary

    Modifier and Type
    Method
    Description
    io.agentscope.harness.agent.bus.AsyncToolRegistry
    Returns a control-plane backed AsyncToolRegistry, or null when the hosted-store endpoint is unreachable so HarnessAgent can fall back to the workspace registry.
    io.agentscope.harness.agent.filesystem.remote.store.BaseStore
    Returns a control-plane backed BaseStore.
    create(String httpBase, String token, String agentName, String namespace)
    Creates a factory from explicit connection settings.
    Creates a factory reusing connection settings from an AistioConfig.
    Creates a factory from environment variables: AISTIO_CONTROL_PLANE_HTTP, BUILDER_INTERNAL_TOKEN, AISTIO_AGENT_NAME, AISTIO_NAMESPACE.
    io.agentscope.harness.agent.bus.MessageBus
    Returns a control-plane backed MessageBus, or null when the hosted-store endpoint is unreachable so HarnessAgent can fall back to WorkspaceMessageBus.
    io.agentscope.harness.agent.sandbox.SandboxExecutionGuard
    Returns a control-plane backed SandboxExecutionGuard.
    io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec
    Returns a control-plane backed SandboxSnapshotSpec.
    io.agentscope.harness.agent.gateway.SessionTurnGate
    Returns a control-plane backed SessionTurnGate for distributed per-session turn serialization.
    io.agentscope.harness.agent.subagent.task.TaskRepository
    Returns a control-plane backed TaskRepository, or null when unreachable.
    io.agentscope.harness.agent.DistributedStore
    withAgentStateStore(io.agentscope.core.state.AgentStateStore stateStore)
    Builds a DistributedStore by combining hosted components with a user-provided AgentStateStore.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Method Details

    • fromEnv

      public static ControlPlaneStores fromEnv()
      Creates a factory from environment variables: AISTIO_CONTROL_PLANE_HTTP, BUILDER_INTERNAL_TOKEN, AISTIO_AGENT_NAME, AISTIO_NAMESPACE.
    • create

      public static ControlPlaneStores create(String httpBase, String token, String agentName, String namespace)
      Creates a factory from explicit connection settings.
      Parameters:
      httpBase - control-plane HTTP base URL
      token - internal token for X-Builder-Internal-Token
      agentName - logical agent name
      namespace - tenant / Kubernetes namespace
    • from

      public static ControlPlaneStores from(AistioConfig config)
      Creates a factory reusing connection settings from an AistioConfig.
      Parameters:
      config - aistio bridge config (must have controlPlaneHttp and token set)
    • baseStore

      public io.agentscope.harness.agent.filesystem.remote.store.BaseStore baseStore()
      Returns a control-plane backed BaseStore.
    • sandboxExecutionGuard

      public io.agentscope.harness.agent.sandbox.SandboxExecutionGuard sandboxExecutionGuard()
      Returns a control-plane backed SandboxExecutionGuard.
    • sandboxSnapshotSpec

      public io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec sandboxSnapshotSpec()
      Returns a control-plane backed SandboxSnapshotSpec.
    • messageBus

      public io.agentscope.harness.agent.bus.MessageBus messageBus()
      Returns a control-plane backed MessageBus, or null when the hosted-store endpoint is unreachable so HarnessAgent can fall back to WorkspaceMessageBus.
    • asyncToolRegistry

      public io.agentscope.harness.agent.bus.AsyncToolRegistry asyncToolRegistry()
      Returns a control-plane backed AsyncToolRegistry, or null when the hosted-store endpoint is unreachable so HarnessAgent can fall back to the workspace registry.
    • taskRepository

      public io.agentscope.harness.agent.subagent.task.TaskRepository taskRepository()
      Returns a control-plane backed TaskRepository, or null when unreachable.
    • sessionTurnGate

      public io.agentscope.harness.agent.gateway.SessionTurnGate sessionTurnGate()
      Returns a control-plane backed SessionTurnGate for distributed per-session turn serialization.

      When wired via withAgentStateStore(AgentStateStore), callers should configure ReActAgent conflictPolicy to FAIL.

    • withAgentStateStore

      public io.agentscope.harness.agent.DistributedStore withAgentStateStore(io.agentscope.core.state.AgentStateStore stateStore)
      Builds a DistributedStore by combining hosted components with a user-provided AgentStateStore.
      Parameters:
      stateStore - required agent session state backend
      Returns:
      a composite distributed store