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:
@@ -167,6 +167,24 @@
|
|||||||
],
|
],
|
||||||
"default_tool": "python",
|
"default_tool": "python",
|
||||||
"enabled": true
|
"enabled": true
|
||||||
|
},
|
||||||
|
"tkg": {
|
||||||
|
"tools": [
|
||||||
|
{
|
||||||
|
"name": "python",
|
||||||
|
"priority": 0,
|
||||||
|
"enabled": true,
|
||||||
|
"parameters": {}
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "rust",
|
||||||
|
"priority": 1,
|
||||||
|
"enabled": false,
|
||||||
|
"parameters": {}
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"default_tool": "python",
|
||||||
|
"enabled": true
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -162,6 +162,16 @@ impl ToolSelector {
|
|||||||
if script.exists() { Some(script) } else { None }
|
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,
|
_ => None,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user