import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; import { DpoHyperparameters, DpoHyperparameters$Outbound } from "./dpohyperparameters.js"; import { ReinforcementHyperparameters, ReinforcementHyperparameters$Outbound } from "./reinforcementhyperparameters.js"; import { SupervisedHyperparameters, SupervisedHyperparameters$Outbound } from "./supervisedhyperparameters.js"; export declare const Type: { readonly Supervised: "supervised"; readonly Dpo: "dpo"; readonly Reinforcement: "reinforcement"; }; export type Type = ClosedEnum; export type Supervised = { hyperparameters?: SupervisedHyperparameters | null | undefined; }; export type Dpo = { hyperparameters?: DpoHyperparameters | null | undefined; }; export type MethodGradersInput = { role: string; content: string; }; export type Graders5 = { type: "label_model"; name: string; model: string; input: Array; labels: Array; passingLabels: Array; }; export type GradersInput = { role: string; content: string; }; export declare const MethodSamplingParamsReasoningEffort: { readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; }; export type MethodSamplingParamsReasoningEffort = ClosedEnum; export type GradersSamplingParams = { maxCompletionsTokens?: number | null | undefined; reasoningEffort?: MethodSamplingParamsReasoningEffort | null | undefined; seed?: number | null | undefined; temperature?: number | null | undefined; topP?: number | null | undefined; }; export type Graders4 = { type: "score_model"; name: string; model: string; input: Array; range?: Array | null | undefined; samplingParams?: GradersSamplingParams | null | undefined; }; export type Graders3 = { type: "python"; name: string; source: string; imageTag?: string | null | undefined; }; export declare const GradersEvaluationMetric: { readonly Cosine: "cosine"; readonly FuzzyMatch: "fuzzy_match"; readonly Bleu: "bleu"; readonly Gleu: "gleu"; readonly Meteor: "meteor"; readonly Rouge1: "rouge_1"; readonly Rouge2: "rouge_2"; readonly Rouge3: "rouge_3"; readonly Rouge4: "rouge_4"; readonly Rouge5: "rouge_5"; readonly RougeL: "rouge_l"; }; export type GradersEvaluationMetric = ClosedEnum; export type Graders2 = { type: "text_similarity"; name: string; input: string; reference: string; evaluationMetric: GradersEvaluationMetric; }; export declare const GradersOperation: { readonly Eq: "eq"; readonly Ne: "ne"; readonly Like: "like"; readonly Ilike: "ilike"; }; export type GradersOperation = ClosedEnum; export type Graders1 = { type: "string_check"; name: string; input: string; reference: string; operation: GradersOperation; }; export type Graders = Graders1 | Graders2 | Graders3 | Graders4 | Graders5; export type Grader2 = { type: "multi"; name: string; graders: { [k: string]: Graders1 | Graders2 | Graders3 | Graders4 | Graders5; }; calculateOutput: string; }; export type Method1Input = { role: string; content: string; }; export type One5 = { type: "label_model"; name: string; model: string; input: Array; labels: Array; passingLabels: Array; }; export type OneInput = { role: string; content: string; }; export declare const SamplingParamsReasoningEffort: { readonly Low: "low"; readonly Medium: "medium"; readonly High: "high"; }; export type SamplingParamsReasoningEffort = ClosedEnum; export type SamplingParams = { maxCompletionsTokens?: number | null | undefined; reasoningEffort?: SamplingParamsReasoningEffort | null | undefined; seed?: number | null | undefined; temperature?: number | null | undefined; topP?: number | null | undefined; }; export type One4 = { type: "score_model"; name: string; model: string; input: Array; range?: Array | null | undefined; samplingParams?: SamplingParams | null | undefined; }; export type One3 = { type: "python"; name: string; source: string; imageTag?: string | null | undefined; }; export declare const EvaluationMetric: { readonly Cosine: "cosine"; readonly FuzzyMatch: "fuzzy_match"; readonly Bleu: "bleu"; readonly Gleu: "gleu"; readonly Meteor: "meteor"; readonly Rouge1: "rouge_1"; readonly Rouge2: "rouge_2"; readonly Rouge3: "rouge_3"; readonly Rouge4: "rouge_4"; readonly Rouge5: "rouge_5"; readonly RougeL: "rouge_l"; }; export type EvaluationMetric = ClosedEnum; export type One2 = { type: "text_similarity"; name: string; input: string; reference: string; evaluationMetric: EvaluationMetric; }; export declare const Operation: { readonly Eq: "eq"; readonly Ne: "ne"; readonly Like: "like"; readonly Ilike: "ilike"; }; export type Operation = ClosedEnum; export type One1 = { type: "string_check"; name: string; input: string; reference: string; operation: Operation; }; export type Grader1 = One1 | One2 | One3 | One4 | One5; export type Grader = Grader2 | One1 | One2 | One3 | One4 | One5; export type Reinforcement = { grader: Grader2 | One1 | One2 | One3 | One4 | One5; hyperparameters?: ReinforcementHyperparameters | null | undefined; }; export type Method = { type: Type; supervised?: Supervised | null | undefined; dpo?: Dpo | null | undefined; reinforcement?: Reinforcement | null | undefined; }; /** @internal */ export declare const Type$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Type$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Supervised$inboundSchema: z.ZodType; /** @internal */ export type Supervised$Outbound = { hyperparameters?: SupervisedHyperparameters$Outbound | null | undefined; }; /** @internal */ export declare const Supervised$outboundSchema: z.ZodType; export declare function supervisedToJSON(supervised: Supervised): string; export declare function supervisedFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Dpo$inboundSchema: z.ZodType; /** @internal */ export type Dpo$Outbound = { hyperparameters?: DpoHyperparameters$Outbound | null | undefined; }; /** @internal */ export declare const Dpo$outboundSchema: z.ZodType; export declare function dpoToJSON(dpo: Dpo): string; export declare function dpoFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const MethodGradersInput$inboundSchema: z.ZodType; /** @internal */ export type MethodGradersInput$Outbound = { role: string; content: string; }; /** @internal */ export declare const MethodGradersInput$outboundSchema: z.ZodType; export declare function methodGradersInputToJSON(methodGradersInput: MethodGradersInput): string; export declare function methodGradersInputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Graders5$inboundSchema: z.ZodType; /** @internal */ export type Graders5$Outbound = { type: "label_model"; name: string; model: string; input: Array; labels: Array; passing_labels: Array; }; /** @internal */ export declare const Graders5$outboundSchema: z.ZodType; export declare function graders5ToJSON(graders5: Graders5): string; export declare function graders5FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GradersInput$inboundSchema: z.ZodType; /** @internal */ export type GradersInput$Outbound = { role: string; content: string; }; /** @internal */ export declare const GradersInput$outboundSchema: z.ZodType; export declare function gradersInputToJSON(gradersInput: GradersInput): string; export declare function gradersInputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const MethodSamplingParamsReasoningEffort$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const MethodSamplingParamsReasoningEffort$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GradersSamplingParams$inboundSchema: z.ZodType; /** @internal */ export type GradersSamplingParams$Outbound = { max_completions_tokens?: number | null | undefined; reasoning_effort?: string | null | undefined; seed?: number | null | undefined; temperature?: number | null | undefined; top_p?: number | null | undefined; }; /** @internal */ export declare const GradersSamplingParams$outboundSchema: z.ZodType; export declare function gradersSamplingParamsToJSON(gradersSamplingParams: GradersSamplingParams): string; export declare function gradersSamplingParamsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Graders4$inboundSchema: z.ZodType; /** @internal */ export type Graders4$Outbound = { type: "score_model"; name: string; model: string; input: Array; range?: Array | null | undefined; sampling_params?: GradersSamplingParams$Outbound | null | undefined; }; /** @internal */ export declare const Graders4$outboundSchema: z.ZodType; export declare function graders4ToJSON(graders4: Graders4): string; export declare function graders4FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Graders3$inboundSchema: z.ZodType; /** @internal */ export type Graders3$Outbound = { type: "python"; name: string; source: string; image_tag?: string | null | undefined; }; /** @internal */ export declare const Graders3$outboundSchema: z.ZodType; export declare function graders3ToJSON(graders3: Graders3): string; export declare function graders3FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GradersEvaluationMetric$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GradersEvaluationMetric$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Graders2$inboundSchema: z.ZodType; /** @internal */ export type Graders2$Outbound = { type: "text_similarity"; name: string; input: string; reference: string; evaluation_metric: string; }; /** @internal */ export declare const Graders2$outboundSchema: z.ZodType; export declare function graders2ToJSON(graders2: Graders2): string; export declare function graders2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const GradersOperation$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const GradersOperation$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Graders1$inboundSchema: z.ZodType; /** @internal */ export type Graders1$Outbound = { type: "string_check"; name: string; input: string; reference: string; operation: string; }; /** @internal */ export declare const Graders1$outboundSchema: z.ZodType; export declare function graders1ToJSON(graders1: Graders1): string; export declare function graders1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Graders$inboundSchema: z.ZodType; /** @internal */ export type Graders$Outbound = Graders1$Outbound | Graders2$Outbound | Graders3$Outbound | Graders4$Outbound | Graders5$Outbound; /** @internal */ export declare const Graders$outboundSchema: z.ZodType; export declare function gradersToJSON(graders: Graders): string; export declare function gradersFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Grader2$inboundSchema: z.ZodType; /** @internal */ export type Grader2$Outbound = { type: "multi"; name: string; graders: { [k: string]: Graders1$Outbound | Graders2$Outbound | Graders3$Outbound | Graders4$Outbound | Graders5$Outbound; }; calculate_output: string; }; /** @internal */ export declare const Grader2$outboundSchema: z.ZodType; export declare function grader2ToJSON(grader2: Grader2): string; export declare function grader2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Method1Input$inboundSchema: z.ZodType; /** @internal */ export type Method1Input$Outbound = { role: string; content: string; }; /** @internal */ export declare const Method1Input$outboundSchema: z.ZodType; export declare function method1InputToJSON(method1Input: Method1Input): string; export declare function method1InputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const One5$inboundSchema: z.ZodType; /** @internal */ export type One5$Outbound = { type: "label_model"; name: string; model: string; input: Array; labels: Array; passing_labels: Array; }; /** @internal */ export declare const One5$outboundSchema: z.ZodType; export declare function one5ToJSON(one5: One5): string; export declare function one5FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OneInput$inboundSchema: z.ZodType; /** @internal */ export type OneInput$Outbound = { role: string; content: string; }; /** @internal */ export declare const OneInput$outboundSchema: z.ZodType; export declare function oneInputToJSON(oneInput: OneInput): string; export declare function oneInputFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const SamplingParamsReasoningEffort$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SamplingParamsReasoningEffort$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const SamplingParams$inboundSchema: z.ZodType; /** @internal */ export type SamplingParams$Outbound = { max_completions_tokens?: number | null | undefined; reasoning_effort?: string | null | undefined; seed?: number | null | undefined; temperature?: number | null | undefined; top_p?: number | null | undefined; }; /** @internal */ export declare const SamplingParams$outboundSchema: z.ZodType; export declare function samplingParamsToJSON(samplingParams: SamplingParams): string; export declare function samplingParamsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const One4$inboundSchema: z.ZodType; /** @internal */ export type One4$Outbound = { type: "score_model"; name: string; model: string; input: Array; range?: Array | null | undefined; sampling_params?: SamplingParams$Outbound | null | undefined; }; /** @internal */ export declare const One4$outboundSchema: z.ZodType; export declare function one4ToJSON(one4: One4): string; export declare function one4FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const One3$inboundSchema: z.ZodType; /** @internal */ export type One3$Outbound = { type: "python"; name: string; source: string; image_tag?: string | null | undefined; }; /** @internal */ export declare const One3$outboundSchema: z.ZodType; export declare function one3ToJSON(one3: One3): string; export declare function one3FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const EvaluationMetric$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const EvaluationMetric$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const One2$inboundSchema: z.ZodType; /** @internal */ export type One2$Outbound = { type: "text_similarity"; name: string; input: string; reference: string; evaluation_metric: string; }; /** @internal */ export declare const One2$outboundSchema: z.ZodType; export declare function one2ToJSON(one2: One2): string; export declare function one2FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Operation$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Operation$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const One1$inboundSchema: z.ZodType; /** @internal */ export type One1$Outbound = { type: "string_check"; name: string; input: string; reference: string; operation: string; }; /** @internal */ export declare const One1$outboundSchema: z.ZodType; export declare function one1ToJSON(one1: One1): string; export declare function one1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Grader1$inboundSchema: z.ZodType; /** @internal */ export type Grader1$Outbound = One1$Outbound | One2$Outbound | One3$Outbound | One4$Outbound | One5$Outbound; /** @internal */ export declare const Grader1$outboundSchema: z.ZodType; export declare function grader1ToJSON(grader1: Grader1): string; export declare function grader1FromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Grader$inboundSchema: z.ZodType; /** @internal */ export type Grader$Outbound = Grader2$Outbound | One1$Outbound | One2$Outbound | One3$Outbound | One4$Outbound | One5$Outbound; /** @internal */ export declare const Grader$outboundSchema: z.ZodType; export declare function graderToJSON(grader: Grader): string; export declare function graderFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Reinforcement$inboundSchema: z.ZodType; /** @internal */ export type Reinforcement$Outbound = { grader: Grader2$Outbound | One1$Outbound | One2$Outbound | One3$Outbound | One4$Outbound | One5$Outbound; hyperparameters?: ReinforcementHyperparameters$Outbound | null | undefined; }; /** @internal */ export declare const Reinforcement$outboundSchema: z.ZodType; export declare function reinforcementToJSON(reinforcement: Reinforcement): string; export declare function reinforcementFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Method$inboundSchema: z.ZodType; /** @internal */ export type Method$Outbound = { type: string; supervised?: Supervised$Outbound | null | undefined; dpo?: Dpo$Outbound | null | undefined; reinforcement?: Reinforcement$Outbound | null | undefined; }; /** @internal */ export declare const Method$outboundSchema: z.ZodType; export declare function methodToJSON(method: Method): string; export declare function methodFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=method.d.ts.map