Trait agent_tk::knowledge_base::KnowledgeBase

source ·
pub trait KnowledgeBase:
    Sync
    + Send
    + DynClone
    + 'static {
    // Required methods
    fn insert_data(
        &self,
        collection: String,
        key: String,
        data: Vec<u8>,
    ) -> Result<()>;
    fn retrieve_data(&self, collection: String, key: String) -> Result<Vec<u8>>;
}
Expand description

Trait for the low level interface to the knowledge base

Required Methods§

source

fn insert_data( &self, collection: String, key: String, data: Vec<u8>, ) -> Result<()>

Insert data

source

fn retrieve_data(&self, collection: String, key: String) -> Result<Vec<u8>>

Retrieve data

Implementors§