MCPcopy Create free account
hub / github.com/KingOfBugbounty/enumrust / tool_progress

Method tool_progress

src/progress.rs:142–156  ·  view source on GitHub ↗
(&self, tool_name: &str, current: usize, total: usize, progress: f32)

Source from the content-addressed store, hash-verified

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(

Callers

nothing calls this directly

Calls 1

add_eventMethod · 0.80

Tested by

no test coverage detected