pub struct AiInterpreter { /* private fields */ }
Implementations§
Source§impl AiInterpreter
impl AiInterpreter
pub fn new(config: &OmnivoreConfig) -> Result<Self>
pub async fn interpret_request( &self, user_request: &str, url: &str, ) -> Result<ExtractionIntent>
pub async fn suggest_selectors( &self, html_sample: &str, target_type: &str, ) -> Result<Vec<String>>
pub async fn classify_content( &self, text: &str, ) -> Result<ContentClassification>
Trait Implementations§
Source§impl Clone for AiInterpreter
impl Clone for AiInterpreter
Source§fn clone(&self) -> AiInterpreter
fn clone(&self) -> AiInterpreter
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 moreAuto Trait Implementations§
impl Freeze for AiInterpreter
impl !RefUnwindSafe for AiInterpreter
impl Send for AiInterpreter
impl Sync for AiInterpreter
impl Unpin for AiInterpreter
impl !UnwindSafe for AiInterpreter
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