import OpenAI from 'openai'; import { AgentOutputSchema } from '../agent-outputs'; import { Handoff } from '../handoffs'; import { ModelResponse, TResponseInputItem, TResponseStreamEvent } from '../items'; import { Tool } from '../tools'; import { ModelSettings } from './model-settings'; import { Model, ModelTracing } from './interface'; import { ResponseCreateParams, ResponseIncludable, ResponseTextConfig, Tool as OpenAITool } from 'openai/resources/responses/responses'; export declare class Converter { static convertToolChoice(toolChoice: 'auto' | 'required' | 'none' | string | undefined): ResponseCreateParams['tool_choice']; static getResponseFormat(outputSchema: AgentOutputSchema | null): ResponseTextConfig | undefined; static convertTools(tools: Tool[], handoffs: Handoff[]): { tools: OpenAITool[]; includes: ResponseIncludable[]; }; private static convertTool; private static convertHandoffTool; } export declare class OpenAIResponsesModel implements Model { private model; private client; constructor(model: string, client: OpenAI); private nonNullOrUndefined; getResponse(systemInstructions: string | null, input: string | TResponseInputItem[], modelSettings: ModelSettings, tools: Tool[], outputSchema: AgentOutputSchema | null, handoffs: Handoff[], tracing: ModelTracing, previousResponseId?: string): Promise; streamResponse(systemInstructions: string | null, input: string | TResponseInputItem[], modelSettings: ModelSettings, tools: Tool[], outputSchema: AgentOutputSchema | null, handoffs: Handoff[], tracing: ModelTracing, previousResponseId?: string): AsyncIterableIterator; private fetchResponse; }