pub struct QuarantineConfig {
pub enabled: bool,
pub sources: Vec<String>,
pub model: String,
pub timeout_ms: u64,
pub fail_strategy: GuardrailFailStrategy,
}Expand description
Configuration for the quarantine summarizer, nested under
[security.content_isolation.quarantine] in the agent config file.
Fields§
§enabled: boolWhen false, quarantine summarization is disabled entirely.
sources: Vec<String>Source kinds to route through the quarantine LLM.
model: StringProvider name passed to create_named_provider.
timeout_ms: u64Maximum time in milliseconds to wait for the quarantine LLM to respond.
When the LLM does not respond within this window, extract_facts returns a timeout
error so the agent can recover rather than stalling indefinitely.
Defaults to 30 000 ms (30 s).
fail_strategy: GuardrailFailStrategyWhat to do when extract_facts fails (timeout, LLM error, or empty response).
Mirrors GuardrailFailStrategy: Closed (the default) substitutes a fixed
“content could not be safely processed” placeholder instead of falling through to
the merely sanitized/spotlighted content, since quarantine sources are, by
definition, the highest-risk content the agent handles. Open preserves the
pre-#6495 behavior of falling back to the sanitized content for
availability-sensitive deployments.
Trait Implementations§
Source§impl Clone for QuarantineConfig
impl Clone for QuarantineConfig
Source§fn clone(&self) -> QuarantineConfig
fn clone(&self) -> QuarantineConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for QuarantineConfig
impl Debug for QuarantineConfig
Source§impl Default for QuarantineConfig
impl Default for QuarantineConfig
Source§fn default() -> QuarantineConfig
fn default() -> QuarantineConfig
Source§impl<'de> Deserialize<'de> for QuarantineConfig
impl<'de> Deserialize<'de> for QuarantineConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<QuarantineConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<QuarantineConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for QuarantineConfig
impl PartialEq for QuarantineConfig
Source§impl Serialize for QuarantineConfig
impl Serialize for QuarantineConfig
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,
impl StructuralPartialEq for QuarantineConfig
Auto Trait Implementations§
impl Freeze for QuarantineConfig
impl RefUnwindSafe for QuarantineConfig
impl Send for QuarantineConfig
impl Sync for QuarantineConfig
impl Unpin for QuarantineConfig
impl UnsafeUnpin for QuarantineConfig
impl UnwindSafe for QuarantineConfig
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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<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