Session

Trait Session 

Source
pub trait Session: Send + Sync {
    // Required methods
    fn id(&self) -> &str;
    fn app_name(&self) -> &str;
    fn user_id(&self) -> &str;
    fn state(&self) -> &dyn State;
    fn conversation_history(&self) -> Vec<Content>;
}

Required Methods§

Source

fn id(&self) -> &str

Source

fn app_name(&self) -> &str

Source

fn user_id(&self) -> &str

Source

fn state(&self) -> &dyn State

Source

fn conversation_history(&self) -> Vec<Content>

Returns the conversation history from this session as Content items

Implementors§