adk_session/
state.rs

1use serde_json::Value;
2use std::collections::HashMap;
3
4pub trait State: Send + Sync {
5    fn get(&self, key: &str) -> Option<Value>;
6    fn set(&mut self, key: String, value: Value);
7    fn all(&self) -> HashMap<String, Value>;
8}
9
10pub trait ReadonlyState: Send + Sync {
11    fn get(&self, key: &str) -> Option<Value>;
12    fn all(&self) -> HashMap<String, Value>;
13}