Trait swiftide_core::indexing_traits::SimplePrompt

source ·
pub trait SimplePrompt:
    Debug
    + Send
    + Sync {
    // Required method
    fn prompt<'life0, 'async_trait>(
        &'life0 self,
        prompt: Prompt,
    ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
}
Expand description

Given a string prompt, queries an LLM

Required Methods§

source

fn prompt<'life0, 'async_trait>( &'life0 self, prompt: Prompt, ) -> Pin<Box<dyn Future<Output = Result<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Implementors§