mirror of
https://github.com/aljazceru/goose.git
synced 2026-02-10 17:14:28 +01:00
fix: improve the prompt when user decline the tool call (#1980)
This commit is contained in:
@@ -379,7 +379,10 @@ 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. Don't try to make the same tool call again. If there is no other ways to do it, it is ok to stop.")]),
|
||||
Ok(vec![Content::text(
|
||||
"The user has declined to run this tool. \
|
||||
DO NOT attempt to call this tool again. \
|
||||
If there are no alternative methods to proceed, clearly explain the situation and STOP.")]),
|
||||
);
|
||||
}
|
||||
break; // Exit the loop once the matching `req_id` is found
|
||||
|
||||
Reference in New Issue
Block a user