/** * Darwin — AI agents that improve themselves. * * @example * ```typescript * import { defineAgent, defineConfig, runAgent } from 'darwin-agents'; * * const myAgent = defineAgent({ * name: 'summarizer', * role: 'Text Summarizer', * systemPrompt: 'Summarize text in 3 bullet points.', * evolution: { enabled: true, evaluator: 'critic' }, * }); * * const result = await runAgent(myAgent, 'Summarize this article...'); * ``` */ export { defineAgent, defineConfig, loadConfig, loadConfigSync } from './core/agent.js'; export { runAgent } from './core/runner.js'; export { createTraceCapture } from './core/trace-capture.js'; export type { TraceCapture, TraceCaptureOptions } from './core/trace-capture.js'; export type { AgentDefinition, DarwinConfig, DarwinExperiment, DarwinMetrics, DarwinPattern, DarwinState, ExecutionTrace, ExperimentFeedback, EvolutionConfig, EvolutionConfigOverride, Learning, McpServerConfig, MemoryProvider, MetricWeights, PromptVersion, PromptVersionStats, RunResult, SafetyThresholds, TraceToolCall, TraceTokenUsage, TraceTurnError, } from './types.js'; export { DEFAULT_WEIGHTS, DEFAULT_SAFETY } from './types.js'; export { writer, researcher, critic, analyst, builtinAgents } from './agents/index.js'; export { createProvider } from './providers/index.js'; export type { LLMProvider, LLMCallOptions, LLMCallResult, ProviderConfig } from './providers/types.js'; export { AnthropicProvider } from './providers/anthropic.js'; export { OpenAIProvider } from './providers/openai.js'; export { OllamaProvider } from './providers/ollama.js'; export { ClaudeCliProvider } from './providers/claude-cli.js'; export { createMemory, SqliteMemoryProvider, PostgresMemoryProvider } from './memory/index.js'; export { loadNotificationConfig } from './evolution/notifications.js'; export type { NotificationConfig } from './evolution/notifications.js'; export { buildEvolutionLoop } from './evolution/build-loop.js'; export { DarwinLoop, type EvolutionResult } from './evolution/loop.js'; export { ExperimentTracker } from './evolution/tracker.js'; export { PatternDetector } from './evolution/patterns.js'; export { PromptOptimizer, type AgentToolContext } from './evolution/optimizer.js'; export { SafetyGate } from './evolution/safety.js'; export { dominates, dominatesEpsilon, nonDominatedFront, paretoSelect, scalarise, crowdingDistance, coverageFrontier, coverageWeights, selectByCoverage, sampleByCoverage, DARWIN_DEFAULT_OBJECTIVES, type ParetoObjective, type ParetoTruncationStrategy, type FrontierKey, type CoverageScores, } from './evolution/pareto.js'; export { Reflector, type ReflectiveFeedback, type ReflectOptions, } from './evolution/reflector.js'; export type { RunPromptFn } from './evolution/run-prompt-fn.js'; export { GepaOptimizer, epochShuffledMinibatch, type ScoredVariant, type GenerateOptions as GepaGenerateOptions, type NextGenerationOptions as GepaNextGenerationOptions, type GepaOptimizerOptions, type MergeOptions as GepaMergeOptions, } from './evolution/optimizer-gepa.js'; export { checkAlignmentPreservation, checkAlignmentPreservationSemantic, SAFETY_PATTERNS, type EmbedFn, type SemanticAlignmentOptions, } from './evolution/alignment.js'; export { parseCriticScore, type ParsedCriticScore } from './evolution/parse-score.js'; export { runMultiCritic, stripMarkdownForJudging, getCriticPrompts, type RunCriticFn, type RunMultiCriticOptions, type CriticPromptDef, type CriticScore, type MultiCriticResult, } from './evolution/multi-critic.js'; export { meanVar, msprtTwoSample, hoeffdingTwoSample, hoeffdingHalfWidth, ebTwoSample, ebIntervalForArm, type ConfidenceMethod, type SequentialVerdict, type MeanVar, type MsprtOptions, type HoeffdingOptions, type EbOptions, } from './evolution/sequential.js'; export { toolSequence, toolSet, jaccard, sequenceSimilarity, errorRate, compareTrajectory, evaluateCanary, runCanaryOverExperiments, type CanaryThresholds, type TrajectoryComparison, type CanaryOptions, type CanaryResult, type CanaryStatus, type CanaryReport, type RunCanaryOptions, } from './evolution/canary.js'; export { selectDemoCandidates, buildDemoSection, applyDemoSection, stripDemoSection, DEMO_SECTION_START, DEMO_SECTION_END, DEFAULT_MAX_DEMOS, DEFAULT_DEMO_SCORE_THRESHOLD, DEFAULT_DEMO_MIN_OUTPUT_CHARS, DEFAULT_DEMO_TASK_CHARS, DEFAULT_DEMO_OUTPUT_CHARS, type DemoCandidate, type DemoSelectionOptions, type DemoRenderOptions, } from './evolution/demos.js'; export { selectParentVariant, DEFAULT_EXPLORATION_EPSILON, type CandidateSelectionStrategy, type SelectableVariant, type ParentSelectionOptions, } from './evolution/selection.js'; export { isPerfectScore, resolvePerfectFeedbackScore, filterPerfectFeedback, DEFAULT_PERFECT_FEEDBACK_SCORE, } from './evolution/feedback-filter.js'; export { parseEvalTasks, runEval, renderEvalReport, type EvalTask, type EvalArm, type EvalRunFn, type EvalScoreFn, type EvalCellResult, type EvalArmResult, type EvalReport, type RunEvalOptions, } from './eval/eval-runner.js'; export { JsonlMetricsSink, emitMetric, metricsSinkFromEnv, type DarwinMetricEvent, type DarwinMetricEventType, type MetricsSink, } from './metrics/sink.js'; //# sourceMappingURL=index.d.ts.map