Skip to main content

Overview

The mock LLM provider lets you run the full ICRL training and evaluation pipeline without API keys or network access. It uses pattern matching on prompts to generate deterministic plans, reasoning, and actions for file system tasks.

Source Files

Run

Why Use It

Provider Contract

The mock implements the same interface as any Python LLM provider:
You can swap MockLLMProvider with LiteLLMProvider without changing Agent wiring:

What the Demo Covers

tests/test_with_mock.py runs four phases:
  1. Training — Trains on file system tasks; successful trajectories are stored
  2. Persistence — Creates a new agent that loads trajectories from disk
  3. Retrieval — Shows semantic search over stored trajectories
  4. Evaluation — Runs held-out tasks with retrieval enabled