(&self, tool_name: &str, current: usize, total: usize, progress: f32)
| 140 | |
| 141 | #[allow(dead_code)] |
| 142 | pub fn tool_progress(&self, tool_name: &str, current: usize, total: usize, progress: f32) { |
| 143 | self.add_event( |
| 144 | EventType::ToolProgress { |
| 145 | tool_name: tool_name.to_string(), |
| 146 | current, |
| 147 | total |
| 148 | }, |
| 149 | format!("⏳ {} - {}/{} ({:.1}%)", tool_name, current, total, progress), |
| 150 | progress, |
| 151 | Some(serde_json::json!({ |
| 152 | "current": current, |
| 153 | "total": total, |
| 154 | })), |
| 155 | ); |
| 156 | } |
| 157 | |
| 158 | pub fn tool_completed(&self, tool_name: &str, progress: f32) { |
| 159 | self.add_event( |