MCPcopy
hub / github.com/rohitg00/agentmemory / get

Method get

src/state/kv.ts:6–11  ·  view source on GitHub ↗
(scope: string, key: string)

Source from the content-addressed store, hash-verified

4 constructor(private sdk: ISdk) {}
5
6 async get<T = unknown>(scope: string, key: string): Promise<T | null> {
7 return this.sdk.trigger<{ scope: string; key: string }, T | null>({
8 function_id: 'state::get',
9 payload: { scope, key },
10 })
11 }
12
13 async set<T = unknown>(scope: string, key: string, value: T): Promise<T> {
14 return this.sdk.trigger<{ scope: string; key: string; value: T }, T>({

Callers 15

stashForFunction · 0.45
subtaskSetForFunction · 0.45
toolCallSetForFunction · 0.45
AgentmemoryCapturePluginFunction · 0.45
withKeyedLockFunction · 0.45
queryFunction · 0.45
mockKVFunction · 0.45
mockSdkFunction · 0.45
mockKVFunction · 0.45
mockKVFunction · 0.45
mockSdkFunction · 0.45

Calls

no outgoing calls

Tested by 15

mockKVFunction · 0.36
mockSdkFunction · 0.36
mockKVFunction · 0.36
mockKVFunction · 0.36
mockSdkFunction · 0.36
mockKVFunction · 0.36
mockSdkFunction · 0.36
mockKVFunction · 0.36
mockKVFunction · 0.36
mockSdkFunction · 0.36
mockKVFunction · 0.36
mockSdkFunction · 0.36