Skip to main content

Source

Trait Source 

Source
pub trait Source: Send + Sync {
    type Error;

    // Required methods
    fn id(&self) -> &str;
    fn load(&self) -> Result<Vec<ContextItem>, Self::Error>;
}
Expand description

Loads context without coupling the core to a storage or agent framework.

Required Associated Types§

Required Methods§

Source

fn id(&self) -> &str

Source

fn load(&self) -> Result<Vec<ContextItem>, Self::Error>

Implementors§