adk-studio 0.8.0

Visual development environment for AI agents built with Rust Agent Development Kit (ADK-Rust)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
use crate::storage::FileStorage;
use std::sync::Arc;
use tokio::sync::RwLock;

/// Shared server state
#[derive(Clone)]
pub struct AppState {
    pub storage: Arc<RwLock<FileStorage>>,
}

impl AppState {
    pub fn new(storage: FileStorage) -> Self {
        Self {
            storage: Arc::new(RwLock::new(storage)),
        }
    }
}