import { z } from 'zod'; import type { Tool } from '@qvac/sdk'; import { type GenerationParams, type ResponseFormat } from './common.js'; export declare const responsesBody: z.ZodObject<{ model: z.ZodString; input: z.ZodUnion]>; instructions: z.ZodOptional; stream: z.ZodOptional; store: z.ZodOptional; previous_response_id: z.ZodOptional; conversation: z.ZodOptional; background: z.ZodOptional; tools: z.ZodOptional; parameters: z.ZodOptional>; }, z.core.$strip>>; }, z.core.$loose>>>; text: z.ZodOptional; response_format: z.ZodOptional; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"json_object">; }, z.core.$strip>, z.ZodObject<{ type: z.ZodLiteral<"json_schema">; json_schema: z.ZodObject<{ name: z.ZodOptional; schema: z.ZodRecord; }, z.core.$loose>; }, z.core.$strip>]>>; temperature: z.ZodOptional; top_p: z.ZodOptional; max_output_tokens: z.ZodOptional; max_tokens: z.ZodOptional; metadata: z.ZodOptional>; parallel_tool_calls: z.ZodOptional; }, z.core.$loose>; export declare const responsesIdParams: z.ZodObject<{ id: z.ZodString; }, z.core.$strip>; export declare const responsesListInputItemsQuery: z.ZodObject<{ limit: z.ZodOptional>; after: z.ZodOptional; }, z.core.$strip>; export declare const RESPONSES_UNSUPPORTED_PARAMS: readonly ["logit_bias", "user", "seed", "logprobs", "top_logprobs", "frequency_penalty", "presence_penalty", "stop", "truncation", "service_tier", "reasoning"]; export declare class UnsupportedToolTypeError extends Error { readonly toolType: string; constructor(toolType: string); } export declare class InvalidResponsesConversationError extends Error { constructor(); } export declare class InvalidResponsesBackgroundError extends Error { constructor(); } export declare function validateResponsesStatefulOptions(body: Record): { previousResponseId: string | undefined; storeEnabled: boolean; }; export declare function extractResponsesResponseFormat(body: Record): ResponseFormat | undefined; interface ResponsesFunctionTool { type: string; name?: string; description?: string; parameters?: Record; } export declare function openaiResponsesToolsToSdk(tools: ResponsesFunctionTool[] | undefined): Tool[] | undefined; export declare function normalizeResponsesInputItemsForStorage(input: unknown): unknown[]; export declare function openaiResponsesInputToHistory(input: unknown, instructions: string | undefined): Array<{ role: string; content: string; }>; export interface StoredResponseLike { inputItems: unknown[]; responseObject: Record; } export declare const RESPONSES_HISTORY_MAX_DEPTH = 32; export declare function historyPrefixFromStoredResponse(stored: StoredResponseLike, resolve?: (id: string) => StoredResponseLike | undefined, maxDepth?: number): Array<{ role: string; content: string; }>; export type ResponsesBody = z.infer; export interface SdkResponsesArgs { history: Array<{ role: string; content: string; }>; tools: Tool[] | undefined; generationParams: GenerationParams | undefined; responseFormat: ResponseFormat | undefined; storeEnabled: boolean; previousResponseId: string | undefined; inputItems: unknown[]; metadata: Record | undefined; temperature: number | undefined; topP: number | undefined; maxOutputTokens: number | undefined; parallelToolCalls: boolean; stream: boolean; } export declare function toSdkResponsesArgs(body: ResponsesBody): SdkResponsesArgs; export {}; //# sourceMappingURL=responses.d.ts.map