pub struct ClaudeFallback { /* private fields */ }Expand description
Claude SDK fallback provider
Uses Claude models via the claude-agent-sdk-rs crate to convert prose to AISP when deterministic conversion has low confidence.
Implementations§
Source§impl ClaudeFallback
impl ClaudeFallback
Sourcepub fn new() -> ClaudeFallback
pub fn new() -> ClaudeFallback
Create new Claude fallback with default model (sonnet)
Sourcepub fn with_model(model: impl Into<String>) -> ClaudeFallback
pub fn with_model(model: impl Into<String>) -> ClaudeFallback
Create with specific model
Sourcepub fn haiku() -> ClaudeFallback
pub fn haiku() -> ClaudeFallback
Use haiku for simple/fast conversions
Sourcepub fn sonnet() -> ClaudeFallback
pub fn sonnet() -> ClaudeFallback
Use sonnet for balanced conversions
Sourcepub fn opus() -> ClaudeFallback
pub fn opus() -> ClaudeFallback
Use opus for complex conversions
Trait Implementations§
Source§impl Default for ClaudeFallback
impl Default for ClaudeFallback
Source§fn default() -> ClaudeFallback
fn default() -> ClaudeFallback
Returns the “default value” for a type. Read more
Source§impl LlmProvider for ClaudeFallback
impl LlmProvider for ClaudeFallback
Source§fn convert<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
prose: &'life1 str,
tier: ConversionTier,
unmapped: &'life2 [String],
partial_output: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<LlmResult, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
ClaudeFallback: 'async_trait,
fn convert<'life0, 'life1, 'life2, 'life3, 'async_trait>(
&'life0 self,
prose: &'life1 str,
tier: ConversionTier,
unmapped: &'life2 [String],
partial_output: Option<&'life3 str>,
) -> Pin<Box<dyn Future<Output = Result<LlmResult, Error>> + Send + 'async_trait>>where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
ClaudeFallback: 'async_trait,
Convert prose to AISP using LLM Read more
Source§fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
'life0: 'async_trait,
ClaudeFallback: 'async_trait,
fn is_available<'life0, 'async_trait>(
&'life0 self,
) -> Pin<Box<dyn Future<Output = bool> + Send + 'async_trait>>where
'life0: 'async_trait,
ClaudeFallback: 'async_trait,
Check if provider is available
Auto Trait Implementations§
impl Freeze for ClaudeFallback
impl RefUnwindSafe for ClaudeFallback
impl Send for ClaudeFallback
impl Sync for ClaudeFallback
impl Unpin for ClaudeFallback
impl UnwindSafe for ClaudeFallback
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