pub struct OllamaProvider { /* private fields */ }Implementations§
Source§impl OllamaProvider
impl OllamaProvider
pub fn new(config: &ProviderConfig) -> Result<Self>
Trait Implementations§
Source§impl LlmProvider for OllamaProvider
impl LlmProvider for OllamaProvider
fn chat_stream( &self, messages: &[Message], tools: Option<&[ToolDef]>, ) -> Result<Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send>>>
fn model_name(&self) -> &str
fn availability_error(&self) -> Option<&str>
Source§fn reasoning_history_policy(&self) -> ReasoningPolicy
fn reasoning_history_policy(&self) -> ReasoningPolicy
Whether historical
reasoning_content should be echoed back to the
provider on subsequent requests. Default Exclude (safe for all
providers that don’t demand it). Providers that hit a thinking-model
API should override.Auto Trait Implementations§
impl Freeze for OllamaProvider
impl !RefUnwindSafe for OllamaProvider
impl Send for OllamaProvider
impl Sync for OllamaProvider
impl Unpin for OllamaProvider
impl UnsafeUnpin for OllamaProvider
impl !UnwindSafe for OllamaProvider
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
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more