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)
Trait Implementations§
Source§impl<'de> Deserialize<'de> for Output
impl<'de> Deserialize<'de> for Output
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>,
Auto Trait Implementations§
impl Freeze for Output
impl RefUnwindSafe for Output
impl Send for Output
impl Sync for Output
impl Unpin for Output
impl UnwindSafe for Output
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Pointable for T
impl<T> Pointable for T
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<R, P> ReadPrimitive<R> for P
impl<R, P> ReadPrimitive<R> for P
Source§fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
fn read_from_little_endian(read: &mut R) -> Result<Self, Error>
ReadEndian::read_from_little_endian()
.