Skip to navigation

Classifier output types

Classifer outputs follow standardized formats. Understanding this format is essential when working with evaluation sets, webhooks, and API responses.

Classification Output Type

Type Definition

type ClassificationOutput = {
id: string;
type: string;
};

Example

{
"id": "classification_123",
"type": "INVOICE"
}

Shared Types

Certain types are shared across different processor outputs. These provide additional context and information about the processor’s decisions.

Type Definition

type Insight = {
type: "reasoning" | "issue" | "review_summary";
content: string;
};

Example

{
"insights": [
{
"type": "reasoning",
"content": "This was classified as an invoice because it contains standard invoice elements including an invoice number, billing details, and itemized charges."
}
]
}

Insights can appear in both Extraction and Classification outputs to provide transparency into the model’s decision-making process. They are particularly useful when debugging or validating processor results.