pub struct AgentSpec {
pub allowed_paths: Vec<String>,
pub forbidden_paths: Vec<String>,
pub allowed_tools: Vec<String>,
pub max_steps: Option<u32>,
pub budget_cents: Option<u32>,
pub custom_destructive_patterns: Vec<String>,
pub forbidden_mcp_servers: Vec<String>,
}Expand description
Spec constraining what an agent is allowed to do (Layer 1).
Fields§
§allowed_paths: Vec<String>§forbidden_paths: Vec<String>§allowed_tools: Vec<String>§max_steps: Option<u32>§budget_cents: Option<u32>§custom_destructive_patterns: Vec<String>Additional destructive command patterns (case-insensitive substring match).
Extends the built-in default set in PrivilegedOperationAuditControl.
forbidden_mcp_servers: Vec<String>MCP servers whose tool calls are always forbidden (e.g. “database”, “admin”).
Trait Implementations§
Source§impl<'de> Deserialize<'de> for AgentSpec
impl<'de> Deserialize<'de> for AgentSpec
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 AgentSpec
impl StructuralPartialEq for AgentSpec
Auto Trait Implementations§
impl Freeze for AgentSpec
impl RefUnwindSafe for AgentSpec
impl Send for AgentSpec
impl Sync for AgentSpec
impl Unpin for AgentSpec
impl UnsafeUnpin for AgentSpec
impl UnwindSafe for AgentSpec
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