pub enum StructuredOutputSupport {
Native,
ToolForcing,
}Expand description
How a provider satisfies a ResponseFormat
structured-output request.
The structured-output runner consults this to decide how to shape the request and where to read the final structured value from the response.
Variants§
Native
The provider applies the schema natively (JSON-mode /
structured-outputs) when it sees request.response_format. The final
structured value is the JSON in the assistant’s text output.
ToolForcing
The provider has no native JSON-schema mode. The runner injects a
single forced “respond” tool whose input_schema is the output schema,
and reads the structured value from that tool call’s input.
Trait Implementations§
Source§impl Clone for StructuredOutputSupport
impl Clone for StructuredOutputSupport
Source§fn clone(&self) -> StructuredOutputSupport
fn clone(&self) -> StructuredOutputSupport
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 StructuredOutputSupport
Source§impl Debug for StructuredOutputSupport
impl Debug for StructuredOutputSupport
impl Eq for StructuredOutputSupport
Source§impl PartialEq for StructuredOutputSupport
impl PartialEq for StructuredOutputSupport
Source§fn eq(&self, other: &StructuredOutputSupport) -> bool
fn eq(&self, other: &StructuredOutputSupport) -> bool
Tests for
self and other values to be equal, and is used by ==.impl StructuralPartialEq for StructuredOutputSupport
Auto Trait Implementations§
impl Freeze for StructuredOutputSupport
impl RefUnwindSafe for StructuredOutputSupport
impl Send for StructuredOutputSupport
impl Sync for StructuredOutputSupport
impl Unpin for StructuredOutputSupport
impl UnsafeUnpin for StructuredOutputSupport
impl UnwindSafe for StructuredOutputSupport
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
Compare self to
key and return true if they are equal.