Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
yingjiehe-xyz committed Feb 25, 2025
1 parent 9e99e6f commit d5f3f90
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions crates/goose/src/agents/agent_permission.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,13 +86,13 @@ pub async fn detect_read_only_tools(
.complete(
"You are a good analyst and can detect operations whether they have read-only operations.",
&check_messages,
&vec![tool.clone()],
&[tool.clone()],
)
.await;

// Process the response and return an empty vector if the response is invalid
if let Ok((message, _usage)) = res {
extract_read_only_tools(&message).unwrap_or_else(|| vec![])
extract_read_only_tools(&message).unwrap_or_else(|| Vec::new)
} else {
vec![]
}
Expand Down

0 comments on commit d5f3f90

Please sign in to comment.