pub struct ValidationAgent { /* private fields */ }Expand description
Agent that validates ProposedFacts and promotes them to Facts.
This is the gateway between untrusted LLM outputs and the trusted context. No LLM output can become a Fact without passing through validation.
Implementations§
Source§impl ValidationAgent
impl ValidationAgent
Sourcepub fn new(config: ValidationConfig) -> Self
pub fn new(config: ValidationConfig) -> Self
Creates a new validation agent with the given config.
Sourcepub fn with_defaults() -> Self
pub fn with_defaults() -> Self
Creates a validation agent with default config.
Trait Implementations§
Source§impl Agent for ValidationAgent
impl Agent for ValidationAgent
Auto Trait Implementations§
impl Freeze for ValidationAgent
impl RefUnwindSafe for ValidationAgent
impl Send for ValidationAgent
impl Sync for ValidationAgent
impl Unpin for ValidationAgent
impl UnwindSafe for ValidationAgent
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