summaryrefslogtreecommitdiffstats
path: root/src/repl/mod.rs
diff options
context:
space:
mode:
authorsigoden <sigoden@gmail.com>2024-11-14 08:14:32 +0800
committerGitHub <noreply@github.com>2024-11-14 08:14:32 +0800
commit80684ec84047bda0299f8fd845b1c97f6fac5c99 (patch)
treef37e377accd664d31a2bfe977521cfc2157a9cd1 /src/repl/mod.rs
parentcfa9217422dfa6cf10bed6e6e3fab0722f58588d (diff)
downloadaichat-80684ec84047bda0299f8fd845b1c97f6fac5c99.tar.gz
refactor: improve tool calls (#995)
- rename MessageContent:ToolResults to MessageContent:ToolCalls - rename ToolResults to MessageContentToolCalls - persist tool_calls to messages.md
Diffstat (limited to 'src/repl/mod.rs')
-rw-r--r--src/repl/mod.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/repl/mod.rs b/src/repl/mod.rs
index 7f971b1..1e84146 100644
--- a/src/repl/mod.rs
+++ b/src/repl/mod.rs
@@ -649,7 +649,7 @@ async fn ask(
ask(
config,
abort_signal,
- input.merge_tool_call(output, tool_results),
+ input.merge_tool_results(output, tool_results),
false,
)
.await