pub struct Intelligence { /* private fields */ }Implementations§
Source§impl Intelligence
impl Intelligence
pub fn for_user(&self, user_id: impl Into<String>) -> Result<UserIntelligence>
pub fn cancel(&self, operation_id: Uuid) -> Result<bool>
pub fn receipts(&self) -> Result<Vec<UsageReceipt>>
pub fn daily_usage( &self, day: NaiveDate, ) -> Result<BTreeMap<DailyUsageKey, DailyUsage>>
pub async fn extract_document( &self, document: Document, ) -> Result<DocumentExtraction>
Sourcepub async fn resolve_agent_model(
&self,
requested: &str,
) -> Result<ResolvedAgentModel>
pub async fn resolve_agent_model( &self, requested: &str, ) -> Result<ResolvedAgentModel>
Resolves an exact agent model through the configured provider boundary.
Trait Implementations§
Source§impl Clone for Intelligence
impl Clone for Intelligence
Source§fn clone(&self) -> Intelligence
fn clone(&self) -> Intelligence
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl !RefUnwindSafe for Intelligence
impl !UnwindSafe for Intelligence
impl Freeze for Intelligence
impl Send for Intelligence
impl Sync for Intelligence
impl Unpin for Intelligence
impl UnsafeUnpin for Intelligence
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