Skip to content

Commit 62b6df0

Browse files
committed
adds description doc for PermissionEvalResult
1 parent 45ab0be commit 62b6df0

File tree

1 file changed

+6
-0
lines changed
  • crates/chat-cli/src/cli/agent

1 file changed

+6
-0
lines changed

crates/chat-cli/src/cli/agent/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,10 +313,16 @@ impl Agent {
313313
}
314314
}
315315

316+
/// Result of evaluating tool permissions, indicating whether a tool should be allowed,
317+
/// require user confirmation, or be denied with specific reasons.
316318
#[derive(Debug, PartialEq)]
317319
pub enum PermissionEvalResult {
320+
/// Tool is allowed to execute without user confirmation
318321
Allow,
322+
/// Tool requires user confirmation before execution
319323
Ask,
324+
/// Denial with specific reasons explaining why the tool was denied
325+
/// Tools are free to overload what these reasons are
320326
Deny(Vec<String>),
321327
}
322328

0 commit comments

Comments
 (0)