( agentId: string )
| 185 | } |
| 186 | |
| 187 | export 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 |
no test coverage detected