pub struct DirectLlmClient { /* private fields */ }Implementations§
Source§impl DirectLlmClient
impl DirectLlmClient
pub fn new(provider: ProviderHandle) -> Self
pub fn with_trace_sink(self, sink: Option<Arc<dyn TraceSink>>) -> Self
pub fn with_trace_context(self, context: TraceContext) -> Self
pub fn provider(&self) -> &ProviderHandle
pub fn provider_mut(&mut self) -> &mut ProviderHandle
pub async fn complete( &mut self, request: DirectRequest, ) -> Result<LlmResponse, DirectLlmError>
Auto Trait Implementations§
impl !RefUnwindSafe for DirectLlmClient
impl !UnwindSafe for DirectLlmClient
impl Freeze for DirectLlmClient
impl Send for DirectLlmClient
impl Sync for DirectLlmClient
impl Unpin for DirectLlmClient
impl UnsafeUnpin for DirectLlmClient
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