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

Function checkForForcedToolUsage

apps/sim/providers/baseten/utils.ts:28–41  ·  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

26 * Uses the shared OpenAI-compatible forced tool usage helper.
27 */
28export 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 'Baseten',
38 forcedTools,
39 usedForcedTools
40 )
41}

Callers 1

index.tsFile · 0.90

Calls 1

Tested by

no test coverage detected