(
response: any,
toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any },
forcedTools: string[],
usedForcedTools: string[]
)
| 18 | * Uses the shared OpenAI-compatible forced tool usage helper. |
| 19 | */ |
| 20 | export function checkForForcedToolUsage( |
| 21 | response: any, |
| 22 | toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any }, |
| 23 | forcedTools: string[], |
| 24 | usedForcedTools: string[] |
| 25 | ): { hasUsedForcedTool: boolean; usedForcedTools: string[] } { |
| 26 | return checkForForcedToolUsageOpenAI(response, toolChoice, 'vLLM', forcedTools, usedForcedTools) |
| 27 | } |
no test coverage detected