pub struct Output {Show 14 fields
pub id: Option<String>,
pub type_name: Option<String>,
pub role: Option<String>,
pub status: Option<String>,
pub content: Option<Vec<Content>>,
pub arguments: Option<String>,
pub call_id: Option<String>,
pub name: Option<String>,
pub queries: Option<Vec<String>>,
pub results: Option<Vec<FileSearchCallResult>>,
pub action: Option<Value>,
pub pending_safety_checks: Option<Value>,
pub summary: Option<Value>,
pub encrypted_content: Option<String>,
}Expand description
Individual output item from the AI response.
This can represent different types of outputs:
- Text responses from the AI
- Function calls that should be executed
- Other structured outputs
Fields§
§id: Option<String>Unique identifier for this output
type_name: Option<String>The type of output: “text”, “function_call”, etc.
role: Option<String>The role (e.g., “assistant”) for text outputs
status: Option<String>Status of the output
content: Option<Vec<Content>>Text content (for text outputs)
arguments: Option<String>Function arguments as JSON string (for function_call outputs)
call_id: Option<String>Unique identifier for the function call
name: Option<String>Function name (for function_call outputs)
queries: Option<Vec<String>>The queries used to search for files (for file_search_call outputs)
results: Option<Vec<FileSearchCallResult>>The results of the file search tool call (for file_search_call outputs)
action: Option<Value>An object describing the specific action taken in this web search call (for web_search_call outputs)
pending_safety_checks: Option<Value>The pending safety checks for the computer call (for computer_call outputs)
summary: Option<Value>Reasoning summary content (for reasoning outputs)
encrypted_content: Option<String>The encrypted content of the reasoning item (for reasoning outputs)