pub struct Client { /* private fields */ }Expand description
Asynchronous TypeSafe client. Clone it to share a pooled HTTP connection manager.
Implementations§
Source§impl Client
impl Client
Sourcepub fn builder() -> ClientBuilder
pub fn builder() -> ClientBuilder
Configure a client explicitly.
Sourcepub fn default_model(&self) -> &str
pub fn default_model(&self) -> &str
The resolved default model.
Sourcepub async fn system_one(
&self,
request: SystemOneRequest,
) -> Result<SystemOneResponse, Error>
pub async fn system_one( &self, request: SystemOneRequest, ) -> Result<SystemOneResponse, Error>
Evaluate named questions about text or structured JSON state.
Sourcepub async fn system_one_with_options(
&self,
request: SystemOneRequest,
options: RequestOptions,
) -> Result<SystemOneResponse, Error>
pub async fn system_one_with_options( &self, request: SystemOneRequest, options: RequestOptions, ) -> Result<SystemOneResponse, Error>
Evaluate questions with per-call timeout, retry, headers, or cancellation overrides.
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for Client
impl !RefUnwindSafe for Client
impl !UnwindSafe for Client
impl Send for Client
impl Sync for Client
impl Unpin for Client
impl UnsafeUnpin for Client
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