289
/** The core library filenames required for the current platform. Exported for tests. */
290
export function requiredCoreLibraryNames(): string[] {
291
>
const ext = process.platform === 'win32' ? '.dll' : process.platform === 'darwin' ? '.dylib' : '.so';
foundryLocalRuntime.ts
292
>
const prefix = process.platform === 'win32' ? '' : 'lib';
293
>
return [
294
>
`Microsoft.AI.Foundry.Local.Core${ext}`,
295
>
`${prefix}onnxruntime${ext}`,
296
>
`${prefix}onnxruntime-genai${ext}`,
297
>
];
298
>
}
299
300
/** Whether all required core libraries already exist in `coreDir`. */