---
title: "diff two captured LLM agent runs"
method: PUT
path: "/mockserver/llm/diffRuns"
tags: ["llm"]
---

# diff two captured LLM agent runs

`PUT /mockserver/llm/diffRuns`

## Request

- Base URL: `http://localhost:1080`
- URL: `http://localhost:1080/mockserver/llm/diffRuns`
- Auth: none declared

Compares two captured agent runs, each selected by session, host and/or provider, and reports where they diverge. Normalization options control which incidental differences are ignored before comparing. The request body is optional — an empty body is treated as an empty filter on both sides.

## Request body

- object
  - `before` object
    - `session` string
    - `host` string
    - `provider` string
  - `after` object
    - `session` string
    - `host` string
    - `provider` string
  - `normalization` object: options controlling which incidental differences are ignored

## Response `200`

diff of the two runs returned

- object

## Other responses

- `500`: internal error diffing the agent runs

---

[API](https://skmtc.dev/mock-server/apis/mockserver-api.md) · [All operations](https://skmtc.dev/mock-server/apis/mockserver-api/llms.txt) · [OpenAPI document](https://skmtc.dev/mock-server/apis/mockserver-api/revisions/9239b693996e?raw)
