consolidate model filter chain into single struct, move validation to config generator

This commit is contained in:
Adil Hafeez 2026-03-13 13:38:40 -07:00
parent e41e9e1cf4
commit edf782f07a
No known key found for this signature in database
GPG key ID: 9B18EF7691369645
4 changed files with 54 additions and 54 deletions

View file

@ -36,6 +36,14 @@ pub struct AgentFilterChain {
pub filter_chain: Option<Vec<String>>,
}
/// Resolved filter chain for a model listener: the ordered filter IDs
/// together with the agent definitions they reference.
#[derive(Debug, Clone)]
pub struct ModelFilterChain {
pub filter_ids: Vec<String>,
pub agents: HashMap<String, Agent>,
}
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
#[serde(rename_all = "lowercase")]
pub enum ListenerType {