LLMAssert

LLMAssert

LLM-powered assertion matchers for Playwright

LLMAssert

Test your AI outputs for hallucinations, PII leaks, tone, format compliance, and semantic accuracy — using matchers you already know from Playwright.

import { test, expect } from "@llmassert/playwright";

test("response is grounded in docs", async () => {
  const response = "Our return window is 30 days from purchase.";
  await expect(response).toBeGroundedIn("Returns accepted within 30 days.");
});

On this page