pub trait InputScanner: Scanner {
// Provided method
fn scan_prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
vault: &'life2 Vault,
) -> Pin<Box<dyn Future<Output = Result<ScanResult>> + Send + 'async_trait>>
where Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait { ... }
}Expand description
Input scanner specialization
Scans LLM prompts/inputs before they’re sent to the model
Provided Methods§
Sourcefn scan_prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
vault: &'life2 Vault,
) -> Pin<Box<dyn Future<Output = Result<ScanResult>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
fn scan_prompt<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
prompt: &'life1 str,
vault: &'life2 Vault,
) -> Pin<Box<dyn Future<Output = Result<ScanResult>> + Send + 'async_trait>>where
Self: Sync + 'async_trait,
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Scan a prompt before sending to LLM