pub struct OpenAIModel { /* private fields */ }Implementations§
Trait Implementations§
Source§impl LanguageModel for OpenAIModel
impl LanguageModel for OpenAIModel
fn complete<'life0, 'life1, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
fn complete_with_tools<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
_tools: &'life2 [ToolDefinition],
) -> Pin<Box<dyn Future<Output = Result<ModelResponse, ModelError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn model_name(&self) -> &str
fn supports_tools(&self) -> bool
Auto Trait Implementations§
impl Freeze for OpenAIModel
impl RefUnwindSafe for OpenAIModel
impl Send for OpenAIModel
impl Sync for OpenAIModel
impl Unpin for OpenAIModel
impl UnwindSafe for OpenAIModel
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