Skip to main content

SessionProjects

Trait SessionProjects 

Source
pub trait SessionProjects: Send + Sync {
    // Required method
    fn project_of<'life0, 'life1, 'async_trait>(
        &'life0 self,
        session_id: &'life1 str,
    ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait,
             'life1: 'async_trait;
}
Expand description

Which project a conversation is placed in. Recall uses it to keep one project’s conversation history (its episodes) to that project’s turns, and out of other projects’ and personal recall.

Required Methods§

Source

fn project_of<'life0, 'life1, 'async_trait>( &'life0 self, session_id: &'life1 str, ) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait, 'life1: 'async_trait,

The project session_id is placed in; None when it is in none.

Dyn Compatibility§

This trait is dyn compatible.

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

Implementors§