MCPcopy Create free account
hub / github.com/MagicCube/agentara / useUserMemory

Function useUserMemory

web/src/lib/api/hooks.ts:212–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

210 * Fetches USER.md content.
211 */
212export function useUserMemory() {
213 return useQuery({
214 queryKey: ["memory", "user"],
215 queryFn: () =>
216 api.memory.user
217 .$get()
218 .then((res) => res.json() as Promise<MemoryContent>),
219 });
220}
221
222/**
223 * Fetches SOUL.md content.

Callers 1

MemoryPageFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected