( sdk: RunInput["sdk"], directory: string, model: RunInput["model"], )
| 176 | |
| 177 | // Fetches available variants and context limits for every provider/model pair. |
| 178 | export async function resolveModelInfo( |
| 179 | sdk: RunInput["sdk"], |
| 180 | directory: string, |
| 181 | model: RunInput["model"], |
| 182 | ): Promise<ModelInfo> { |
| 183 | return runtime.runPromise((svc) => svc.resolveModelInfo(sdk, directory, model)).catch(() => emptyModelInfo()) |
| 184 | } |
| 185 | |
| 186 | // Fetches session messages to determine if this is the first turn and build prompt history. |
| 187 | export async function resolveSessionInfo( |
no test coverage detected