Class ControlPlaneBaseStore

java.lang.Object
io.agentscope.extensions.aistio.store.ControlPlaneBaseStore
All Implemented Interfaces:
io.agentscope.harness.agent.filesystem.remote.store.BaseStore

public final class ControlPlaneBaseStore extends Object implements io.agentscope.harness.agent.filesystem.remote.store.BaseStore
Control-plane hosted BaseStore over /api/v1/dp/kv/*.

HTTP failures and unexpected status codes throw RuntimeException — never silently return empty results (except get(java.util.List<java.lang.String>, java.lang.String) which maps 404 to null).

  • Method Details

    • get

      public io.agentscope.harness.agent.filesystem.remote.store.StoreItem get(List<String> ns, String key)
      Specified by:
      get in interface io.agentscope.harness.agent.filesystem.remote.store.BaseStore
    • put

      public void put(List<String> ns, String key, Map<String,Object> value)
      Specified by:
      put in interface io.agentscope.harness.agent.filesystem.remote.store.BaseStore
    • putIfVersion

      public boolean putIfVersion(List<String> ns, String key, Map<String,Object> value, long expectedVersion)
      Specified by:
      putIfVersion in interface io.agentscope.harness.agent.filesystem.remote.store.BaseStore
    • search

      public List<io.agentscope.harness.agent.filesystem.remote.store.StoreItem> search(List<String> ns, int limit, int offset)
      Specified by:
      search in interface io.agentscope.harness.agent.filesystem.remote.store.BaseStore
    • delete

      public void delete(List<String> ns, String key)
      Specified by:
      delete in interface io.agentscope.harness.agent.filesystem.remote.store.BaseStore