pub struct Fact { /* private fields */ }Expand description
Main entry point for FACT functionality
Implementations§
Source§impl Fact
impl Fact
Sourcepub fn with_config(config: FactConfig) -> Self
pub fn with_config(config: FactConfig) -> Self
Create a new FACT instance with custom configuration
Sourcepub async fn process(&self, template_id: &str, context: Value) -> Result<Value>
pub async fn process(&self, template_id: &str, context: Value) -> Result<Value>
Process a query using a cognitive template
Sourcepub fn cache_stats(&self) -> CacheStats
pub fn cache_stats(&self) -> CacheStats
Get cache statistics
Sourcepub fn clear_cache(&self)
pub fn clear_cache(&self)
Clear the cache
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Fact
impl !UnwindSafe for Fact
impl Freeze for Fact
impl Send for Fact
impl Sync for Fact
impl Unpin for Fact
impl UnsafeUnpin for Fact
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