PcecEngine (pcec.ts)

helix · ai

LLM execution engine orchestrating RAG pipelines and prompt flows via event bus for AI agents.

import { bus } from './bus.js';
import { refine, filterCandidates, createRefinementContext, recordAttempt } from './self-refine.js';
import { PromptOptimizer } from './prompt-optimizer.js';
import { GeneMap } from './gene-map.js';
import { evaluate } from './evaluate.js';
import { HelixProvider } from './provider.js';
import type { CommitResult } from './provider.js';
import { resolveRegistryConfig, pushCapsuleToRegistry, queryRegistry, registryCapsuleToCandidate } from './registry-bridge.js';
import type {
  FailureClassification,
  GeneCapsule,
  HelixMode,
  PlatformAdapter,
  RepairCandidate,
  RepairContext,
  RepairResult,
  WrapOptions,
  ErrorCode,
  FailureCategory,
} from './types.js';
import { REVENUE_AT_RISK } from './types.js';
import { getRootCause } from './root-causes.js';


... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key