Skip to content

API reference

One page per module, each rendering that module's public (importable) surface:

The pipeline

  • osrforge — osr-forge: convert tabletop adventure module PDFs into playable osrlib adventures (5 symbols)
  • osrforge.assemble — Stage 6: assembly — overrides application, the Adventure build, validation, report production, artifact writing (11 symbols)
  • osrforge.check — The playability lint and smoke delve: findings = check(workdir) (3 symbols)
  • osrforge.cli — The osrforge console script: convert, rerun, assemble, check, report, preview, and estimate (3 symbols)
  • osrforge.content — Stage 2: the content pass — per-level batched extraction of keyed areas (7 symbols)
  • osrforge.convert — The end-to-end conversion and its resume: preprocess → survey → content → monsters → mapread → assemble (7 symbols)
  • osrforge.errors — The osr-forge exception hierarchy (7 symbols)
  • osrforge.estimate — Cost estimation: preprocess only, then pure arithmetic — a rough token/cost estimate with no model call (8 symbols)
  • osrforge.evals — Eval scoring: truth-file models, alignment, and the pinned metric families (39 symbols)
  • osrforge.geometry — Stage 5: deterministic geometry synthesis from the extracted room graph, map proposals reconciled (6 symbols)
  • osrforge.mapread — Stage 4: the map-reading pass — one request per surveyed level over its printed map pages (6 symbols)
  • osrforge.monsters — Stage 3: monster resolution — extracted names against osrlib's shipped catalog, plus the stat-block pass (18 symbols)
  • osrforge.overrides — Overrides application: the human correction channel, applied inside assembly (10 symbols)
  • osrforge.pages — The shared interleaved text-plus-image request-part builder (2 symbols)
  • osrforge.preprocess — Stage 0: deterministic PDF preprocessing (1 symbols)
  • osrforge.previews — The deterministic SVG level renderer and the previews index page (4 symbols)
  • osrforge.reconcile — Deterministic reconciliation of prose edge facts with map proposals, plus the shared entrance selection (6 symbols)
  • osrforge.settings — Pipeline settings (1 symbols)
  • osrforge.statblocks — Shared structural parsing of printed stat-block lines — AC, Hit Dice, and class-level notations (4 symbols)
  • osrforge.survey — Stage 1: the survey pass — one structured-output request over the whole module, or chunked page windows (16 symbols)
  • osrforge.versioning — Artifact schema versioning for osr-forge's own artifacts (2 symbols)
  • osrforge.workdir — The per-module working directory: layout paths, run.json I/O, and the artifact writer (4 symbols)

Contracts

Providers