(
response: any,
toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any },
forcedTools: string[],
usedForcedTools: string[]
)
| 92 | } |
| 93 | |
| 94 | export function checkForForcedToolUsage( |
| 95 | response: any, |
| 96 | toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any }, |
| 97 | forcedTools: string[], |
| 98 | usedForcedTools: string[] |
| 99 | ): { hasUsedForcedTool: boolean; usedForcedTools: string[] } { |
| 100 | return checkForForcedToolUsageOpenAI( |
| 101 | response, |
| 102 | toolChoice, |
| 103 | 'OpenRouter', |
| 104 | forcedTools, |
| 105 | usedForcedTools |
| 106 | ) |
| 107 | } |
no test coverage detected