pub enum CleaningStrategy {
Gemini,
Anthropic,
OpenAI,
Conservative,
}Expand description
Schema cleaning strategies for different LLM providers.
Variants§
Gemini
Gemini / Google AI / Vertex AI: most restrictive.
Anthropic
Anthropic Claude: moderately permissive, but local refs must be resolved.
OpenAI
OpenAI: most permissive.
Conservative
Conservative common subset.
Implementations§
Source§impl CleaningStrategy
impl CleaningStrategy
Sourcepub fn unsupported_keywords(self) -> &'static [&'static str]
pub fn unsupported_keywords(self) -> &'static [&'static str]
Returns the schema keywords rejected by this strategy.
Trait Implementations§
Source§impl Clone for CleaningStrategy
impl Clone for CleaningStrategy
Source§fn clone(&self) -> CleaningStrategy
fn clone(&self) -> CleaningStrategy
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 CleaningStrategy
Source§impl Debug for CleaningStrategy
impl Debug for CleaningStrategy
impl Eq for CleaningStrategy
Source§impl PartialEq for CleaningStrategy
impl PartialEq for CleaningStrategy
impl StructuralPartialEq for CleaningStrategy
Auto Trait Implementations§
impl Freeze for CleaningStrategy
impl RefUnwindSafe for CleaningStrategy
impl Send for CleaningStrategy
impl Sync for CleaningStrategy
impl Unpin for CleaningStrategy
impl UnsafeUnpin for CleaningStrategy
impl UnwindSafe for CleaningStrategy
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