pub struct SyncResponsesApi { /* private fields */ }Expand description
Blocking wrapper for ResponsesApi.
Implementations§
Source§impl SyncResponsesApi
impl SyncResponsesApi
Sourcepub fn create(&self, model: impl Into<String>) -> SyncCreateResponseBuilder
pub fn create(&self, model: impl Into<String>) -> SyncCreateResponseBuilder
Create a blocking response request builder.
Sourcepub fn deferred(
&self,
response_id: impl Into<String>,
) -> SyncDeferredResponsePoller
pub fn deferred( &self, response_id: impl Into<String>, ) -> SyncDeferredResponsePoller
Create a blocking deferred-response poller.
Sourcepub fn chat(&self, model: impl Into<String>) -> SyncStatefulChat
pub fn chat(&self, model: impl Into<String>) -> SyncStatefulChat
Create a blocking stateful chat handle.
Trait Implementations§
Source§impl Clone for SyncResponsesApi
impl Clone for SyncResponsesApi
Source§fn clone(&self) -> SyncResponsesApi
fn clone(&self) -> SyncResponsesApi
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for SyncResponsesApi
impl !RefUnwindSafe for SyncResponsesApi
impl Send for SyncResponsesApi
impl Sync for SyncResponsesApi
impl Unpin for SyncResponsesApi
impl UnsafeUnpin for SyncResponsesApi
impl !UnwindSafe for SyncResponsesApi
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