pub struct OpenAiResponsesConfig {
pub provider_ref: String,
pub model: String,
pub endpoint_ref: String,
pub supports_streaming: bool,
pub max_input_tokens: Option<u32>,
}Expand description
Configuration for one OpenAI-compatible Responses adapter route. It is data-only and does not contain credentials or live endpoint handles.
Fields§
§provider_ref: StringStable provider ref exposed through ProviderCapabilities.
model: StringProvider-native model id.
endpoint_ref: StringHost-owned endpoint ref or profile label.
supports_streaming: boolWhether the injected transport supports streaming.
max_input_tokens: Option<u32>Maximum input token limit advertised by this route.
Implementations§
Source§impl OpenAiResponsesConfig
impl OpenAiResponsesConfig
Sourcepub fn new(provider_ref: impl Into<String>, model: impl Into<String>) -> Self
pub fn new(provider_ref: impl Into<String>, model: impl Into<String>) -> Self
Creates a configuration for an OpenAI-compatible Responses route.
Sourcepub fn endpoint_ref(self, endpoint_ref: impl Into<String>) -> Self
pub fn endpoint_ref(self, endpoint_ref: impl Into<String>) -> Self
Sets the host-owned endpoint ref.
Sourcepub fn supports_streaming(self, supports_streaming: bool) -> Self
pub fn supports_streaming(self, supports_streaming: bool) -> Self
Marks whether streaming is supported by the injected transport.
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 OpenAiResponsesConfig
impl Clone for OpenAiResponsesConfig
Source§fn clone(&self) -> OpenAiResponsesConfig
fn clone(&self) -> OpenAiResponsesConfig
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 OpenAiResponsesConfig
impl Debug for OpenAiResponsesConfig
Source§impl<'de> Deserialize<'de> for OpenAiResponsesConfig
impl<'de> Deserialize<'de> for OpenAiResponsesConfig
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl PartialEq for OpenAiResponsesConfig
impl PartialEq for OpenAiResponsesConfig
Source§fn eq(&self, other: &OpenAiResponsesConfig) -> bool
fn eq(&self, other: &OpenAiResponsesConfig) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl Serialize for OpenAiResponsesConfig
impl Serialize for OpenAiResponsesConfig
impl Eq for OpenAiResponsesConfig
impl StructuralPartialEq for OpenAiResponsesConfig
Auto Trait Implementations§
impl Freeze for OpenAiResponsesConfig
impl RefUnwindSafe for OpenAiResponsesConfig
impl Send for OpenAiResponsesConfig
impl Sync for OpenAiResponsesConfig
impl Unpin for OpenAiResponsesConfig
impl UnsafeUnpin for OpenAiResponsesConfig
impl UnwindSafe for OpenAiResponsesConfig
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