MCPcopy Index your code
hub / github.com/simstudioai/sim / checkForForcedToolUsage

Function checkForForcedToolUsage

apps/sim/providers/vllm/utils.ts:20–27  ·  view source on GitHub ↗
(
  response: any,
  toolChoice: string | { type: string; function?: { name: string }; name?: string; any?: any },
  forcedTools: string[],
  usedForcedTools: string[]
)

Source from the content-addressed store, hash-verified

18 * Uses the shared OpenAI-compatible forced tool usage helper.
19 */
20export 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}

Callers 1

index.tsFile · 0.90

Calls 1

Tested by

no test coverage detected