pub struct ResponsesBuilder<M = WithoutModel, U = WithoutUrl, T: Transport = ReqwestTransport> { /* private fields */ }Implementations§
Source§impl<M, U, T: Transport> ResponsesBuilder<M, U, T>
impl<M, U, T: Transport> ResponsesBuilder<M, U, T>
pub fn with_api_key(self, api_key: impl Into<String>) -> Self
pub fn with_reasoning_effort(self, effort: impl Into<String>) -> Self
pub fn without_previous_response_id(self) -> Self
pub fn with_store(self, store: bool) -> Self
pub fn with_description(self, description: impl Into<String>) -> Self
pub fn with_metadata( self, key: impl Into<String>, value: impl Any + Send + Sync + 'static, ) -> Self
Sourcepub fn with_meta(self, meta: ProviderMeta) -> Self
pub fn with_meta(self, meta: ProviderMeta) -> Self
Replace the whole ProviderMeta. Useful for wrappers that
accumulate metadata on their own builder and want to pass it
through wholesale at construction time.
Sourcepub fn with_tool_declaration(self, declaration: Value) -> Self
pub fn with_tool_declaration(self, declaration: Value) -> Self
Append a single pre-materialized tool declaration. Wrappers use this to inject their provider-specific native tools without coupling the wire layer to a NativeTool trait.
pub fn with_tool_declarations( self, declarations: impl IntoIterator<Item = Value>, ) -> Self
pub fn with_transport<T2: Transport>( self, transport: T2, ) -> ResponsesBuilder<M, U, T2>
Source§impl<U, T: Transport> ResponsesBuilder<WithoutModel, U, T>
impl<U, T: Transport> ResponsesBuilder<WithoutModel, U, T>
pub fn with_model( self, model: impl Into<String>, ) -> ResponsesBuilder<WithModel, U, T>
Source§impl<M, T: Transport> ResponsesBuilder<M, WithoutUrl, T>
impl<M, T: Transport> ResponsesBuilder<M, WithoutUrl, T>
pub fn with_base_url( self, url: impl Into<String>, ) -> ResponsesBuilder<M, WithUrl, T>
Source§impl<T: Transport> ResponsesBuilder<WithModel, WithUrl, T>
impl<T: Transport> ResponsesBuilder<WithModel, WithUrl, T>
pub fn build(self) -> ResponsesClient<T>
Trait Implementations§
Auto Trait Implementations§
impl<M = WithoutModel, U = WithoutUrl, T = ReqwestTransport> !RefUnwindSafe for ResponsesBuilder<M, U, T>
impl<M = WithoutModel, U = WithoutUrl, T = ReqwestTransport> !UnwindSafe for ResponsesBuilder<M, U, T>
impl<M, U, T> Freeze for ResponsesBuilder<M, U, T>where
T: Freeze,
impl<M, U, T> Send for ResponsesBuilder<M, U, T>
impl<M, U, T> Sync for ResponsesBuilder<M, U, T>
impl<M, U, T> Unpin for ResponsesBuilder<M, U, T>
impl<M, U, T> UnsafeUnpin for ResponsesBuilder<M, U, T>where
T: UnsafeUnpin,
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