(tools: Array<{name: string}>)
| 25 | import {createTools} from '../build/src/tools/tools.js'; |
| 26 | |
| 27 | export function HaveUniqueNames(tools: Array<{name: string}>): boolean { |
| 28 | const toolNames = tools.map(tool => tool.name); |
| 29 | const toolNamesSet = new Set(toolNames); |
| 30 | return toolNamesSet.size === toolNames.length; |
| 31 | } |
| 32 | |
| 33 | function writeToolCallMetricsConfig() { |
| 34 | const outputPath = path.resolve('src/telemetry/tool_call_metrics.json'); |
no outgoing calls
no test coverage detected