import * as z from "zod/v4"; import { Result as SafeParseResult } from "../types/fp.js"; import { SDKValidationError } from "./errors/sdkvalidationerror.js"; import { ToolCallStatus } from "./toolcallstatus.js"; export type Stance = { model: string; stance: string; }; export type Contradiction = { stances: Array; topic: string; }; export type PartialCoverage = { models: Array; point: string; }; export type UniqueInsight = { insight: string; model: string; }; /** * Structured analysis produced by the fusion judge model. */ export type Analysis = { blindSpots: Array; consensus: Array; contradictions: Array; partialCoverage: Array; uniqueInsights: Array; }; export type FailedModel = { /** * Error message describing why the model failed. */ error: string; /** * Slug of the analysis model that failed. */ model: string; /** * HTTP status code from the upstream response, when available (e.g. 402, 429). */ statusCode?: number | undefined; }; export type ResponseT = { model: string; }; /** * An openrouter:fusion server tool output item */ export type OutputFusionServerToolItem = { /** * Structured analysis produced by the fusion judge model. */ analysis?: Analysis | undefined; /** * Error message when the fusion run did not produce an analysis result. */ error?: string | undefined; /** * Models that were requested as part of the analysis panel but did not produce a response. Present when at least one requested analysis model failed. The fusion result is still usable but was produced from a degraded panel. */ failedModels?: Array | undefined; /** * Typed failure reason when the fusion run failed. Possible values include: all_panels_failed, insufficient_credits, rate_limited, judge_not_valid_json, judge_schema_mismatch, judge_upstream_error, judge_empty_completion. */ failureReason?: string | undefined; id?: string | undefined; /** * Slugs of the analysis models that produced a response in this fusion run. */ responses?: Array | undefined; status: ToolCallStatus; type: "openrouter:fusion"; }; /** @internal */ export declare const Stance$inboundSchema: z.ZodType; export declare function stanceFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Contradiction$inboundSchema: z.ZodType; export declare function contradictionFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const PartialCoverage$inboundSchema: z.ZodType; export declare function partialCoverageFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const UniqueInsight$inboundSchema: z.ZodType; export declare function uniqueInsightFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const Analysis$inboundSchema: z.ZodType; export declare function analysisFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const FailedModel$inboundSchema: z.ZodType; export declare function failedModelFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const ResponseT$inboundSchema: z.ZodType; export declare function responseFromJSON(jsonString: string): SafeParseResult; /** @internal */ export declare const OutputFusionServerToolItem$inboundSchema: z.ZodType; export declare function outputFusionServerToolItemFromJSON(jsonString: string): SafeParseResult; //# sourceMappingURL=outputfusionservertoolitem.d.ts.map