From 60d1bef746beb026af9223312eed09045e4a461b Mon Sep 17 00:00:00 2001 From: Yingjie He Date: Tue, 18 Mar 2025 12:47:13 -0700 Subject: [PATCH] feat: update the deny call response (#1741) --- crates/goose/src/agents/truncate.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/goose/src/agents/truncate.rs b/crates/goose/src/agents/truncate.rs index 298fca8b..ae443320 100644 --- a/crates/goose/src/agents/truncate.rs +++ b/crates/goose/src/agents/truncate.rs @@ -361,7 +361,7 @@ impl Agent for TruncateAgent { // User declined - add declined response message_tool_response = message_tool_response.with_tool_response( request.id.clone(), - Ok(vec![Content::text("User declined to run this tool.")]), + Ok(vec![Content::text("User declined to run this tool. Don't try to make the same tool call again. If there is no other ways to do it, it is ok to stop.")]), ); } break; // Exit the loop once the matching `req_id` is found