Mimir (Mimir v0.1.0)

Copy Markdown View Source

Mimir is an embeddable routing oracle, pricing source, and decision vocabulary for LLM workloads. Consult it in-process: hand it a workload descriptor and an operational snapshot, and it hands back a placement (or a reasoned no-candidate answer) plus an auditable decision record. A gateway service built on top of Mimir is one possible embedder — not a requirement.

Module inventory

ModuleWhat it does
Mimir.DescriptorValidated workload descriptor — the contract a workflow step presents to the oracle.
Mimir.OraclePure filter-then-rank placement decision over catalog entries.
Mimir.CatalogConfig-sourced routable entries, with an injectable model resolver seam.
Mimir.SnapshotExplicit-inputs operational snapshot the oracle ranks against (pricing, health, budget).
Mimir.HealthFailure-streak table for router lanes, driven by telemetry.
Mimir.DecisionRecordPure builder for a binary-keyed routing-decision audit record.
Mimir.RouteLogTyped route outcome plus a request-log meta builder.
Mimir.PricingToken usage to integer microdollar cost, config-first over a vendored LiteLLM pricing DB.
Mimir.TurnEventsPer-request ordered gen_ai.* event buffer.
Mimir.RouterClientBehaviour for routing clients, with an HTTP (Req-based) implementation.
Mimir.RedactSecret masking and payload-capture gating helpers.

See the README for design rules, supervision, configuration, and a gateway-less worked example.