Components (172)
Extraction Review
Extraction Review — checking what an agent pulled out of documents, in a single self-contained file built on Source Map.
Loading Extraction Review…
Usage
import { ExtractionReview } from "ui-kit/components/extraction-review";Props
| Prop | Type | Default | Description |
|---|---|---|---|
docs* | ReviewDoc[] | — | — |
model* | { id: string; name: string; subtitle?: string; } | — | The agent that reads them – its name and a line under it |
cases | FailureCase[] | [] | Failure cases saved before |
initialDoc | string | — | The document open at first – the first by default |
initialField | string | — | The field open at first – by default the selection follows the fields as they fill, until you pick one |
reasons | { label: string; lesson: (field: string, source: string) => string; }[] | REASONS | What can go wrong, each with the lesson it teaches |
onSaveCase | (c: FailureCase, doc: ReviewDoc) => void | — | Called when a failure case is saved – send it to the agent's memory |
className | string | — | — |