pub struct AiManager { /* private fields */ }Expand description
Operations for the “ai” API area.
Implementations§
Source§impl AiManager
impl AiManager
pub async fn ask(&self, body: AiAsk) -> Result<AiResponseFull, Error>
pub async fn create_text_gen( &self, body: AiTextGen, ) -> Result<AiResponse, Error>
pub async fn get_agent_default( &self, mode: GetAgentDefaultMode, opts: Option<AiGetAgentDefaultOptions>, ) -> Result<AiAgent, Error>
pub async fn extract(&self, body: AiExtract) -> Result<AiResponse, Error>
pub async fn create_extract_structured( &self, body: AiExtractStructured, ) -> Result<AiExtractStructuredResponse, Error>
Auto Trait Implementations§
impl !RefUnwindSafe for AiManager
impl !UnwindSafe for AiManager
impl Freeze for AiManager
impl Send for AiManager
impl Sync for AiManager
impl Unpin for AiManager
impl UnsafeUnpin for AiManager
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