/** * @module @dagengine/core * * Core engine for orchestrating AI-powered workflows with dependency management. * * @example Basic Usage * ```typescript * import { DagEngine } from '@dagengine/core'; * * const engine = new DagEngine({ * plugin: myPlugin, * providers: myAdapter, * execution: { * concurrency: 10, * timeout: 30000 * } * }); * * const result = await engine.process(sections); * ``` * * @example With Pricing * ```typescript * const engine = new DagEngine({ * plugin: myPlugin, * providers: myAdapter, * pricing: { * models: { * 'gpt-4': { inputPer1M: 30, outputPer1M: 60 } * } * } * }); * * const result = await engine.process(sections); * console.log(result.costs?.totalCost); * ``` */ export { DagEngine } from "./engine/dag-engine.js"; export type { EngineConfig, ExecutionConfig } from "./engine/engine-config.js"; export { DEFAULT_EXECUTION_CONFIG } from "./engine/engine-config.js"; export type { ProcessState, ExecutionPlan, SectionResultPair, SkipCheckResult, ProviderAttempt, AttemptRecord, } from "./shared/types.js"; export { isSkipWithResult, isErrorResult, isSuccessResult, } from "./shared/types.js"; export { DagEngineError, ConfigurationError, NoProvidersError, NoSectionsError, CircularDependencyError, DependencyError, DependencyNotFoundError, DimensionTimeoutError, ExecutionGroupingError, ProviderNotFoundError, AllProvidersFailed, ValidationError, isDagEngineError, normalizeError, getErrorMessage, createContextError, } from "./shared/errors.js"; export { DEFAULT_ENGINE_CONFIG, ERROR_MESSAGES, SKIP_REASONS, METADATA_KEYS, TIMING, VALIDATION, } from "./shared/constants.js"; export type { SkipReason, MetadataKey } from "./shared/constants.js"; export type { GraphAnalytics, GraphExport, GraphNode, GraphLink, DotExportOptions, GraphStatistics, } from "./analysis/graph-types.js"; export { CostCalculator } from "./analysis/cost-calculator.js"; export { DependencyGraphManager } from "./analysis/graph-manager.js"; export { DimensionExecutor } from "./execution/dimension-executor.js"; export { DependencyResolver } from "./execution/dependency-resolver.js"; export { TransformationManager } from "./execution/transformation-manager.js"; export { ProviderExecutor } from "./execution/provider-executor.js"; export { HookExecutor } from "./lifecycle/hook-executor.js"; export { ConfigValidator } from "./validation/config-validator.js"; export { DependencyValidator } from "./validation/dependency-validator.js"; export { hasFailedDependencies, getFailedDependencies, countSuccessful, countFailed, resetSectionResultsMap, applyFinalizedResults, executeWithTimeout, createTimeoutPromise, } from "./shared/utils.js"; //# sourceMappingURL=index.d.ts.map