/** * Adapters for converting between Strands SDK types and Gemini API format. * * @internal This module is not part of the public API. */ import { type Content, type GenerateContentResponse, FinishReason as GeminiFinishReason } from '@google/genai'; import type { Message, StopReason } from '../../types/messages.js'; import type { ModelStreamEvent } from '../streaming.js'; import type { GoogleStreamState } from './types.js'; /** * Mapping of Gemini finish reasons to SDK stop reasons. * Only MAX_TOKENS needs explicit mapping; everything else defaults to endTurn. * Tool use stop reason is determined by the hasToolCalls flag in GoogleStreamState, * since Gemini does not have a tool use finish reason. * * @internal */ export declare const FINISH_REASON_MAP: Partial>; /** * Formats an array of messages for the Gemini API. * * @param messages - SDK messages to format * @returns Gemini-formatted contents array * * @internal */ export declare function formatMessages(messages: Message[]): Content[]; /** * Maps a Gemini response chunk to SDK streaming events. * * @param chunk - Gemini response chunk * @param streamState - Mutable state object tracking message and content block state * @returns Array of SDK streaming events * * @internal */ export declare function mapChunkToEvents(chunk: GenerateContentResponse, streamState: GoogleStreamState): ModelStreamEvent[]; //# sourceMappingURL=adapters.d.ts.map