pub struct OpenAiProvider { /* private fields */ }Implementations§
Source§impl OpenAiProvider
impl OpenAiProvider
pub fn new(config: &ProviderConfig) -> Result<Self>
Trait Implementations§
Source§impl LlmProvider for OpenAiProvider
impl LlmProvider for OpenAiProvider
fn chat_stream( &self, messages: &[Message], tools: Option<&[ToolDef]>, ) -> Result<Pin<Box<dyn Stream<Item = Result<StreamEvent>> + Send>>>
fn model_name(&self) -> &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.fn availability_error(&self) -> Option<&str>
Auto Trait Implementations§
impl Freeze for OpenAiProvider
impl !RefUnwindSafe for OpenAiProvider
impl Send for OpenAiProvider
impl Sync for OpenAiProvider
impl Unpin for OpenAiProvider
impl UnsafeUnpin for OpenAiProvider
impl !UnwindSafe for OpenAiProvider
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