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

Function removeDisabledUserAgentId

frontend/services/memoryService.ts:187–203  ·  view source on GitHub ↗
(
  agentId: string
)

Source from the content-addressed store, hash-verified

185}
186
187export async function removeDisabledUserAgentId(
188 agentId: string
189): Promise<boolean> {
190 try {
191 const res = await requestJson(
192 API_ENDPOINTS.memory.config.disableUserAgentRemove(agentId),
193 {
194 method: "DELETE",
195 headers: getAuthHeaders(),
196 }
197 );
198 return !!res?.success;
199 } catch (e) {
200 log.error("removeDisabledUserAgentId error", e);
201 return false;
202 }
203}
204
205// ---------------------------------------------------------------------------
206// Memory list helpers

Callers 1

useMemoryFunction · 0.90

Calls 3

getAuthHeadersFunction · 0.90
errorMethod · 0.80
requestJsonFunction · 0.70

Tested by

no test coverage detected