import * as z from "zod/v3"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; /** * The classification result data */ export type ClassificationResponseData = { /** * The label selected by the model from the provided options. This is the classification result. */ label: string; /** * Optional confidence score between 0 and 1 indicating how confident the model is in its classification decision. Higher values indicate higher confidence. */ confidence?: number | undefined; /** * Optional brief explanation from the model explaining why it chose this particular label. Provides transparency into the classification decision. */ reasoning?: string | undefined; }; /** * Metadata about the classification request and execution */ export type Metadata = { /** * The model that was used to perform the classification */ model: string; /** * The array of possible labels that were provided in the request */ labels: Array; /** * ISO 8601 timestamp indicating when the classification was performed */ classifiedAt: string; }; /** * Response from the text classification endpoint containing the classification result, confidence, and metadata. */ export type ClassificationResponse = { /** * Indicates whether the classification request was successful */ success: boolean; /** * The classification result data */ data: ClassificationResponseData; /** * Metadata about the classification request and execution */ metadata: Metadata; }; /** @internal */ export declare const ClassificationResponseData$inboundSchema: z.ZodType; /** @internal */ export type ClassificationResponseData$Outbound = { label: string; confidence?: number | undefined; reasoning?: string | undefined; }; /** @internal */ export declare const ClassificationResponseData$outboundSchema: z.ZodType; export declare function classificationResponseDataToJSON(classificationResponseData: ClassificationResponseData): string; export declare function classificationResponseDataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Metadata$inboundSchema: z.ZodType; /** @internal */ export type Metadata$Outbound = { model: string; labels: Array; classifiedAt: string; }; /** @internal */ export declare const Metadata$outboundSchema: z.ZodType; export declare function metadataToJSON(metadata: Metadata): string; export declare function metadataFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ClassificationResponse$inboundSchema: z.ZodType; /** @internal */ export type ClassificationResponse$Outbound = { success: boolean; data: ClassificationResponseData$Outbound; metadata: Metadata$Outbound; }; /** @internal */ export declare const ClassificationResponse$outboundSchema: z.ZodType; export declare function classificationResponseToJSON(classificationResponse: ClassificationResponse): string; export declare function classificationResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=classificationresponse.d.ts.map