(providerId: string)
| 115 | * backend rejects `null` providers with a clear error rather than guessing. |
| 116 | */ |
| 117 | export function providerApiKeyEnvVar(providerId: string): string | null { |
| 118 | return isPiSupportedProvider(providerId) ? PROVIDER_API_KEY_ENV_VARS[providerId] : null |
| 119 | } |
| 120 | |
| 121 | /** Maps a Sim thinking level to Pi's `ThinkingLevel` (shared by both backends). */ |
| 122 | export function mapThinkingLevel(level?: string): CreateAgentSessionOptions['thinkingLevel'] { |
no test coverage detected