From 01c4f69b4fa7d5fd03a26296eb5f74cacf5a9ba9 Mon Sep 17 00:00:00 2001 From: Accusys Date: Mon, 28 Sep 2026 02:18:17 +0800 Subject: [PATCH] feat: add VLM Summary processor config support MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 新增: - 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 參數配置 --- config/processor_tools.json | 16 ++++++++++++++++ src/core/processor/tool_selector.rs | 7 +++++++ 2 files changed, 23 insertions(+) diff --git a/config/processor_tools.json b/config/processor_tools.json index 65d781a8..2aee7be5 100644 --- a/config/processor_tools.json +++ b/config/processor_tools.json @@ -185,6 +185,22 @@ ], "default_tool": "python", "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 } } } diff --git a/src/core/processor/tool_selector.rs b/src/core/processor/tool_selector.rs index cfaf728a..5a45ec15 100644 --- a/src/core/processor/tool_selector.rs +++ b/src/core/processor/tool_selector.rs @@ -172,6 +172,13 @@ impl ToolSelector { 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, } }