pub struct GenaiProvider { /* private fields */ }Implementations§
Source§impl GenaiProvider
impl GenaiProvider
Trait Implementations§
Source§impl Provider for GenaiProvider
impl Provider for GenaiProvider
fn stream<'life0, 'life1, 'life2, 'life3, 'life4, 'async_trait>(
&'life0 self,
model: &'life1 str,
system_prompt: &'life2 str,
messages: &'life3 [AgentMessage],
tools: &'life4 [ToolDef],
) -> Pin<Box<dyn Future<Output = Result<Pin<Box<dyn Stream<Item = StreamEvent> + Send>>>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
'life4: 'async_trait,
Source§fn set_reasoning_effort(&self, level: Option<&str>)
fn set_reasoning_effort(&self, level: Option<&str>)
Update reasoning effort (thinking level) at runtime.
Default implementation is a no-op for providers that don’t support this.
Auto Trait Implementations§
impl !Freeze for GenaiProvider
impl !RefUnwindSafe for GenaiProvider
impl !UnwindSafe for GenaiProvider
impl Send for GenaiProvider
impl Sync for GenaiProvider
impl Unpin for GenaiProvider
impl UnsafeUnpin for GenaiProvider
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