Skip to main content

EntityExtractionCallback

Type Alias EntityExtractionCallback 

Source
pub type EntityExtractionCallback = Arc<dyn Fn(&str, &MemoryId) -> Result<EntityExtractionStats> + Send + Sync>;
Expand description

Callback type for post-capture entity extraction.

Called after successful capture with the memory content and ID. Should extract entities and store them in the knowledge graph. Errors are logged but do not fail the capture operation.

Aliased Typeยง

pub struct EntityExtractionCallback { /* private fields */ }