UNPKG

@arizeai/phoenix-evals

Version:
22 lines 836 B
import type { ClassificationResult, WithLLM } from "../types/evals"; import type { WithTelemetry } from "../types/otel"; import type { WithPrompt } from "../types/prompts"; export type ClassifyArgs = WithLLM & WithTelemetry & WithPrompt & { /** * The labels to classify the example into. E.x. ["correct", "incorrect"] */ labels: [string, ...string[]]; /** * The name of the schema for generating the label and explanation. */ schemaName?: string; /** * The description of the schema for generating the label and explanation. */ schemaDescription?: string; }; /** * A function that leverages an llm to perform a classification */ export declare function generateClassification(args: ClassifyArgs): Promise<ClassificationResult>; //# sourceMappingURL=generateClassification.d.ts.map