/** * What every adapter does the same way, said once (2026-11-14). Each adapter keeps only how its provider is spoken to: * the request shape, the tool shape, how an answer is read back. These pieces were copied into each one, and a copy * changed in one adapter was a provider answering differently without anyone deciding it. */ import type { AIJSONOptions, AIMessage } from '../types.js'; /** The system prompt a request carries: the caller's own, then the system messages of the conversation. */ export declare function systemPromptOf(messages: AIMessage[], systemPrompt?: string): string; /** The conversation without its system messages, which every provider takes apart from the turns. */ export declare function turnsOf(messages: AIMessage[]): AIMessage[]; /** One user turn holding a picture and the question about it -- a picture without a type is taken for a PNG. */ export declare function visionTurn(image: Buffer | Uint8Array | { url: string; }, prompt: string): AIMessage[]; /** The system prompt that asks for JSON where a provider has no way to hold an answer to a schema itself. */ export declare function jsonSystemPrompt(options: AIJSONOptions): string; /** An id for a tool call the provider gave none: the loop pairs each result with its call by id. */ export declare function madeCallId(): string; /** A picture's bytes as base64. */ export declare function base64Of(data: Buffer | Uint8Array): string;