Merge branch 'main' into adil/agents_framework

This commit is contained in:
Adil Hafeez 2025-12-17 16:49:38 -08:00
commit 660f8d433f
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
26 changed files with 2692 additions and 93 deletions

View file

@ -44,6 +44,20 @@ pub struct Listener {
pub port: u16,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct StateStorageConfig {
#[serde(rename = "type")]
pub storage_type: StateStorageType,
pub connection_string: Option<String>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "lowercase")]
pub enum StateStorageType {
Memory,
Postgres,
}
#[derive(Debug, Clone, Serialize, Deserialize)]
pub struct Configuration {
pub version: String,
@ -62,6 +76,7 @@ pub struct Configuration {
pub agents: Option<Vec<Agent>>,
pub filters: Option<Vec<Agent>>,
pub listeners: Vec<Listener>,
pub state_storage: Option<StateStorageConfig>,
}
#[derive(Debug, Clone, Serialize, Deserialize, Default)]