From 0ec370b48c951a69459f9232b56df882765ccb52 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sat, 22 Jun 2024 14:07:58 +0800 Subject: refactor: improve clients (#632) --- src/config/input.rs | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/config/input.rs') diff --git a/src/config/input.rs b/src/config/input.rs index b0b0bd9..3a258b9 100644 --- a/src/config/input.rs +++ b/src/config/input.rs @@ -209,13 +209,13 @@ impl Input { self.rag_name.as_deref() } - pub fn merge_tool_call(mut self, output: String, tool_call_results: Vec) -> Self { + pub fn merge_tool_call(mut self, output: String, tool_results: Vec) -> Self { match self.tool_call.as_mut() { - Some(exist_tool_call_results) => { - exist_tool_call_results.0.extend(tool_call_results); - exist_tool_call_results.1 = output; + Some(exist_tool_results) => { + exist_tool_results.0.extend(tool_results); + exist_tool_results.1 = output; } - None => self.tool_call = Some((tool_call_results, output)), + None => self.tool_call = Some((tool_results, output)), } self } -- cgit v1.2.3