adding docstrings for ApprovalRequirement

This commit is contained in:
kevin zhao
2025-11-18 12:38:32 -08:00
parent 89271eccc5
commit 25bf30661b

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 },
}