Trait ApiClient
Source pub trait ApiClient: Send + Sync {
// Required methods
fn complete<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
options: CompletionOptions,
) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
fn complete_with_tools<'life0, 'async_trait>(
&'life0 self,
messages: Vec<Message>,
options: CompletionOptions,
tool_results: Option<Vec<ToolResult>>,
) -> Pin<Box<dyn Future<Output = Result<(String, Option<Vec<ToolCall>>)>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
}