(
response: any,
toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any },
forcedTools: string[],
usedForcedTools: string[]
)
| 26 | * Uses the shared OpenAI-compatible forced tool usage helper. |
| 27 | */ |
| 28 | export function checkForForcedToolUsage( |
| 29 | response: any, |
| 30 | toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any }, |
| 31 | forcedTools: string[], |
| 32 | usedForcedTools: string[] |
| 33 | ): { hasUsedForcedTool: boolean; usedForcedTools: string[] } { |
| 34 | return checkForForcedToolUsageOpenAI( |
| 35 | response, |
| 36 | toolChoice, |
| 37 | 'Fireworks', |
| 38 | forcedTools, |
| 39 | usedForcedTools |
| 40 | ) |
| 41 | } |
no test coverage detected