refactor: support both CSV and list formats for enabled_tools

This commit is contained in:
Dark-Alex-17 committed 2026-06-03 13:58:24 -06:00
1 parent a254d60876
commit ece66448e0
14 files changed
+97 -99

No files matched your search

+2 -1
View File
@@ -196,7 +196,8 @@ pub struct Config {
pub function_calling_support: bool,
pub mapping_tools: IndexMap<String, String>,
pub enabled_tools: Option<String>,
#[serde(default, deserialize_with = "deserialize_csv_or_vec")]
pub enabled_tools: Option<Vec<String>>,
pub visible_tools: Option<Vec<String>>,
pub skills_enabled: bool,