pub struct ResponsesResponse {Show 24 fields
pub id: String,
pub object: String,
pub created_at: i64,
pub status: ResponseStatus,
pub error: Option<Value>,
pub incomplete_details: Option<Value>,
pub instructions: Option<String>,
pub max_output_tokens: Option<u32>,
pub model: String,
pub output: Vec<ResponseOutputItem>,
pub parallel_tool_calls: bool,
pub previous_response_id: Option<String>,
pub reasoning: Option<ReasoningInfo>,
pub store: bool,
pub temperature: Option<f32>,
pub text: Option<TextConfig>,
pub tool_choice: String,
pub tools: Vec<ResponseTool>,
pub top_p: Option<f32>,
pub truncation: Option<String>,
pub usage: Option<ResponsesUsage>,
pub user: Option<String>,
pub safety_identifier: Option<String>,
pub metadata: HashMap<String, Value>,
}Fields§
§id: StringResponse ID
object: StringObject type
created_at: i64Creation timestamp
status: ResponseStatusResponse status
error: Option<Value>Error information if status is failed
incomplete_details: Option<Value>Incomplete details if response was truncated
instructions: Option<String>System instructions used
max_output_tokens: Option<u32>Max output tokens setting
model: StringModel name
output: Vec<ResponseOutputItem>Output items
parallel_tool_calls: boolWhether parallel tool calls are enabled
previous_response_id: Option<String>Previous response ID if this is a continuation
reasoning: Option<ReasoningInfo>Reasoning information
store: boolWhether the response is stored
temperature: Option<f32>Temperature setting used
text: Option<TextConfig>Text format settings
tool_choice: StringTool choice setting
tools: Vec<ResponseTool>Available tools
top_p: Option<f32>Top-p setting used
truncation: Option<String>Truncation strategy used
usage: Option<ResponsesUsage>Usage information
user: Option<String>User identifier
safety_identifier: Option<String>Safety identifier for content moderation
metadata: HashMap<String, Value>Additional metadata
Implementations§
Source§impl ResponsesResponse
impl ResponsesResponse
Sourcepub fn builder(
id: impl Into<String>,
model: impl Into<String>,
) -> ResponsesResponseBuilder
pub fn builder( id: impl Into<String>, model: impl Into<String>, ) -> ResponsesResponseBuilder
Create a builder for constructing a ResponsesResponse
Sourcepub fn is_complete(&self) -> bool
pub fn is_complete(&self) -> bool
Check if the response is complete
Sourcepub fn is_in_progress(&self) -> bool
pub fn is_in_progress(&self) -> bool
Check if the response is in progress
Trait Implementations§
Source§impl Clone for ResponsesResponse
impl Clone for ResponsesResponse
Source§fn clone(&self) -> ResponsesResponse
fn clone(&self) -> ResponsesResponse
Returns a duplicate 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 ResponsesResponse
impl Debug for ResponsesResponse
Source§impl<'de> Deserialize<'de> for ResponsesResponse
impl<'de> Deserialize<'de> for ResponsesResponse
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
Auto Trait Implementations§
impl Freeze for ResponsesResponse
impl RefUnwindSafe for ResponsesResponse
impl Send for ResponsesResponse
impl Sync for ResponsesResponse
impl Unpin for ResponsesResponse
impl UnwindSafe for ResponsesResponse
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