llmsim 0.2.2

LLM Traffic Simulator - A lightweight, high-performance LLM API simulator
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
// Application State Module

use super::config::Config;
use crate::stats::SharedStats;

/// Shared application state
pub struct AppState {
    pub config: Config,
    pub stats: SharedStats,
}

impl AppState {
    pub fn new(config: Config, stats: SharedStats) -> Self {
        Self { config, stats }
    }
}