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

Function mapThinkingLevel

apps/sim/executor/handlers/pi/keys.ts:122–127  ·  view source on GitHub ↗
(level?: string)

Source from the content-addressed store, hash-verified

120
121/** Maps a Sim thinking level to Pi's `ThinkingLevel` (shared by both backends). */
122export function mapThinkingLevel(level?: string): CreateAgentSessionOptions['thinkingLevel'] {
123 if (!level || level === 'none') return 'off'
124 if (level === 'max') return 'xhigh'
125 if (level === 'low' || level === 'medium' || level === 'high') return level
126 return undefined
127}

Callers 2

runCloudPiFunction · 0.90
runLocalPiFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected