Class ControlPlaneStores
java.lang.Object
io.agentscope.extensions.aistio.store.ControlPlaneStores
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 TypeMethodDescriptionio.agentscope.harness.agent.bus.AsyncToolRegistryReturns a control-plane backedAsyncToolRegistry, ornullwhen the hosted-store endpoint is unreachable soHarnessAgentcan fall back to the workspace registry.io.agentscope.harness.agent.filesystem.remote.store.BaseStoreReturns a control-plane backedBaseStore.static ControlPlaneStoresCreates a factory from explicit connection settings.static ControlPlaneStoresfrom(AistioConfig config) Creates a factory reusing connection settings from anAistioConfig.static ControlPlaneStoresfromEnv()Creates a factory from environment variables:AISTIO_CONTROL_PLANE_HTTP,BUILDER_INTERNAL_TOKEN,AISTIO_AGENT_NAME,AISTIO_NAMESPACE.io.agentscope.harness.agent.bus.MessageBusReturns a control-plane backedMessageBus, ornullwhen the hosted-store endpoint is unreachable soHarnessAgentcan fall back toWorkspaceMessageBus.io.agentscope.harness.agent.sandbox.SandboxExecutionGuardReturns a control-plane backedSandboxExecutionGuard.io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpecReturns a control-plane backedSandboxSnapshotSpec.io.agentscope.harness.agent.gateway.SessionTurnGateReturns a control-plane backedSessionTurnGatefor distributed per-session turn serialization.io.agentscope.harness.agent.subagent.task.TaskRepositoryReturns a control-plane backedTaskRepository, ornullwhen unreachable.io.agentscope.harness.agent.DistributedStorewithAgentStateStore(io.agentscope.core.state.AgentStateStore stateStore) Builds aDistributedStoreby combining hosted components with a user-providedAgentStateStore.
-
Method Details
-
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 URLtoken- internal token forX-Builder-Internal-TokenagentName- logical agent namenamespace- tenant / Kubernetes namespace
-
from
Creates a factory reusing connection settings from anAistioConfig.- Parameters:
config- aistio bridge config (must havecontrolPlaneHttpand token set)
-
baseStore
public io.agentscope.harness.agent.filesystem.remote.store.BaseStore baseStore()Returns a control-plane backedBaseStore. -
sandboxExecutionGuard
public io.agentscope.harness.agent.sandbox.SandboxExecutionGuard sandboxExecutionGuard()Returns a control-plane backedSandboxExecutionGuard. -
sandboxSnapshotSpec
public io.agentscope.harness.agent.sandbox.snapshot.SandboxSnapshotSpec sandboxSnapshotSpec()Returns a control-plane backedSandboxSnapshotSpec. -
messageBus
public io.agentscope.harness.agent.bus.MessageBus messageBus()Returns a control-plane backedMessageBus, ornullwhen the hosted-store endpoint is unreachable soHarnessAgentcan fall back toWorkspaceMessageBus. -
asyncToolRegistry
public io.agentscope.harness.agent.bus.AsyncToolRegistry asyncToolRegistry()Returns a control-plane backedAsyncToolRegistry, ornullwhen the hosted-store endpoint is unreachable soHarnessAgentcan fall back to the workspace registry. -
taskRepository
public io.agentscope.harness.agent.subagent.task.TaskRepository taskRepository()Returns a control-plane backedTaskRepository, ornullwhen unreachable. -
sessionTurnGate
public io.agentscope.harness.agent.gateway.SessionTurnGate sessionTurnGate()Returns a control-plane backedSessionTurnGatefor distributed per-session turn serialization.When wired via
withAgentStateStore(AgentStateStore), callers should configureReActAgentconflictPolicytoFAIL. -
withAgentStateStore
public io.agentscope.harness.agent.DistributedStore withAgentStateStore(io.agentscope.core.state.AgentStateStore stateStore) Builds aDistributedStoreby combining hosted components with a user-providedAgentStateStore.- Parameters:
stateStore- required agent session state backend- Returns:
- a composite distributed store
-