@arizeai/phoenix-evals
Version:
A library for running evaluations for AI use cases
22 lines • 832 B
TypeScript
import { ClassificationResult, WithLLM } from "../types/evals";
import { WithTelemetry } from "../types/otel";
import type { WithPrompt } from "../types/prompts";
export interface ClassifyArgs extends WithLLM, WithPrompt, WithTelemetry {
/**
* 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