MCPcopy
hub / github.com/ModelEngine-Group/nexent / requestJson

Function requestJson

frontend/services/memoryService.ts:49–55  ·  view source on GitHub ↗
(
  url: string,
  options: RequestInit = {}
)

Source from the content-addressed store, hash-verified

47// Helper for unified JSON request/response handling
48// ---------------------------------------------------------------------------
49async function requestJson(
50 url: string,
51 options: RequestInit = {}
52): Promise<any> {
53 const resp = await fetchWithErrorHandling(url, options);
54 return resp.json();
55}
56
57// ---------------------------------------------------------------------------
58// Configuration helpers

Callers 11

loadMemoryConfigFunction · 0.70
setMemorySwitchFunction · 0.70
setMemoryAgentShareFunction · 0.70
addDisabledAgentIdFunction · 0.70
removeDisabledAgentIdFunction · 0.70
addDisabledUserAgentIdFunction · 0.70
listMemoriesFunction · 0.70
addMemoryFunction · 0.70
clearMemoryFunction · 0.70
deleteMemoryFunction · 0.70

Calls 2

fetchWithErrorHandlingFunction · 0.90
jsonMethod · 0.45

Tested by

no test coverage detected