pub struct SecurityConfig {
pub redact_secrets: bool,
pub autonomy_level: AutonomyLevel,
pub content_isolation: ContentIsolationConfig,
pub exfiltration_guard: ExfiltrationGuardConfig,
pub memory_validation: MemoryWriteValidationConfig,
pub pii_filter: PiiFilterConfig,
pub rate_limit: RateLimitConfig,
pub pre_execution_verify: PreExecutionVerifierConfig,
pub guardrail: GuardrailConfig,
pub response_verification: ResponseVerificationConfig,
pub causal_ipi: CausalIpiConfig,
}Expand description
Agent security configuration, nested under [security] in TOML.
Aggregates all security-related subsystems: content isolation, exfiltration guards, memory write validation, PII filtering, rate limiting, prompt injection screening, and response verification.
§Example (TOML)
[security]
redact_secrets = true
autonomy_level = "moderate"
[security.rate_limit]
enabled = true
shell_calls_per_minute = 20Fields§
§redact_secrets: boolAutomatically redact detected secrets from tool outputs before they reach the LLM.
Default: true.
autonomy_level: AutonomyLevelAutonomy level controlling which tool actions require explicit user confirmation.
content_isolation: ContentIsolationConfig§exfiltration_guard: ExfiltrationGuardConfig§memory_validation: MemoryWriteValidationConfigMemory write validation (enabled by default).
pii_filter: PiiFilterConfigPII filter for tool outputs and debug dumps (opt-in, disabled by default).
rate_limit: RateLimitConfigTool action rate limiter (opt-in, disabled by default).
pre_execution_verify: PreExecutionVerifierConfigPre-execution verifiers (enabled by default).
guardrail: GuardrailConfigLLM-based prompt injection pre-screener (opt-in, disabled by default).
response_verification: ResponseVerificationConfigPost-LLM response verification layer (enabled by default).
causal_ipi: CausalIpiConfigTemporal causal IPI analysis at tool-return boundaries (opt-in, disabled by default).
Trait Implementations§
Source§impl Clone for SecurityConfig
impl Clone for SecurityConfig
Source§fn clone(&self) -> SecurityConfig
fn clone(&self) -> SecurityConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for SecurityConfig
impl Debug for SecurityConfig
Source§impl Default for SecurityConfig
impl Default for SecurityConfig
Source§fn default() -> SecurityConfig
fn default() -> SecurityConfig
Source§impl<'de> Deserialize<'de> for SecurityConfig
impl<'de> Deserialize<'de> for SecurityConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecurityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<SecurityConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for SecurityConfig
impl Serialize for SecurityConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Auto Trait Implementations§
impl Freeze for SecurityConfig
impl RefUnwindSafe for SecurityConfig
impl Send for SecurityConfig
impl Sync for SecurityConfig
impl Unpin for SecurityConfig
impl UnsafeUnpin for SecurityConfig
impl UnwindSafe for SecurityConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T in a tonic::Request