pub struct RealOneShotClient { /* private fields */ }Expand description
Production OneShotClient that routes through the selected provider.
Implementations§
Source§impl RealOneShotClient
impl RealOneShotClient
Sourcepub fn new(app_server_client_override: Option<Arc<dyn AppServerClient>>) -> Self
pub fn new(app_server_client_override: Option<Arc<dyn AppServerClient>>) -> Self
Creates a client with an optional app-server override.
Production passes None so each provider supplies its native client;
deterministic environments may inject a shared app-server boundary.
Trait Implementations§
Source§impl OneShotClient for RealOneShotClient
impl OneShotClient for RealOneShotClient
Source§fn submit<'life0, 'async_trait>(
&'life0 self,
request: OneShotRequest,
) -> Pin<Box<dyn Future<Output = Result<OneShotSubmission, OneShotError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
fn submit<'life0, 'async_trait>(
&'life0 self,
request: OneShotRequest,
) -> Pin<Box<dyn Future<Output = Result<OneShotSubmission, OneShotError>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
Executes one isolated prompt and returns its parsed response and usage.
Auto Trait Implementations§
impl !RefUnwindSafe for RealOneShotClient
impl !UnwindSafe for RealOneShotClient
impl Freeze for RealOneShotClient
impl Send for RealOneShotClient
impl Sync for RealOneShotClient
impl Unpin for RealOneShotClient
impl UnsafeUnpin for RealOneShotClient
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> IntoMaybeUndefined<T> for T
impl<T> IntoMaybeUndefined<T> for T
Source§fn into_maybe_undefined(self) -> MaybeUndefined<T>
fn into_maybe_undefined(self) -> MaybeUndefined<T>
Converts this value into a three-state builder argument.
Source§impl<T> IntoOption<T> for T
impl<T> IntoOption<T> for T
Source§fn into_option(self) -> Option<T>
fn into_option(self) -> Option<T>
Converts this value into an optional builder argument.