#[non_exhaustive]pub struct ResponsesResponse {Show 27 fields
pub id: String,
pub object: String,
pub created_at: i64,
pub completed_at: Option<i64>,
pub background: Option<bool>,
pub conversation: Option<String>,
pub status: ResponseStatus,
pub error: Option<Value>,
pub incomplete_details: Option<IncompleteDetails>,
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 (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.id: StringResponse ID
object: StringObject type
created_at: i64Creation timestamp (unix seconds)
completed_at: Option<i64>Completion timestamp (unix seconds). None until the response reaches
a terminal state (completed, incomplete, failed, cancelled).
background: Option<bool>Whether the response was created in background mode.
conversation: Option<String>Conversation this response is linked to, if any.
status: ResponseStatusResponse status
error: Option<Value>Error information if status is failed
incomplete_details: Option<IncompleteDetails>Incomplete details if the response was truncated (incomplete status).
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
Sourcepub fn is_incomplete(&self) -> bool
pub fn is_incomplete(&self) -> bool
Check if the response terminated as incomplete (max_output_tokens / content_filter)
Trait Implementations§
Source§impl Clone for ResponsesResponse
impl Clone for ResponsesResponse
Source§fn clone(&self) -> ResponsesResponse
fn clone(&self) -> ResponsesResponse
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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>,
Source§impl JsonSchema for ResponsesResponse
impl JsonSchema for ResponsesResponse
Source§fn schema_name() -> String
fn schema_name() -> String
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 is_referenceable() -> bool
fn is_referenceable() -> bool
$ref keyword. Read more