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

1type ClassificationOutput = {
2 id: string;
3 type: string;
4};

Example

1{
2 "id": "classification_123",
3 "type": "INVOICE"
4}

Shared Types

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

Type Definition

1type Insight = {
2 type: "reasoning"; // Currently only reasoning is supported
3 content: string; // The explanation or reasoning provided by the model
4};

Example

1{
2 "insights": [
3 {
4 "type": "reasoning",
5 "content": "This was classified as an invoice because it contains standard invoice elements including an invoice number, billing details, and itemized charges."
6 }
7 ]
8}

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.