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

Function addDisabledUserAgentId

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

Source from the content-addressed store, hash-verified

166}
167
168export async function addDisabledUserAgentId(
169 agentId: string
170): Promise<boolean> {
171 try {
172 const res = await requestJson(
173 API_ENDPOINTS.memory.config.disableUserAgentAdd,
174 {
175 method: "POST",
176 headers: getAuthHeaders(),
177 body: JSON.stringify({ agent_id: agentId }),
178 }
179 );
180 return !!res?.success;
181 } catch (e) {
182 log.error("addDisabledUserAgentId error", e);
183 return false;
184 }
185}
186
187export async function removeDisabledUserAgentId(
188 agentId: string

Callers 1

useMemoryFunction · 0.90

Calls 3

getAuthHeadersFunction · 0.90
errorMethod · 0.80
requestJsonFunction · 0.70

Tested by

no test coverage detected