Skip to the content.

English version

LLM Adapter — Shadow Execution

メインの LLM プロバイダを維持したまま、影(shadow)実行で別プロバイダを並走させるアダプタです。レスポンス差分や異常系イベントを JSONL に記録し、フォールバックやベンダ比較のための計測基盤を最小構成で提供します。

Highlights

Key Artifacts

How to Reproduce

  1. projects/04-llm-adapter-shadow/ で仮想環境を作成し、pip install -r requirements.txt を実行。
  2. python demo_shadow.py で影実行の動作と artifacts/runs-metrics.jsonl のログを確認。
  3. pytest -q で shadow diff / error handling に関するテストを実行。

Next Steps