UNPKG

@openai/agents-core

Version:

The OpenAI Agents SDK is a lightweight yet powerful framework for building multi-agent workflows.

23 lines • 781 B
import * as process from 'node:process'; export function loadEnv() { if (typeof process === 'undefined' || typeof process.env === 'undefined') { // In CommonJS builds, import.meta is not available, so we return empty object. try { // Use eval to avoid TypeScript compilation errors in CommonJS builds. const importMeta = (0, eval)('import.meta'); if (typeof importMeta === 'object' && typeof importMeta.env === 'object') { return importMeta.env; } } catch { // import.meta is not available. } return {}; } return process.env; } export function isBrowserEnvironment() { return false; } //# sourceMappingURL=config-node.mjs.map