pub struct ResponseProperties {
pub previous_response_id: Option<String>,
pub model: Option<ModelIdsResponses>,
pub reasoning: Option<Reasoning>,
pub max_output_tokens: Option<i64>,
pub instructions: Option<String>,
pub text: Option<ResponseProperties_Text>,
pub tools: Option<Vec<Tool>>,
pub tool_choice: Option<ResponseProperties_ToolChoice>,
pub truncation: Option<String>,
}
Fields§
§previous_response_id: Option<String>
The unique ID of the previous response to the model.
model: Option<ModelIdsResponses>
Model ID used to generate the response, like gpt-4o
or o3
.
reasoning: Option<Reasoning>
§max_output_tokens: Option<i64>
An upper bound for the number of tokens that can be generated for a response, including visible output tokens and reasoning tokens.
instructions: Option<String>
Inserts a system (or developer) message as the first item in the model’s context.
text: Option<ResponseProperties_Text>
§tools: Option<Vec<Tool>>
An array of tools the model may call while generating a response.
tool_choice: Option<ResponseProperties_ToolChoice>
§truncation: Option<String>
The truncation strategy to use for the model response.
Trait Implementations§
Source§impl Clone for ResponseProperties
impl Clone for ResponseProperties
Source§fn clone(&self) -> ResponseProperties
fn clone(&self) -> ResponseProperties
Returns a copy of the value. Read more
1.0.0 · 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 ResponseProperties
impl Debug for ResponseProperties
Source§impl Default for ResponseProperties
impl Default for ResponseProperties
Source§fn default() -> ResponseProperties
fn default() -> ResponseProperties
Returns the “default value” for a type. Read more
Auto Trait Implementations§
impl Freeze for ResponseProperties
impl RefUnwindSafe for ResponseProperties
impl Send for ResponseProperties
impl Sync for ResponseProperties
impl Unpin for ResponseProperties
impl UnwindSafe for ResponseProperties
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