From 431d16363ede42f299dbd32c4e38390713620809 Mon Sep 17 00:00:00 2001 From: sigoden Date: Sun, 1 Dec 2024 07:28:12 +0800 Subject: feat: agent supports dynamic instructions (#1023) * feat: agent supports dynamic instructions * change tool calls' null output to 'TODO' * REPL don't print banner if use agent/rag --- src/main.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src/main.rs') diff --git a/src/main.rs b/src/main.rs index c41b1e7..d8f66f8 100644 --- a/src/main.rs +++ b/src/main.rs @@ -18,7 +18,6 @@ use crate::config::{ ensure_parent_exists, list_agents, load_env_file, Config, GlobalConfig, Input, WorkingMode, CODE_ROLE, EXPLAIN_SHELL_ROLE, SHELL_ROLE, TEMP_SESSION_NAME, }; -use crate::function::need_send_tool_results; use crate::render::render_error; use crate::repl::Repl; use crate::utils::*; @@ -185,7 +184,7 @@ async fn start_directive( .write() .after_chat_completion(&input, &output, &tool_results)?; - if need_send_tool_results(&tool_results) { + if !tool_results.is_empty() { start_directive( config, input.merge_tool_results(output, tool_results), -- cgit v1.2.3