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 with_model(model: impl Into<String>) -> Self
pub fn with_model(model: impl Into<String>) -> Self
Create with specific model
Trait Implementations§
Source§impl Default for ClaudeFallback
impl Default for ClaudeFallback
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>,
use_aisp_prompt: bool,
) -> Pin<Box<dyn Future<Output = Result<LlmResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: '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>,
use_aisp_prompt: bool,
) -> Pin<Box<dyn Future<Output = Result<LlmResult>> + Send + 'async_trait>>where
Self: 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
'life3: 'async_trait,
Convert prose to AISP using LLM Read more
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