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

Function removeDisabledAgentId

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

Source from the content-addressed store, hash-verified

150}
151
152export async function removeDisabledAgentId(agentId: string): Promise<boolean> {
153 try {
154 const res = await requestJson(
155 API_ENDPOINTS.memory.config.disableAgentRemove(agentId),
156 {
157 method: "DELETE",
158 headers: getAuthHeaders(),
159 }
160 );
161 return !!res?.success;
162 } catch (e) {
163 log.error("removeDisabledAgentId error", e);
164 return false;
165 }
166}
167
168export async function addDisabledUserAgentId(
169 agentId: string

Callers 1

useMemoryFunction · 0.90

Calls 3

getAuthHeadersFunction · 0.90
errorMethod · 0.80
requestJsonFunction · 0.70

Tested by

no test coverage detected