Trait CompletionProvider
Source pub trait CompletionProvider: Send + Sync {
// Required method
fn complete<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 mut self,
messages: &'life1 mut Messages,
tools: Option<&'life2 ToolCollection>,
options: Option<&'life3 ChatOptions>,
structured_output: Option<&'life4 Schema>,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, ChatFailure>> + Send + 'async_trait>>
where 'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Self: 'async_trait;
// Provided method
fn metadata(&self) -> Option<&ProviderMeta> { ... }
}