MCPcopy Index your code
hub / github.com/CopilotKit/CopilotKit / get

Method get

packages/bot/src/action-store.ts:23–31  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

21 });
22 }
23 async get(id: string): Promise<ActionSnapshot | undefined> {
24 const e = this.map.get(id);
25 if (!e) return undefined;
26 if (e.expiresAt !== undefined && Date.now() > e.expiresAt) {
27 this.map.delete(id);
28 return undefined;
29 }
30 return e.snap;
31 }
32 async delete(id: string): Promise<void> {
33 this.map.delete(id);
34 }

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
nowMethod · 0.65
deleteMethod · 0.65

Tested by

no test coverage detected