pub trait SimplePrompt:
Debug
+ Send
+ Sync
+ DynClone {
// Required method
fn prompt<'life0, 'async_trait>(
&'life0 self,
prompt: Prompt,
) -> Pin<Box<dyn Future<Output = Result<String, LanguageModelError>> + Send + 'async_trait>>
where Self: 'async_trait,
'life0: 'async_trait;
// Provided method
fn name(&self) -> &'static str { ... }
}
Expand description
Given a string prompt, queries an LLM