( config: ToolConfiguration )
| 93 | } |
| 94 | |
| 95 | function buildParentRuntimeAiSettings( |
| 96 | config: ToolConfiguration |
| 97 | ): { modelString?: string; thinkingLevel?: ThinkingLevel } | undefined { |
| 98 | const modelString = coerceNonEmptyString(config.muxEnv?.MUX_MODEL_STRING); |
| 99 | const thinkingLevel = coerceThinkingLevel(config.muxEnv?.MUX_THINKING_LEVEL); |
| 100 | |
| 101 | if (modelString == null && thinkingLevel == null) { |
| 102 | return undefined; |
| 103 | } |
| 104 | |
| 105 | return { |
| 106 | ...(modelString != null ? { modelString } : {}), |
| 107 | ...(thinkingLevel != null ? { thinkingLevel } : {}), |
| 108 | }; |
| 109 | } |
| 110 | |
| 111 | /** |
| 112 | * Parse the optional `model`/`thinking` overrides supplied on a task launch, |
no test coverage detected