API reference for the requests module.
# All public classes import directly from the top-level package:from nutrient_sdk import ClassificationRequestClasses
| Class | Description |
|---|---|
ClassificationRequest | Describes a zero-shot classification request for Classify: the candidate labels the document is scored against. Each label optionally carries a longer description that gives the matcher more context; the description never appears in the result. At least two labels are required — classification is zero-shot, so the labels define the entire output space, and a single label would trivially win with probability 1. |
SchemaGenerationRequest | Describes a schema generation request for GenerateSchema. Carries the document type the schema must represent, an optional free-form requirement, and up to five example documents that ground the schema in real layouts. |
StructuredExtractionRequest | Describes a structured data extraction request for ExtractStructured. Carries a schema envelope — {"schema": <JSON Schema>} — describing the fields the extracted data must conform to, and optional free-form instructions that steer the extraction. |