(agentId: string)
| 150 | } |
| 151 | |
| 152 | export 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 | |
| 168 | export async function addDisabledUserAgentId( |
| 169 | agentId: string |
no test coverage detected