pub struct OpenAIConfig {
pub websocket_mode: bool,
pub responses_store: Option<bool>,
pub responses_include: Vec<String>,
pub service_tier: Option<OpenAIServiceTier>,
pub manual_compaction: OpenAIManualCompactionConfig,
pub hosted_shell: OpenAIHostedShellConfig,
pub tool_search: OpenAIToolSearchConfig,
}Expand description
OpenAI-specific provider configuration
Fields§
§websocket_mode: boolEnable Responses API WebSocket transport for non-streaming requests. This is an opt-in path designed for long-running, tool-heavy workflows.
responses_store: Option<bool>Optional Responses API store flag.
Set to false to avoid server-side storage when using Responses-compatible models.
responses_include: Vec<String>Optional Responses API include selectors.
Example: ["reasoning.encrypted_content"] for encrypted reasoning continuity.
service_tier: Option<OpenAIServiceTier>Optional native OpenAI service_tier request parameter.
Leave unset to inherit the Project-level default service tier.
Options: “flex”, “priority”
manual_compaction: OpenAIManualCompactionConfigManual /compact defaults for the native OpenAI standalone compaction endpoint.
hosted_shell: OpenAIHostedShellConfigOptional hosted shell configuration for OpenAI native Responses models.
tool_search: OpenAIToolSearchConfigHosted tool search configuration for OpenAI Responses-compatible models.
Trait Implementations§
Source§impl Clone for OpenAIConfig
impl Clone for OpenAIConfig
Source§fn clone(&self) -> OpenAIConfig
fn clone(&self) -> OpenAIConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for OpenAIConfig
impl Debug for OpenAIConfig
Source§impl Default for OpenAIConfig
impl Default for OpenAIConfig
Source§fn default() -> OpenAIConfig
fn default() -> OpenAIConfig
Source§impl<'de> Deserialize<'de> for OpenAIConfig
impl<'de> Deserialize<'de> for OpenAIConfig
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>,
Source§impl JsonSchema for OpenAIConfig
impl JsonSchema for OpenAIConfig
Source§fn schema_id() -> Cow<'static, str>
fn schema_id() -> Cow<'static, str>
Source§fn json_schema(generator: &mut SchemaGenerator) -> Schema
fn json_schema(generator: &mut SchemaGenerator) -> Schema
Source§fn inline_schema() -> bool
fn inline_schema() -> bool
$ref keyword. Read moreAuto Trait Implementations§
impl Freeze for OpenAIConfig
impl RefUnwindSafe for OpenAIConfig
impl Send for OpenAIConfig
impl Sync for OpenAIConfig
impl Unpin for OpenAIConfig
impl UnsafeUnpin for OpenAIConfig
impl UnwindSafe for OpenAIConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more