agentskit.js
Evals

Prompt snapshots + diff

Jest-style snapshots for prompts. Git-blame for every change.

matchPromptSnapshot

import { matchPromptSnapshot } from '@agentskit/eval'

await matchPromptSnapshot({
  name: 'triage-v1',
  actual: renderedPrompt,
  mode: 'exact', // | 'normalized' | 'similarity'
  path: '.agentskit/snapshots',
  similarityThreshold: 0.95,
})

promptDiff + attributePromptChange

import { promptDiff, attributePromptChange } from '@agentskit/eval'

const delta = promptDiff(before, after)
const attribution = attributePromptChange(delta, history)
✎ Edit this page on GitHub·Found a problem? Open an issue →·How to contribute →

On this page