pub struct ContentIsolationConfig {
pub enabled: bool,
pub max_content_size: usize,
pub flag_injection_patterns: bool,
pub spotlight_untrusted: bool,
pub quarantine: QuarantineConfig,
}Expand description
Configuration for the content isolation pipeline, nested under
[security.content_isolation] in the agent config file.
Fields§
§enabled: boolWhen false, the sanitizer is a no-op: content passes through unchanged.
max_content_size: usizeMaximum byte length of untrusted content before truncation.
flag_injection_patterns: boolWhen true, injection patterns detected in content are recorded as
flags and a warning is prepended to the spotlighting wrapper.
spotlight_untrusted: boolWhen true, untrusted content is wrapped in spotlighting XML delimiters
that instruct the LLM to treat the enclosed text as data, not instructions.
quarantine: QuarantineConfigQuarantine summarizer configuration.
Trait Implementations§
Source§impl Clone for ContentIsolationConfig
impl Clone for ContentIsolationConfig
Source§fn clone(&self) -> ContentIsolationConfig
fn clone(&self) -> ContentIsolationConfig
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ContentIsolationConfig
impl Debug for ContentIsolationConfig
Source§impl Default for ContentIsolationConfig
impl Default for ContentIsolationConfig
Source§fn default() -> ContentIsolationConfig
fn default() -> ContentIsolationConfig
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for ContentIsolationConfig
impl<'de> Deserialize<'de> for ContentIsolationConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentIsolationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<ContentIsolationConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for ContentIsolationConfig
impl PartialEq for ContentIsolationConfig
Source§impl Serialize for ContentIsolationConfig
impl Serialize for ContentIsolationConfig
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,
Serialize this value into the given Serde serializer. Read more
impl StructuralPartialEq for ContentIsolationConfig
Auto Trait Implementations§
impl Freeze for ContentIsolationConfig
impl RefUnwindSafe for ContentIsolationConfig
impl Send for ContentIsolationConfig
impl Sync for ContentIsolationConfig
impl Unpin for ContentIsolationConfig
impl UnsafeUnpin for ContentIsolationConfig
impl UnwindSafe for ContentIsolationConfig
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,
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>
Converts
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>
Converts
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>
Wrap the input message
T in a tonic::Request