pub struct Chatter { /* private fields */ }Implementations§
source§impl Chatter
impl Chatter
pub fn new(url: &str, api_key: &str, os: &str, shell: &str) -> Self
pub async fn chat(&self, prompt: &str, explain: bool) -> Result<String, Error>
pub fn execute<'life0, 'life_self, 'async_recursion>(
&'life_self self,
text: &'life0 str,
) -> Pin<Box<dyn Future<Output = Result<(), Box<dyn Error>>> + Send + 'async_recursion>>where
'life0: 'async_recursion,
'life_self: 'async_recursion,
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Chatter
impl !RefUnwindSafe for Chatter
impl Send for Chatter
impl Sync for Chatter
impl Unpin for Chatter
impl !UnwindSafe for Chatter
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