pub struct ScanContext {
pub content: String,
pub system_prompt: Option<String>,
pub agent_block_history: f32,
pub message_count: usize,
}Expand description
Context for a more accurate scan.
Fields§
§content: StringThe content to scan (user message, prompt, etc.)
system_prompt: Option<String>The system prompt, if available
agent_block_history: f32Fraction of this agent’s past calls that were blocked (0.0-1.0)
message_count: usizeNumber of messages in the conversation so far
Trait Implementations§
Source§impl Clone for ScanContext
impl Clone for ScanContext
Source§fn clone(&self) -> ScanContext
fn clone(&self) -> ScanContext
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 ScanContext
impl Debug for ScanContext
Source§impl Default for ScanContext
impl Default for ScanContext
Source§fn default() -> ScanContext
fn default() -> ScanContext
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ScanContext
impl RefUnwindSafe for ScanContext
impl Send for ScanContext
impl Sync for ScanContext
impl Unpin for ScanContext
impl UnsafeUnpin for ScanContext
impl UnwindSafe for ScanContext
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