Skip to main content

ExtractionProvider

Trait ExtractionProvider 

Source
pub trait ExtractionProvider: Sync {
    // Required methods
    fn name(&self) -> &str;
    fn extract(
        &self,
        input: &ExtractionInput,
    ) -> Result<ExtractionOutput, ExtractionError>;
}
Expand description

Converts source material into typed mentions and relations.

Providers may wrap AST parsers, issue trackers, language models, or future Weavatrix search packages. The memory core owns validation, entity linking, provenance, and event creation.

Required Methods§

Source

fn name(&self) -> &str

Source

fn extract( &self, input: &ExtractionInput, ) -> Result<ExtractionOutput, ExtractionError>

Extracts candidates without mutating memory.

§Errors

Returns a provider-labelled failure. The engine rejects failures whose provider identity does not match Self::name.

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§