feat: add VLM Summary processor config support
新增: - VLM Summary 處理器配置 - Rust 原生實現(無需外部工具) 工具: - rust (priority=0, enabled=true) - Rust 原生實現 - 模型: gemma-4-12b-it - max_tokens: 800 - use_vision: true 配置參數: - LLM 模型配置 - 視覺輸入支持 - Token 限制 ToolSelector: - vlm_summary 返回 Rust 原生標記 - 無需外部二進制文件 目的: - 統一所有處理器配置架構 - 支持 LLM 參數配置
This commit is contained in:
@@ -185,6 +185,22 @@
|
|||||||
],
|
],
|
||||||
"default_tool": "python",
|
"default_tool": "python",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
},
|
||||||
|
"vlm_summary": {
|
||||||
|
"tools": [
|
||||||
|
{
|
||||||
|
"name": "rust",
|
||||||
|
"priority": 0,
|
||||||
|
"enabled": true,
|
||||||
|
"parameters": {
|
||||||
|
"model": "gemma-4-12b-it",
|
||||||
|
"max_tokens": 800,
|
||||||
|
"use_vision": true
|
||||||
|
}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_tool": "rust",
|
||||||
|
"enabled": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -172,6 +172,13 @@ impl ToolSelector {
|
|||||||
executor.rust_binary_path("rust_tkg")
|
executor.rust_binary_path("rust_tkg")
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// VLM Summary tools (Rust native implementation)
|
||||||
|
("vlm_summary", "rust") => {
|
||||||
|
// VLM Summary is implemented in Rust, no external binary needed
|
||||||
|
// Return a placeholder path to indicate availability
|
||||||
|
Some(std::path::PathBuf::from("rust_vlm_summary"))
|
||||||
|
}
|
||||||
|
|
||||||
_ => None,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user