pub enum OutputMode {
Auto,
Text,
NativeJsonSchema,
NativeJsonObject,
Tool,
ToolOrText,
Prompted,
Image,
}Expand description
Output strategy selected for a prepared request.
Variants§
Auto
Select the best available output strategy from model profile and schema.
Text
Plain text output.
NativeJsonSchema
Provider-native JSON schema output.
NativeJsonObject
Provider-native JSON object output.
Tool
Tool/function output.
ToolOrText
Tool/function output while allowing text fallback.
Prompted
Prompted output instructions.
Image
Provider-native image output.
Implementations§
Source§impl OutputMode
impl OutputMode
Sourcepub const fn from_structured_output_mode(mode: StructuredOutputMode) -> Self
pub const fn from_structured_output_mode(mode: StructuredOutputMode) -> Self
Convert profile structured-output mode to request output mode.
Trait Implementations§
Source§impl Clone for OutputMode
impl Clone for OutputMode
Source§fn clone(&self) -> OutputMode
fn clone(&self) -> OutputMode
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for OutputMode
Source§impl Debug for OutputMode
impl Debug for OutputMode
Source§impl<'de> Deserialize<'de> for OutputMode
impl<'de> Deserialize<'de> for OutputMode
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
impl Eq for OutputMode
Source§impl PartialEq for OutputMode
impl PartialEq for OutputMode
Source§impl Serialize for OutputMode
impl Serialize for OutputMode
impl StructuralPartialEq for OutputMode
Auto Trait Implementations§
impl Freeze for OutputMode
impl RefUnwindSafe for OutputMode
impl Send for OutputMode
impl Sync for OutputMode
impl Unpin for OutputMode
impl UnsafeUnpin for OutputMode
impl UnwindSafe for OutputMode
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