(
response: any,
toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any },
forcedTools: string[],
usedForcedTools: string[]
)
| 46 | * Uses the shared OpenAI-compatible forced tool usage helper. |
| 47 | */ |
| 48 | export function checkForForcedToolUsage( |
| 49 | response: any, |
| 50 | toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any }, |
| 51 | forcedTools: string[], |
| 52 | usedForcedTools: string[] |
| 53 | ): { hasUsedForcedTool: boolean; usedForcedTools: string[] } { |
| 54 | return checkForForcedToolUsageOpenAI(response, toolChoice, 'xAI', forcedTools, usedForcedTools) |
| 55 | } |
no test coverage detected