pub enum ModelOutput {
Message(OutputMessage),
FunctionCall(FunctionToolCall),
Reasoning(Reasoning),
WebSearch(WebSearchCall),
FileSearch(FileSearchCall),
CodeInterpreter(CodeInterpreterCall),
Mcp(McpCall),
Custom(CustomToolCall),
}Expand description
Model output.
Variants§
Message(OutputMessage)
An output message from the model.
FunctionCall(FunctionToolCall)
A function tool call.
Reasoning(Reasoning)
Reasoning done by the model.
WebSearch(WebSearchCall)
A web search tool call.
FileSearch(FileSearchCall)
A file search tool call.
CodeInterpreter(CodeInterpreterCall)
A code interpreter tool call.
Mcp(McpCall)
A MCP tool call.
Custom(CustomToolCall)
A custom tool call.
Trait Implementations§
Source§impl Clone for ModelOutput
impl Clone for ModelOutput
Source§fn clone(&self) -> ModelOutput
fn clone(&self) -> ModelOutput
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for ModelOutput
impl Debug for ModelOutput
Source§impl Default for ModelOutput
impl Default for ModelOutput
Source§impl<'de> Deserialize<'de> for ModelOutput
impl<'de> Deserialize<'de> for ModelOutput
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
Source§impl PartialEq for ModelOutput
impl PartialEq for ModelOutput
Source§impl Serialize for ModelOutput
impl Serialize for ModelOutput
impl StructuralPartialEq for ModelOutput
Auto Trait Implementations§
impl Freeze for ModelOutput
impl RefUnwindSafe for ModelOutput
impl Send for ModelOutput
impl Sync for ModelOutput
impl Unpin for ModelOutput
impl UnwindSafe for ModelOutput
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