feat: add TKG processor config support

新增:
- TKG (Temporal Knowledge Graph) 處理器配置
- ToolSelector 支持 TKG 工具

工具優先級:
1. python (priority=0, enabled=true)
   - 腳本: store_traced_faces.py
2. rust (priority=1, enabled=false)
   - 待實現

ToolSelector 支持:
- store_traced_faces.py
- rust_tkg (未來)

目的:
- 統一所有處理器配置架構
- 支持 TKG 配置驅動
This commit is contained in:
Accusys
2026-09-28 02:10:19 +08:00
parent 83358a951d
commit 782f326a34
2 changed files with 28 additions and 0 deletions
+18
View File
@@ -167,6 +167,24 @@
],
"default_tool": "python",
"enabled": true
},
"tkg": {
"tools": [
{
"name": "python",
"priority": 0,
"enabled": true,
"parameters": {}
},
{
"name": "rust",
"priority": 1,
"enabled": false,
"parameters": {}
}
],
"default_tool": "python",
"enabled": true
}
}
}
+10
View File
@@ -162,6 +162,16 @@ impl ToolSelector {
if script.exists() { Some(script) } else { None }
}
// TKG (Temporal Knowledge Graph) tools
("tkg", "python") => {
let script = executor.script_path("store_traced_faces.py");
if script.exists() { Some(script) } else { None }
}
("tkg", "rust") => {
// Future: Rust TKG implementation
executor.rust_binary_path("rust_tkg")
}
_ => None,
}
}