diff options
| author | sigoden <sigoden@gmail.com> | 2024-12-01 07:28:12 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-12-01 07:28:12 +0800 |
| commit | 431d16363ede42f299dbd32c4e38390713620809 (patch) | |
| tree | d49f1a25ea152ab9e6be9117b67f0acbe9115164 /src/main.rs | |
| parent | 50bbfc4541bf2cb2ecb28f2fed3b9b3ab7d5005b (diff) | |
| download | aichat-431d16363ede42f299dbd32c4e38390713620809.tar.gz | |
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
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 3 |
1 files changed, 1 insertions, 2 deletions
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), |
