Class StoreBackedSubagentRegistry

java.lang.Object
io.agentscope.harness.agent.gateway.StoreBackedSubagentRegistry
All Implemented Interfaces:
SubagentRegistry

public final class StoreBackedSubagentRegistry extends Object implements SubagentRegistry
Distributed SubagentRegistry backed by a BaseStore. Because the store is supplied by a DistributedStore (Redis / OSS / MySQL), exposure records become visible to every node, so any replica can resolve a subagentId and re-materialize the subagent.

Records are stored under the namespace ["subagents", "exposed"] keyed by subagentId. TTL is enforced lazily on find(java.lang.String): an elapsed record is deleted and reported as absent.

This registry deliberately stores only routing/identity metadata. Concurrency safety for the subagent's mutable conversation state is the responsibility of the distributed AgentStateStore (and BaseStore.putIfVersion(java.util.List<java.lang.String>, java.lang.String, java.util.Map<java.lang.String, java.lang.Object>, long) where explicit optimistic guarding is desired), not of this registry.

  • Constructor Details

    • StoreBackedSubagentRegistry

      public StoreBackedSubagentRegistry(BaseStore store)
  • Method Details