From b776cafab7124e1843debe76e08e7c07a2013f2e Mon Sep 17 00:00:00 2001 From: milan Date: Sun, 26 Jul 2026 14:08:48 +0200 Subject: [PATCH] remove Display impl from Toolusage --- own_mcp/src/mcp/chat.rs | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/own_mcp/src/mcp/chat.rs b/own_mcp/src/mcp/chat.rs index 57bdcd6..b45fc69 100644 --- a/own_mcp/src/mcp/chat.rs +++ b/own_mcp/src/mcp/chat.rs @@ -112,20 +112,6 @@ pub struct ToolUsage { pub result: RestrictedToolCallResult, } -impl std::fmt::Display for ToolUsage { - fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result { - write!(f, "{}(", self.call.function.name)?; - - for (name, value) in self.call.function.arguments.as_object().expect("function.arguments is always an object").iter() { - write!(f, "{name}={value}, ")?; - } - - write!(f, ") = {:?}", self.result)?; - - Ok(()) - } -} - impl AgentChat { pub async fn new( ollama_client: Ollama,