# SystemOneDSL v1.0.0 - API Reference

## Modules

- Contract DSL
  - [SystemOneDSL](SystemOneDSL.md): Compile-time Elixir macro DSL, two-tier caching layer, and execution runner for
`ReqLLM.Evaluation` (TypeSafe Jev, Google Gemini Decisions, OpenAI Decisions, and more).
  - [SystemOneDSL.CUE](SystemOneDSL.CUE.md): Deterministic CUE schema exporter for compiled `SystemOneDSL.Contract` catalogs.

  - [SystemOneDSL.Contract](SystemOneDSL.Contract.md): Typed representation of a compiled `SystemOneDSL` decision contract,
wrapping the question definitions and the build-time validated `%SystemOneDSL.Prepared{}` struct.

  - [SystemOneDSL.Prepared](SystemOneDSL.Prepared.md): Compile-time prepared evaluation contract holding normalized `ReqLLM.Evaluation`
question maps and a deterministic SHA-256 `fingerprint`.

  - [SystemOneDSL.Question](SystemOneDSL.Question.md): Typed representation of a single compiled question (`:noul`, `:choice`, or `:score`)
within a `SystemOneDSL.Contract`.

- Caching &amp; Execution
  - [SystemOneDSL.Cache](SystemOneDSL.Cache.md): Deterministic identity hashing, confidence-aware cacheability rules, and pluggable
two-tier (L1 fast key-value + L2 durable store) caching behaviour for `SystemOneDSL`.
  - [SystemOneDSL.Cache.ETS](SystemOneDSL.Cache.ETS.md): Built-in zero-dependency ETS cache adapter implementing `SystemOneDSL.Cache`.
  - [SystemOneDSL.Error](SystemOneDSL.Error.md): Structured exception raised by `evaluate!/3` and `SystemOneDSL.Runner.evaluate!/4` when a
`SystemOneDSL` contract evaluation fails.
  - [SystemOneDSL.Runner](SystemOneDSL.Runner.md): Runtime evaluation, bounded concurrent batch execution, two-tier (L1 + L2) cache
orchestration, and deterministic test stubbing for `SystemOneDSL` contract modules backed by
`ReqLLM.Evaluation`.

## Mix Tasks

- Installers
  - [mix system_one_dsl.install](Mix.Tasks.SystemOneDsl.Install.md): Installs SystemOneDSL into a project. Invoke with `mix igniter.install system_one_dsl`.

