diff --git a/config/processor_tools.json b/config/processor_tools.json index 94a2f16b..45deb546 100644 --- a/config/processor_tools.json +++ b/config/processor_tools.json @@ -116,6 +116,57 @@ ], "default_tool": "swift", "enabled": true + }, + "face_trace": { + "tools": [ + { + "name": "python", + "priority": 0, + "enabled": true, + "parameters": {} + }, + { + "name": "rust", + "priority": 1, + "enabled": false, + "parameters": {} + } + ], + "default_tool": "python", + "enabled": true + }, + "face_deduplicate": { + "tools": [ + { + "name": "python", + "priority": 0, + "enabled": true, + "parameters": {} + }, + { + "name": "rust", + "priority": 1, + "enabled": false, + "parameters": {} + } + ], + "default_tool": "python", + "enabled": true + }, + "scene_vlm_summary": { + "tools": [ + { + "name": "python", + "priority": 0, + "enabled": true, + "parameters": { + "model": "gemma-4-12b-it", + "max_tokens": 300 + } + } + ], + "default_tool": "python", + "enabled": true } } } diff --git a/src/core/processor/tool_selector.rs b/src/core/processor/tool_selector.rs index 7e66cba3..50777d14 100644 --- a/src/core/processor/tool_selector.rs +++ b/src/core/processor/tool_selector.rs @@ -136,6 +136,32 @@ impl ToolSelector { if script.exists() { Some(script) } else { None } } + // Face trace tools + ("face_trace", "python") => { + let script = executor.script_path("face_trace.py"); + if script.exists() { Some(script) } else { None } + } + ("face_trace", "rust") => { + // Future: Rust face trace implementation + executor.rust_binary_path("rust_face_trace") + } + + // Face deduplicate tools + ("face_deduplicate", "python") => { + let script = executor.script_path("face_deduplicate.py"); + if script.exists() { Some(script) } else { None } + } + ("face_deduplicate", "rust") => { + // Future: Rust face deduplicate implementation + executor.rust_binary_path("rust_face_deduplicate") + } + + // Scene VLM summary tools + ("scene_vlm_summary", "python") => { + let script = executor.script_path("scene_vlm_summary.py"); + if script.exists() { Some(script) } else { None } + } + _ => None, } }