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

Function checkForForcedToolUsage

apps/sim/providers/openrouter/utils.ts:94–107  ·  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

92}
93
94export 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}

Callers 1

index.tsFile · 0.90

Calls 1

Tested by

no test coverage detected