import { EmbeddingOptions, ExecutionOptions, LLMCache, LLMMeta, EmbeddingOutput, BaseLLMTokenizeOutput, GenerateOptions, StreamGenerateOptions, AsyncStream, BaseLLMEvents } from '../../llms/base.js'; import { ChatLLMOutput, ChatLLMGenerateEvents, ChatLLM } from '../../llms/chat.js'; import { BaseMessage } from '../../llms/primitives/message.js'; import { E as Emitter } from '../../emitter-l0W9gC1A.js'; import { AwsCredentialIdentity, Provider } from '@aws-sdk/types'; import { ContentBlockDeltaEvent, ConverseCommandOutput, BedrockRuntimeClient, InferenceConfiguration, Message, SystemContentBlock } from '@aws-sdk/client-bedrock-runtime'; import { GetRunContext } from '../../context.js'; import '../../errors.js'; import '../../internals/types.js'; import '../../internals/helpers/guards.js'; import '../../internals/serializable.js'; import '../../cache/base.js'; import 'promise-based-task'; import '../../internals/helpers/promise.js'; type Response = ContentBlockDeltaEvent | ConverseCommandOutput; interface BedrockEmbeddingOptions extends EmbeddingOptions { body?: Record; } declare class ChatBedrockOutput extends ChatLLMOutput { readonly responses: Response[]; constructor(response: Response); get messages(): BaseMessage[]; getTextContent(): string; merge(other: ChatBedrockOutput): void; toString(): string; createSnapshot(): { responses: Response[]; }; loadSnapshot(snapshot: ReturnType): void; } interface Input { modelId?: string; region?: string; client?: BedrockRuntimeClient; credentials?: AwsCredentialIdentity | Provider; parameters?: InferenceConfiguration; executionOptions?: ExecutionOptions; cache?: LLMCache; } type BedrockChatLLMEvents = ChatLLMGenerateEvents; declare class BedrockChatLLM extends ChatLLM { readonly emitter: Emitter; readonly client: BedrockRuntimeClient; readonly parameters: Partial; constructor({ client, modelId, region, credentials, parameters, executionOptions, cache, }?: Input); meta(): Promise; embed(input: BaseMessage[][], options?: BedrockEmbeddingOptions): Promise; tokenize(input: BaseMessage[]): Promise; protected _generate(input: BaseMessage[], _options: Partial, run: GetRunContext): Promise; protected _stream(input: BaseMessage[], _options: StreamGenerateOptions | undefined, run: GetRunContext): AsyncStream; createSnapshot(): { client: BedrockRuntimeClient; modelId: string; parameters: Partial; executionOptions: ExecutionOptions; emitter: Emitter>; cache: LLMCache; }; protected convertToConverseMessages(messages: BaseMessage[]): { conversation: Message[]; systemMessage: SystemContentBlock[]; }; } export { BedrockChatLLM, type BedrockChatLLMEvents, type BedrockEmbeddingOptions, ChatBedrockOutput };