pub struct OpenAiLiveResponsesConfig {
pub provider_ref: String,
pub model: String,
pub endpoint_url: String,
pub supports_streaming: bool,
pub max_input_tokens: Option<u32>,
}Expand description
Configuration for the live OpenAI Responses adapter.
Fields§
§provider_ref: StringStable provider ref exposed through ProviderCapabilities.
model: StringOpenAI model id.
endpoint_url: StringAbsolute Responses API endpoint.
supports_streaming: boolWhether this route advertises streaming support.
max_input_tokens: Option<u32>Maximum input tokens advertised by this route.
Implementations§
Source§impl OpenAiLiveResponsesConfig
impl OpenAiLiveResponsesConfig
Sourcepub fn new(model: impl Into<String>) -> Self
pub fn new(model: impl Into<String>) -> Self
Creates a config for OpenAI’s hosted Responses API.
Sourcepub fn provider_ref(self, provider_ref: impl Into<String>) -> Self
pub fn provider_ref(self, provider_ref: impl Into<String>) -> Self
Sets the stable provider ref used in SDK capability metadata.
Sourcepub fn endpoint_url(self, endpoint_url: impl Into<String>) -> Self
pub fn endpoint_url(self, endpoint_url: impl Into<String>) -> Self
Sets a custom endpoint URL for hosted-compatible OpenAI deployments.
Sourcepub fn max_input_tokens(self, max_input_tokens: u32) -> Self
pub fn max_input_tokens(self, max_input_tokens: u32) -> Self
Sets the maximum input token limit advertised for this route.
Trait Implementations§
Source§impl Clone for OpenAiLiveResponsesConfig
impl Clone for OpenAiLiveResponsesConfig
Source§fn clone(&self) -> OpenAiLiveResponsesConfig
fn clone(&self) -> OpenAiLiveResponsesConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for OpenAiLiveResponsesConfig
impl Debug for OpenAiLiveResponsesConfig
Source§impl PartialEq for OpenAiLiveResponsesConfig
impl PartialEq for OpenAiLiveResponsesConfig
Source§fn eq(&self, other: &OpenAiLiveResponsesConfig) -> bool
fn eq(&self, other: &OpenAiLiveResponsesConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.impl Eq for OpenAiLiveResponsesConfig
impl StructuralPartialEq for OpenAiLiveResponsesConfig
Auto Trait Implementations§
impl Freeze for OpenAiLiveResponsesConfig
impl RefUnwindSafe for OpenAiLiveResponsesConfig
impl Send for OpenAiLiveResponsesConfig
impl Sync for OpenAiLiveResponsesConfig
impl Unpin for OpenAiLiveResponsesConfig
impl UnsafeUnpin for OpenAiLiveResponsesConfig
impl UnwindSafe for OpenAiLiveResponsesConfig
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