pub struct ResponseObject {Show 32 fields
pub id: String,
pub object: String,
pub model: String,
pub status: String,
pub created_at: u64,
pub completed_at: Option<u64>,
pub output: Vec<Value>,
pub usage: Option<ResponseUsage>,
pub instructions: Option<String>,
pub previous_response_id: Option<String>,
pub store: bool,
pub parallel_tool_calls: bool,
pub tool_choice: Value,
pub tools: Vec<Value>,
pub text: Value,
pub truncation: String,
pub service_tier: String,
pub top_logprobs: u32,
pub frequency_penalty: f64,
pub presence_penalty: f64,
pub metadata: Value,
pub temperature: Option<f32>,
pub top_p: Option<f32>,
pub max_output_tokens: Option<u32>,
pub reasoning: Option<ReasoningConfig>,
pub user: Option<String>,
pub safety_identifier: Option<String>,
pub prompt_cache_key: Option<String>,
pub incomplete_details: Option<Value>,
pub error: Option<Value>,
pub background: bool,
pub max_tool_calls: Option<u32>,
}Expand description
A response object returned by POST/GET /v1/responses.
Fields§
§id: String§object: String§model: String§status: String"completed" | "in_progress" | "incomplete"
created_at: u64§completed_at: Option<u64>§output: Vec<Value>The generated output items (messages, reasoning blocks, tool calls, etc.)
usage: Option<ResponseUsage>§instructions: Option<String>§previous_response_id: Option<String>§store: bool§parallel_tool_calls: bool§tool_choice: Value§tools: Vec<Value>§text: Value§truncation: String§service_tier: String§top_logprobs: u32§frequency_penalty: f64§presence_penalty: f64§metadata: Value§temperature: Option<f32>§top_p: Option<f32>§max_output_tokens: Option<u32>§reasoning: Option<ReasoningConfig>§user: Option<String>§safety_identifier: Option<String>§prompt_cache_key: Option<String>§incomplete_details: Option<Value>§error: Option<Value>§background: bool§max_tool_calls: Option<u32>Trait Implementations§
Source§impl Clone for ResponseObject
impl Clone for ResponseObject
Source§impl Debug for ResponseObject
impl Debug for ResponseObject
Source§impl<'de> Deserialize<'de> for ResponseObject
impl<'de> Deserialize<'de> for ResponseObject
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 ResponseObject
impl RefUnwindSafe for ResponseObject
impl Send for ResponseObject
impl Sync for ResponseObject
impl Unpin for ResponseObject
impl UnsafeUnpin for ResponseObject
impl UnwindSafe for ResponseObject
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