pub struct ProfiledProvider { /* private fields */ }Expand description
Profiled provider — wraps GenericProvider with ModelProfile data.
Overrides capabilities() and info() from the profile,
replacing the boilerplate MimoProvider/DeepSeekProvider/QwenProvider wrappers.
Implementations§
Source§impl ProfiledProvider
impl ProfiledProvider
pub fn new(inner: GenericProvider, profile: ModelProfile) -> Self
Trait Implementations§
Source§impl LlmProvider for ProfiledProvider
impl LlmProvider for ProfiledProvider
Source§fn stream<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatStream, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn stream<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatStream, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Streaming call (returns chunks in real-time). Read more
Source§fn chat<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn chat<'life0, 'async_trait>(
&'life0 self,
request: ChatRequest,
) -> Pin<Box<dyn Future<Output = Result<ChatResponse, LlmError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Non-streaming call (returns complete result at once). Read more
Source§fn capabilities(&self) -> Capabilities
fn capabilities(&self) -> Capabilities
Get provider capabilities.
Source§fn info(&self) -> ProviderInfo
fn info(&self) -> ProviderInfo
Get provider info.
Auto Trait Implementations§
impl !RefUnwindSafe for ProfiledProvider
impl !UnwindSafe for ProfiledProvider
impl Freeze for ProfiledProvider
impl Send for ProfiledProvider
impl Sync for ProfiledProvider
impl Unpin for ProfiledProvider
impl UnsafeUnpin for ProfiledProvider
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