Clear all contexts immediately (synchronous operation)
(&mut self)
| 460 | |
| 461 | /// Clear all contexts immediately (synchronous operation) |
| 462 | pub async fn clear_immediate(&mut self) -> Result<String, String> { |
| 463 | match self.agent_client.clear_all_immediate().await { |
| 464 | Ok(count) => Ok(format!("✅ Successfully cleared {} knowledge base entries", count)), |
| 465 | Err(e) => Err(format!("Failed to clear knowledge base: {}", e)), |
| 466 | } |
| 467 | } |
| 468 | |
| 469 | /// Remove context by path |
| 470 | pub async fn remove_by_path(&mut self, path: &str) -> Result<(), String> { |
no test coverage detected