import * as z from "zod/v3"; import { ClosedEnum } from "../../types/enums.js"; import { Result as SafeParseResult } from "../../types/fp.js"; import * as components from "../components/index.js"; import { SDKValidationError } from "../errors/sdkvalidationerror.js"; export type CreateEvalRunRequest = { /** * Optional external end-user identifier forwarded by the API gateway. */ xOnBehalfOf?: string | undefined; createEvalRunRequest: components.CreateEvalRunRequest; }; export type Stop = string | Array; export declare const Truncation: { readonly Auto: "auto"; readonly Disabled: "disabled"; }; export type Truncation = ClosedEnum; export declare const ServiceTier: { readonly Auto: "auto"; readonly Default: "default"; readonly Flex: "flex"; readonly Priority: "priority"; }; export type ServiceTier = ClosedEnum; export type PrefillThink = boolean | string; export type Generation = { instructions?: string | undefined; temperature?: number | undefined; topP?: number | undefined; maxOutputTokens?: number | undefined; /** * lm-eval alias for max_output_tokens. */ maxGenToks?: number | undefined; stop?: string | Array | undefined; /** * lm-eval generate_until stop sequences. */ until?: Array | undefined; maxToolCalls?: number | undefined; reasoning?: any | undefined; text?: any | undefined; tools?: Array | undefined; toolChoice?: any | undefined; parallelToolCalls?: boolean | undefined; truncation?: Truncation | undefined; serviceTier?: ServiceTier | undefined; presencePenalty?: number | undefined; frequencyPenalty?: number | undefined; topK?: number | undefined; minP?: number | undefined; repetitionPenalty?: number | undefined; doSample?: boolean | undefined; extraBody?: { [k: string]: any; } | undefined; chatTemplateKwargs?: { [k: string]: any; } | undefined; prefillThink?: boolean | string | undefined; useCache?: boolean | undefined; timeoutSeconds?: number | undefined; maxRetries?: number | undefined; maxEmptyRetries?: number | undefined; additionalProperties?: { [k: string]: any; } | undefined; }; export type RequestCounts = { total: number; completed: number; failed: number; }; /** * OK */ export type CreateEvalRunResponseBody = { id: string; object: "eval.run"; suiteId: string; suiteVersion: number; suiteVersionId: string; /** * The org that owns this run. */ orgId: string; /** * The team that owns this run. */ teamId: string; status: components.EvalRunStatus; models: Array; taskIds: Array | null; judgeModel: string | null; embeddingModel: string | null; generation: Generation; requestCounts: RequestCounts; metrics: { [k: string]: any; } | null; error: { [k: string]: any; } | null; artifactFileIds: Array; metadata: { [k: string]: string; }; createdAt: number; startedAt: number | null; completedAt: number | null; cancelledAt: number | null; failedAt: number | null; }; /** @internal */ export declare const CreateEvalRunRequest$inboundSchema: z.ZodType; /** @internal */ export type CreateEvalRunRequest$Outbound = { "X-On-Behalf-Of"?: string | undefined; CreateEvalRunRequest: components.CreateEvalRunRequest$Outbound; }; /** @internal */ export declare const CreateEvalRunRequest$outboundSchema: z.ZodType; export declare function createEvalRunRequestToJSON(createEvalRunRequest: CreateEvalRunRequest): string; export declare function createEvalRunRequestFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Stop$inboundSchema: z.ZodType; /** @internal */ export type Stop$Outbound = string | Array; /** @internal */ export declare const Stop$outboundSchema: z.ZodType; export declare function stopToJSON(stop: Stop): string; export declare function stopFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Truncation$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const Truncation$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ServiceTier$inboundSchema: z.ZodNativeEnum; /** @internal */ export declare const ServiceTier$outboundSchema: z.ZodNativeEnum; /** @internal */ export declare const PrefillThink$inboundSchema: z.ZodType; /** @internal */ export type PrefillThink$Outbound = boolean | string; /** @internal */ export declare const PrefillThink$outboundSchema: z.ZodType; export declare function prefillThinkToJSON(prefillThink: PrefillThink): string; export declare function prefillThinkFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Generation$inboundSchema: z.ZodType; /** @internal */ export type Generation$Outbound = { instructions?: string | undefined; temperature?: number | undefined; top_p?: number | undefined; max_output_tokens?: number | undefined; max_gen_toks?: number | undefined; stop?: string | Array | undefined; until?: Array | undefined; max_tool_calls?: number | undefined; reasoning?: any | undefined; text?: any | undefined; tools?: Array | undefined; tool_choice?: any | undefined; parallel_tool_calls?: boolean | undefined; truncation?: string | undefined; service_tier?: string | undefined; presence_penalty?: number | undefined; frequency_penalty?: number | undefined; top_k?: number | undefined; min_p?: number | undefined; repetition_penalty?: number | undefined; do_sample?: boolean | undefined; extra_body?: { [k: string]: any; } | undefined; chat_template_kwargs?: { [k: string]: any; } | undefined; prefill_think?: boolean | string | undefined; use_cache?: boolean | undefined; timeout_seconds?: number | undefined; max_retries?: number | undefined; max_empty_retries?: number | undefined; [additionalProperties: string]: unknown; }; /** @internal */ export declare const Generation$outboundSchema: z.ZodType; export declare function generationToJSON(generation: Generation): string; export declare function generationFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const RequestCounts$inboundSchema: z.ZodType; /** @internal */ export type RequestCounts$Outbound = { total: number; completed: number; failed: number; }; /** @internal */ export declare const RequestCounts$outboundSchema: z.ZodType; export declare function requestCountsToJSON(requestCounts: RequestCounts): string; export declare function requestCountsFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const CreateEvalRunResponseBody$inboundSchema: z.ZodType; /** @internal */ export type CreateEvalRunResponseBody$Outbound = { id: string; object: "eval.run"; suite_id: string; suite_version: number; suite_version_id: string; org_id: string; team_id: string; status: string; models: Array; task_ids: Array | null; judge_model: string | null; embedding_model: string | null; generation: Generation$Outbound; request_counts: RequestCounts$Outbound; metrics: { [k: string]: any; } | null; error: { [k: string]: any; } | null; artifact_file_ids: Array; metadata: { [k: string]: string; }; created_at: number; started_at: number | null; completed_at: number | null; cancelled_at: number | null; failed_at: number | null; }; /** @internal */ export declare const CreateEvalRunResponseBody$outboundSchema: z.ZodType; export declare function createEvalRunResponseBodyToJSON(createEvalRunResponseBody: CreateEvalRunResponseBody): string; export declare function createEvalRunResponseBodyFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=createevalrun.d.ts.map