MCPcopy Create free account
hub / github.com/Louisym/MiniCC / execute

Method execute

rust/crates/runtime/src/conversation.rs:451–455  ·  view source on GitHub ↗
(&mut self, tool_name: &str, input: &str)

Source from the content-addressed store, hash-verified

449
450impl ToolExecutor for StaticToolExecutor {
451 fn execute(&mut self, tool_name: &str, input: &str) -> Result<String, ToolError> {
452 self.handlers
453 .get_mut(tool_name)
454 .ok_or_else(|| ToolError::new(format!("unknown tool: {tool_name}")))?(input)
455 }
456}
457
458#[cfg(test)]

Callers 1

run_turnMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected