Skip to main content

BenchBaseSession

Trait BenchBaseSession 

Source
pub trait BenchBaseSession: Send + Sync {
    // Required methods
    fn headless<'life0, 'async_trait>(
        &'life0 mut self,
        message: String,
    ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
       where Self: 'async_trait,
             'life0: 'async_trait;
    fn message_history(&self) -> Conversation;
    fn get_total_token_usage(&self) -> Result<Option<i32>>;
    fn get_session_id(&self) -> Result<String>;
}

Required Methods§

Source

fn headless<'life0, 'async_trait>( &'life0 mut self, message: String, ) -> Pin<Box<dyn Future<Output = Result<()>> + Send + 'async_trait>>
where Self: 'async_trait, 'life0: 'async_trait,

Source

fn message_history(&self) -> Conversation

Source

fn get_total_token_usage(&self) -> Result<Option<i32>>

Source

fn get_session_id(&self) -> Result<String>

Implementors§