pub struct OpenAiResponsesConfig {
pub base_url: String,
pub api_key: String,
pub model: ResolvedModelConfig,
pub reasoning_summary: Option<String>,
}Expand description
Deployment-side credentials + endpoint + knobs for the OpenAI Responses API.
The client always operates statelessly (store:false): this harness
owns conversation history itself (persisted to messages.jsonl) and
replays it in full every turn, so it never references OpenAI’s
server-side response storage. Consequently reasoning is round-tripped by
echoing each item’s encrypted_content (requested via include), not by
previous_response_id / item_reference. A stateful (store:true) mode
would require that item-reference machinery, which is intentionally not
implemented — so no store knob is exposed.
Fields§
§base_url: StringFull API prefix including any version segment — e.g.
https://api.openai.com/v1. The /responses route is appended.
api_key: String§model: ResolvedModelConfig§reasoning_summary: Option<String>"auto" → reasoning.summary, which makes the model stream a
human-readable summary of its reasoning (surfaced as thinking
deltas). None omits it — the model still reasons, just silently.
Implementations§
Source§impl OpenAiResponsesConfig
impl OpenAiResponsesConfig
Sourcepub const DEFAULT_BASE_URL: &'static str = "https://api.openai.com/v1"
pub const DEFAULT_BASE_URL: &'static str = "https://api.openai.com/v1"
Default API prefix if the caller doesn’t override base_url.
Trait Implementations§
Source§impl Clone for OpenAiResponsesConfig
impl Clone for OpenAiResponsesConfig
Source§fn clone(&self) -> OpenAiResponsesConfig
fn clone(&self) -> OpenAiResponsesConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more