pub struct PermissionAutoApproval {
pub failure_reason: Option<AutoApprovalJudgeFailureReason>,
pub model: Option<String>,
pub reason: Option<String>,
pub recommendation: AutoApprovalRecommendation,
}Expand description
Auto-approval judge information attached to a permission request. Present (non-null) only when the session’s allow-all mode is “auto”; its absence means auto mode was off and the judge did not evaluate the request. The recommendation conveys the judge’s disposition for this request.
Experimental. This type is part of an experimental wire-protocol surface and may change or be removed in future SDK or CLI releases.
Fields§
§failure_reason: Option<AutoApprovalJudgeFailureReason>Classified cause of an error recommendation. Absent for every other recommendation.
model: Option<String>Model id that produced the recommendation, when the judge was consulted and reported one. Absent for excluded (the judge was not consulted) and for failures that occurred before a model was selected.
reason: Option<String>Human-readable reason for the judge’s recommendation, when available.
recommendation: AutoApprovalRecommendationThe auto-approval safety judge’s outcome for this request.
Trait Implementations§
Source§impl Clone for PermissionAutoApproval
impl Clone for PermissionAutoApproval
Source§fn clone(&self) -> PermissionAutoApproval
fn clone(&self) -> PermissionAutoApproval
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more