feat: update the deny call response (#1741)
This commit is contained in:
@@ -361,7 +361,7 @@ impl Agent for TruncateAgent {
|
|||||||
// User declined - add declined response
|
// User declined - add declined response
|
||||||
message_tool_response = message_tool_response.with_tool_response(
|
message_tool_response = message_tool_response.with_tool_response(
|
||||||
request.id.clone(),
|
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
|
break; // Exit the loop once the matching `req_id` is found
|
||||||
|
|||||||
Reference in New Issue
Block a user