pub struct AutoPermissionConfig {
pub model: String,
pub probe_model: String,
pub max_consecutive_denials: u32,
pub max_total_denials: u32,
pub drop_broad_allow_rules: bool,
pub block_rules: Vec<String>,
pub allow_exceptions: Vec<String>,
pub environment: AutoPermissionEnvironmentConfig,
}Expand description
Classifier-backed auto permission review configuration.
Fields§
§model: StringOptional model override for the transcript reviewer.
probe_model: StringOptional model override for the prompt-injection probe.
max_consecutive_denials: u32Maximum consecutive denials before auto permission review falls back.
max_total_denials: u32Maximum total denials before auto permission review falls back.
drop_broad_allow_rules: boolDrop broad code-execution allow rules while auto permission review is active.
block_rules: Vec<String>Classifier block rules applied in stage 2 reasoning.
allow_exceptions: Vec<String>Narrow allow exceptions applied after block rules.
environment: AutoPermissionEnvironmentConfigTrusted environment boundaries for the classifier.
Trait Implementations§
Source§impl Clone for AutoPermissionConfig
impl Clone for AutoPermissionConfig
Source§impl Debug for AutoPermissionConfig
impl Debug for AutoPermissionConfig
Source§impl Default for AutoPermissionConfig
impl Default for AutoPermissionConfig
Source§impl<'de> Deserialize<'de> for AutoPermissionConfig
impl<'de> Deserialize<'de> for AutoPermissionConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl JsonSchema for AutoPermissionConfig
impl JsonSchema for AutoPermissionConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Returns a string that uniquely identifies the schema produced by this type. Read more
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Generates a JSON Schema for this type. Read more
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
Whether JSON Schemas generated for this type should be included directly in parent schemas,
rather than being re-used where possible using the
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for AutoPermissionConfig
impl RefUnwindSafe for AutoPermissionConfig
impl Send for AutoPermissionConfig
impl Sync for AutoPermissionConfig
impl Unpin for AutoPermissionConfig
impl UnsafeUnpin for AutoPermissionConfig
impl UnwindSafe for AutoPermissionConfig
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more