pub struct AgentPermissionsConfig {
pub default: PermissionDefault,
pub allow: Vec<String>,
pub ask: Vec<String>,
pub auto: Vec<String>,
pub deny: Vec<String>,
}Fields§
§default: PermissionDefaultDefault permission for unmatched tool calls.
Options: "ask", "allow", "auto", "deny".
allow: Vec<String>Rules that allow matching tool calls without prompting.
Recommended semantic rules: "read", "write", "edit", "bash".
Tool-name rules like "read_file" are normalized to semantic rules
automatically. Supports path specifiers: "read(/src/**/*.rs)".
ask: Vec<String>Rules that require an interactive prompt when they match.
Same syntax as Self::allow.
auto: Vec<String>Rules that auto-approve with classifier-backed review.
Same syntax as Self::allow.
deny: Vec<String>Rules that deny matching tool calls.
Same syntax as Self::allow.
Implementations§
Source§impl AgentPermissionsConfig
impl AgentPermissionsConfig
pub fn new(default: PermissionDefault) -> Self
Trait Implementations§
Source§impl Clone for AgentPermissionsConfig
impl Clone for AgentPermissionsConfig
Source§impl Debug for AgentPermissionsConfig
impl Debug for AgentPermissionsConfig
Source§impl<'de> Deserialize<'de> for AgentPermissionsConfig
impl<'de> Deserialize<'de> for AgentPermissionsConfig
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
impl Eq for AgentPermissionsConfig
Source§impl JsonSchema for AgentPermissionsConfig
impl JsonSchema for AgentPermissionsConfig
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 moreSource§impl PartialEq for AgentPermissionsConfig
impl PartialEq for AgentPermissionsConfig
Source§impl Serialize for AgentPermissionsConfig
impl Serialize for AgentPermissionsConfig
impl StructuralPartialEq for AgentPermissionsConfig
Auto Trait Implementations§
impl Freeze for AgentPermissionsConfig
impl RefUnwindSafe for AgentPermissionsConfig
impl Send for AgentPermissionsConfig
impl Sync for AgentPermissionsConfig
impl Unpin for AgentPermissionsConfig
impl UnsafeUnpin for AgentPermissionsConfig
impl UnwindSafe for AgentPermissionsConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> DeserializeOwned for Twhere
T: for<'de> Deserialize<'de>,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.