mirror of
https://github.com/katanemo/plano.git
synced 2026-06-17 15:25:17 +02:00
consolidate model filter chain into single struct, move validation to config generator
This commit is contained in:
parent
e41e9e1cf4
commit
edf782f07a
4 changed files with 54 additions and 54 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue