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

Function mapToFunctionCallingMode

apps/sim/providers/google/utils.ts:322–333  ·  view source on GitHub ↗

* Maps string mode to FunctionCallingConfigMode enum

(mode: string)

Source from the content-addressed store, hash-verified

320 * Maps string mode to FunctionCallingConfigMode enum
321 */
322function mapToFunctionCallingMode(mode: string): FunctionCallingConfigMode {
323 switch (mode) {
324 case 'AUTO':
325 return FunctionCallingConfigMode.AUTO
326 case 'ANY':
327 return FunctionCallingConfigMode.ANY
328 case 'NONE':
329 return FunctionCallingConfigMode.NONE
330 default:
331 return FunctionCallingConfigMode.AUTO
332 }
333}
334
335/**
336 * Maps string level to ThinkingLevel enum

Callers 1

checkForForcedToolUsageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected