pub struct Response {
pub id: String,
pub model: String,
pub output: Vec<OutputItem>,
pub usage: Usage,
pub citations: Option<Vec<String>>,
pub inline_citations: Option<Vec<InlineCitation>>,
pub server_side_tool_usage: Option<ServerSideToolUsage>,
pub tool_calls: Option<Vec<ToolCall>>,
pub system_fingerprint: Option<String>,
}Expand description
Response from the Responses API.
Fields§
§id: StringUnique identifier for this response.
model: StringThe model used for generation.
output: Vec<OutputItem>Output items from the response.
usage: UsageToken usage statistics.
citations: Option<Vec<String>>Citations from search tools.
inline_citations: Option<Vec<InlineCitation>>Inline citations in the response text.
server_side_tool_usage: Option<ServerSideToolUsage>Server-side tool usage statistics.
tool_calls: Option<Vec<ToolCall>>Tool calls made during generation.
system_fingerprint: Option<String>System fingerprint for tracking.
Implementations§
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Response
impl<'de> Deserialize<'de> for Response
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 Response
impl RefUnwindSafe for Response
impl Send for Response
impl Sync for Response
impl Unpin for Response
impl UnsafeUnpin for Response
impl UnwindSafe for Response
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