pub struct OpenAiResponseRequest {Show 22 fields
pub model: String,
pub input: Value,
pub instructions: Option<Value>,
pub max_output_tokens: Option<u32>,
pub background: bool,
pub stream: bool,
pub metadata: BTreeMap<String, String>,
pub tools: Vec<Value>,
pub tool_choice: Option<Value>,
pub previous_response_id: Option<String>,
pub conversation: Option<Value>,
pub reasoning: Option<Value>,
pub temperature: Option<f64>,
pub top_p: Option<f64>,
pub store: Option<bool>,
pub include: Vec<String>,
pub text: Option<Value>,
pub truncation: Option<String>,
pub safety_identifier: Option<String>,
pub prompt_cache_key: Option<String>,
pub agent: Option<OpenAiAgentOptions>,
pub extra: BTreeMap<String, Value>,
}Fields§
§model: String§input: Value§instructions: Option<Value>§max_output_tokens: Option<u32>§background: bool§stream: bool§metadata: BTreeMap<String, String>§tools: Vec<Value>§tool_choice: Option<Value>§previous_response_id: Option<String>§conversation: Option<Value>§reasoning: Option<Value>§temperature: Option<f64>§top_p: Option<f64>§store: Option<bool>§include: Vec<String>§text: Option<Value>§truncation: Option<String>§safety_identifier: Option<String>§prompt_cache_key: Option<String>§agent: Option<OpenAiAgentOptions>Runtime extension. By default model is the Runtime ID. Supplying
runtimeId lets an API gateway expose a different public model alias.
extra: BTreeMap<String, Value>Captures newly added provider fields so the adapter can reject them explicitly instead of silently discarding semantics it cannot preserve.
Trait Implementations§
Source§impl Clone for OpenAiResponseRequest
impl Clone for OpenAiResponseRequest
Source§fn clone(&self) -> OpenAiResponseRequest
fn clone(&self) -> OpenAiResponseRequest
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 OpenAiResponseRequest
impl Debug for OpenAiResponseRequest
Source§impl<'de> Deserialize<'de> for OpenAiResponseRequest
impl<'de> Deserialize<'de> for OpenAiResponseRequest
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 OpenAiResponseRequest
impl PartialEq for OpenAiResponseRequest
Source§impl Serialize for OpenAiResponseRequest
impl Serialize for OpenAiResponseRequest
impl StructuralPartialEq for OpenAiResponseRequest
Auto Trait Implementations§
impl Freeze for OpenAiResponseRequest
impl RefUnwindSafe for OpenAiResponseRequest
impl Send for OpenAiResponseRequest
impl Sync for OpenAiResponseRequest
impl Unpin for OpenAiResponseRequest
impl UnsafeUnpin for OpenAiResponseRequest
impl UnwindSafe for OpenAiResponseRequest
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