/** * Copyright 2025 Vybestack LLC * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. */ import type { IContent } from '../../services/history/IContent.js'; import type { Config } from '../../config/config.js'; type ResponsesContentPart = { type: 'input_text'; text: string; } | { type: 'input_image'; image_url: string; } | { type: 'input_file'; file_data: string; filename?: string; }; export type ResponsesInputItem = { role: 'user' | 'assistant' | 'system'; content?: string | ResponsesContentPart[]; } | { type: 'function_call'; call_id: string; name: string; arguments: string; } | { type: 'function_call_output'; call_id: string; output: string; }; export declare function buildResponsesInputFromContent(content: IContent[], systemPrompt?: string, config?: Config): ResponsesInputItem[]; export {};