import * as z from "zod/v4"; import * as discriminatedUnionTypes from "../types/discriminatedUnion.js"; import { Result as SafeParseResult } from "../types/fp.js"; import { CostDetails } from "./costdetails.js"; import { DecisionsBoxAnswer } from "./decisionsboxanswer.js"; import { DecisionsChoiceAnswer } from "./decisionschoiceanswer.js"; import { DecisionsNoulAnswer } from "./decisionsnoulanswer.js"; import { DecisionsRefusalAnswer } from "./decisionsrefusalanswer.js"; import { DecisionsScoreAnswer } from "./decisionsscoreanswer.js"; import { DecisionsUrlCitationAnnotation } from "./decisionsurlcitationannotation.js"; import { DecisionsUsageInputTokensDetails } from "./decisionsusageinputtokensdetails.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; /** * A Decisions answer using a boolean, choice, score, or image bounding-box evaluation, or a refusal of that question. */ export type DecisionsResponseAnswers = DecisionsBoxAnswer | DecisionsChoiceAnswer | DecisionsNoulAnswer | DecisionsRefusalAnswer | DecisionsScoreAnswer | discriminatedUnionTypes.Unknown<"type">; export type DecisionsResponseUsage = { /** * What OpenRouter charges for the request, in credits. On a BYOK request this is the OpenRouter fee only. */ cost?: number | undefined; /** * Breakdown of upstream inference costs */ costDetails?: CostDetails | null | undefined; inputTokens: number; /** * Of `input_tokens`, those the provider served from its prompt cache. */ inputTokensDetails?: DecisionsUsageInputTokensDetails | undefined; /** * Whether a request was made using a Bring Your Own Key configuration */ isByok?: boolean | undefined; outputTokens: number; }; export type DecisionsResponse = { /** * Sources for the request as a whole, when the provider returns them. Not attributed to individual answers. */ annotations?: Array | undefined; answers: { [k: string]: DecisionsBoxAnswer | DecisionsChoiceAnswer | DecisionsNoulAnswer | DecisionsRefusalAnswer | DecisionsScoreAnswer | discriminatedUnionTypes.Unknown<"type">; }; id?: string | undefined; model: string; provider?: string | undefined; usage: DecisionsResponseUsage; }; /** @internal */ export declare const DecisionsResponseAnswers$inboundSchema: z.ZodType; export declare function decisionsResponseAnswersFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DecisionsResponseUsage$inboundSchema: z.ZodType; export declare function decisionsResponseUsageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const DecisionsResponse$inboundSchema: z.ZodType; export declare function decisionsResponseFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=decisionsresponse.d.ts.map