KernelEvolutionConfig (kernel_evolution/runner_config.py)

autocontext · autocontext/src/autocontext/kernel_evolution/runner_config.py · python · Apache-2.0
ai, tag:embed-classified

Configuration contract for kernel-evolution runner with validation and policy generation.

# Source: https://github.com/greyhaven-ai/autocontext | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
"""Configuration contract for the kernel-evolution runner."""

from __future__ import annotations

import math
from dataclasses import dataclass

from autocontext.kernel_evolution.models import KernelCandidate
from autocontext.kernel_evolution.protocols import (
    KernelDecisionPolicy,
    KernelSequentialTestingPolicy,
    KernelStatisticsPolicy,
    PrecisionProfileName,
)


@dataclass(frozen=True, slots=True)
class KernelEvolutionConfig:
    problem_id: str
    task_prompt: str
    baseline_source: str
    source_suffix: str = ".py"
    entrypoint: str = "ModelNew"
    min_rel

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

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

Get a free API key