feat: update the deny call response (#1741)

This commit is contained in:
Yingjie He
2025-03-18 12:47:13 -07:00
committed by GitHub
parent 4c03b34058
commit 60d1bef746
+1 -1
View File
@@ -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