adding docstrings for ApprovalRequirement

This commit is contained in:
kevin zhao
2025-11-19 16:12:01 -08:00
parent fff04c53d5
commit 4560a7727e
+4
View File
@@ -86,10 +86,14 @@ pub(crate) struct ApprovalCtx<'a> {
pub risk: Option<SandboxCommandAssessment>,
}
// Specifies what tool orchestrator should do with a given tool call.
#[derive(Clone, Debug, PartialEq, Eq)]
pub(crate) enum ApprovalRequirement {
// No approval required for this tool call
Skip,
// Approval required for this tool call
NeedsApproval { reason: Option<String> },
// Execution forbidden for this tool call
Forbidden { reason: String },
}