Enum LlmRequestPayloadPolicy
pub enum LlmRequestPayloadPolicy {
Off,
Redacted,
Full,
}Expand description
LLM request payload capture policy. Mirrors ToolIoPolicy but gates the
prompt/messages on each llm_request. Unlike tool I/O, an unknown or
empty value resolves to Self::Off so the prompt is never captured
unless the operator explicitly opts in.
Variants§
Off
Only messages_count on the request event. No payload.
Redacted
Leak-scan + truncate to truncate_bytes.
Full
Full payload, still leak-scanned. No truncation.
Implementations§
Trait Implementations§
Source§impl Clone for LlmRequestPayloadPolicy
impl Clone for LlmRequestPayloadPolicy
Source§fn clone(&self) -> LlmRequestPayloadPolicy
fn clone(&self) -> LlmRequestPayloadPolicy
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · §fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for LlmRequestPayloadPolicy
impl Debug for LlmRequestPayloadPolicy
Source§impl PartialEq for LlmRequestPayloadPolicy
impl PartialEq for LlmRequestPayloadPolicy
Source§fn eq(&self, other: &LlmRequestPayloadPolicy) -> bool
fn eq(&self, other: &LlmRequestPayloadPolicy) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Copy for LlmRequestPayloadPolicy
impl Eq for LlmRequestPayloadPolicy
impl StructuralPartialEq for LlmRequestPayloadPolicy
Auto Trait Implementations§
impl Freeze for LlmRequestPayloadPolicy
impl RefUnwindSafe for LlmRequestPayloadPolicy
impl Send for LlmRequestPayloadPolicy
impl Sync for LlmRequestPayloadPolicy
impl Unpin for LlmRequestPayloadPolicy
impl UnsafeUnpin for LlmRequestPayloadPolicy
impl UnwindSafe for LlmRequestPayloadPolicy
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