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§
fn id(&self) -> &str
fn app_name(&self) -> &str
fn user_id(&self) -> &str
fn state(&self) -> &dyn State
Sourcefn conversation_history(&self) -> Vec<Content>
fn conversation_history(&self) -> Vec<Content>
Returns the conversation history from this session as Content items