Skip to main content

vtcode_core/tools/
names.rs

1/// Use direct tool name without alias resolution.
2/// Alias resolution is now handled by the tool registry inventory
3/// which maintains a mapping of aliases to canonical tool names.
4pub const fn canonical_tool_name(name: &str) -> &str {
5    name
6}
7
8#[test]
9fn test_canonical_tool_name_passes_through() {
10    // With registration-based aliases, this function now just passes through
11    // Alias resolution happens earlier in the inventory layer
12    assert_eq!(canonical_tool_name("list_files"), "list_files");
13
14    assert_eq!(canonical_tool_name("unknown_tool"), "unknown_tool");
15
16    assert_eq!(canonical_tool_name("container.exec"), "container.exec");
17}