( agentId: string )
| 166 | } |
| 167 | |
| 168 | export 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 | |
| 187 | export async function removeDisabledUserAgentId( |
| 188 | agentId: string |
no test coverage detected