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

Function mapToThinkingLevel

apps/sim/providers/google/utils.ts:338–351  ·  view source on GitHub ↗
(level: string)

Source from the content-addressed store, hash-verified

336 * Maps string level to ThinkingLevel enum
337 */
338export function mapToThinkingLevel(level: string): ThinkingLevel {
339 switch (level.toLowerCase()) {
340 case 'minimal':
341 return ThinkingLevel.MINIMAL
342 case 'low':
343 return ThinkingLevel.LOW
344 case 'medium':
345 return ThinkingLevel.MEDIUM
346 case 'high':
347 return ThinkingLevel.HIGH
348 default:
349 return ThinkingLevel.HIGH
350 }
351}
352
353/**
354 * Result of checking forced tool usage

Callers 1

executeGeminiRequestFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected