pub enum ExtractMechanism {
JsonSchema,
ToolCall,
Grammar,
JsonMode,
}Expand description
How structured output is enforced (§7.4). Recorded in the ExtractorId hash.
Variants§
JsonSchema
Provider-native JSON Schema structured output (OpenAI).
ToolCall
Forced tool call (Anthropic).
Grammar
GBNF grammar-constrained decoding (local GGUF path, §9.4 D28). The grammar is generated from the predicate registry (P4).
JsonMode
JSON mode without schema enforcement (weakest; validator is the only gate).
Trait Implementations§
Source§impl Clone for ExtractMechanism
impl Clone for ExtractMechanism
Source§fn clone(&self) -> ExtractMechanism
fn clone(&self) -> ExtractMechanism
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 ExtractMechanism
Source§impl Debug for ExtractMechanism
impl Debug for ExtractMechanism
Source§impl<'de> Deserialize<'de> for ExtractMechanism
impl<'de> Deserialize<'de> for ExtractMechanism
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 ExtractMechanism
Source§impl PartialEq for ExtractMechanism
impl PartialEq for ExtractMechanism
Source§impl Serialize for ExtractMechanism
impl Serialize for ExtractMechanism
impl StructuralPartialEq for ExtractMechanism
Auto Trait Implementations§
impl Freeze for ExtractMechanism
impl RefUnwindSafe for ExtractMechanism
impl Send for ExtractMechanism
impl Sync for ExtractMechanism
impl Unpin for ExtractMechanism
impl UnsafeUnpin for ExtractMechanism
impl UnwindSafe for ExtractMechanism
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