Classify a document into one of the provided categories.
This endpoint analyzes a document and classifies it into exactly one of the user-defined categories, returning the classification with chain-of-thought reasoning explaining the decision.
Example use cases:
The document to classify
The categories to classify the document into
The model to use for classification
Only use the first N pages of the document for classification. Useful for large documents where classification can be determined from early pages.
Additional context for classification (e.g., iteration context from a loop)
Successful Response
The classification result with reasoning