MCPcopy Create free account
hub / github.com/cortexkit/magic-context / getMemories

Function getMemories

packages/dashboard/src/lib/api.ts:46–64  ·  view source on GitHub ↗
(params?: {
  project?: string;
  workspaceId?: number;
  status?: string;
  category?: string;
  search?: string;
  limit?: number;
  offset?: number;
})

Source from the content-addressed store, hash-verified

44}
45
46export async function getMemories(params?: {
47 project?: string;
48 workspaceId?: number;
49 status?: string;
50 category?: string;
51 search?: string;
52 limit?: number;
53 offset?: number;
54}): Promise<Memory[]> {
55 return invoke("get_memories", {
56 project: params?.project ?? null,
57 workspaceId: params?.workspaceId ?? null,
58 status: params?.status ?? null,
59 category: params?.category ?? null,
60 search: params?.search ?? null,
61 limit: params?.limit ?? 100,
62 offset: params?.offset ?? 0,
63 });
64}
65
66export async function getMemoryStats(params?: {
67 project?: string;

Callers

nothing calls this directly

Calls 1

invokeFunction · 0.90

Tested by

no test coverage detected