Object.defineProperty(exports, Symbol.toStringTag, { value: "Module" });
const require_runtime = require("../_virtual/_rolldown/runtime.cjs");
const require_data = require("./content/data.cjs");
const require_message = require("./message.cjs");
const require_base = require("./base.cjs");
const require_metadata = require("./metadata.cjs");
const require_messages_tool = require("./tool.cjs");
const require_ai = require("./ai.cjs");
const require_chat = require("./chat.cjs");
const require_function = require("./function.cjs");
const require_human = require("./human.cjs");
const require_modifier = require("./modifier.cjs");
const require_system = require("./system.cjs");
const require_utils = require("./utils.cjs");
const require_transformers = require("./transformers.cjs");
const require_index = require("./content/index.cjs");
//#region src/messages/index.ts
var messages_exports = /* @__PURE__ */ require_runtime.__exportAll({
	AIMessage: () => require_ai.AIMessage,
	AIMessageChunk: () => require_ai.AIMessageChunk,
	BaseMessage: () => require_base.BaseMessage,
	BaseMessageChunk: () => require_base.BaseMessageChunk,
	ChatMessage: () => require_chat.ChatMessage,
	ChatMessageChunk: () => require_chat.ChatMessageChunk,
	DEFAULT_MERGE_IGNORE_KEYS: () => require_base.DEFAULT_MERGE_IGNORE_KEYS,
	FunctionMessage: () => require_function.FunctionMessage,
	FunctionMessageChunk: () => require_function.FunctionMessageChunk,
	HumanMessage: () => require_human.HumanMessage,
	HumanMessageChunk: () => require_human.HumanMessageChunk,
	KNOWN_BLOCK_TYPES: () => require_index.KNOWN_BLOCK_TYPES,
	RemoveMessage: () => require_modifier.RemoveMessage,
	SystemMessage: () => require_system.SystemMessage,
	SystemMessageChunk: () => require_system.SystemMessageChunk,
	ToolMessage: () => require_messages_tool.ToolMessage,
	ToolMessageChunk: () => require_messages_tool.ToolMessageChunk,
	_isMessageFieldWithRole: () => require_base._isMessageFieldWithRole,
	_mergeDicts: () => require_base._mergeDicts,
	_mergeLists: () => require_base._mergeLists,
	_mergeObj: () => require_base._mergeObj,
	_mergeStatus: () => require_base._mergeStatus,
	coerceMessageLikeToMessage: () => require_utils.coerceMessageLikeToMessage,
	collapseToolCallChunks: () => require_utils.collapseToolCallChunks,
	convertToChunk: () => require_utils.convertToChunk,
	convertToOpenAIImageBlock: () => require_data.convertToOpenAIImageBlock,
	convertToProviderContentBlock: () => require_data.convertToProviderContentBlock,
	defaultTextSplitter: () => require_transformers.defaultTextSplitter,
	defaultToolCallParser: () => require_messages_tool.defaultToolCallParser,
	filterMessages: () => require_transformers.filterMessages,
	getBufferString: () => require_utils.getBufferString,
	iife: () => require_utils.iife,
	isAIMessage: () => require_ai.isAIMessage,
	isAIMessageChunk: () => require_ai.isAIMessageChunk,
	isBase64ContentBlock: () => require_data.isBase64ContentBlock,
	isBaseMessage: () => require_base.isBaseMessage,
	isBaseMessageChunk: () => require_base.isBaseMessageChunk,
	isChatMessage: () => require_chat.isChatMessage,
	isChatMessageChunk: () => require_chat.isChatMessageChunk,
	isDataContentBlock: () => require_data.isDataContentBlock,
	isDirectToolOutput: () => require_messages_tool.isDirectToolOutput,
	isFunctionMessage: () => require_function.isFunctionMessage,
	isFunctionMessageChunk: () => require_function.isFunctionMessageChunk,
	isHumanMessage: () => require_human.isHumanMessage,
	isHumanMessageChunk: () => require_human.isHumanMessageChunk,
	isIDContentBlock: () => require_data.isIDContentBlock,
	isMessage: () => require_message.isMessage,
	isOpenAIToolCallArray: () => require_base.isOpenAIToolCallArray,
	isPlainTextContentBlock: () => require_data.isPlainTextContentBlock,
	isSystemMessage: () => require_system.isSystemMessage,
	isSystemMessageChunk: () => require_system.isSystemMessageChunk,
	isToolMessage: () => require_messages_tool.isToolMessage,
	isToolMessageChunk: () => require_messages_tool.isToolMessageChunk,
	isURLContentBlock: () => require_data.isURLContentBlock,
	mapChatMessagesToStoredMessages: () => require_utils.mapChatMessagesToStoredMessages,
	mapStoredMessageToChatMessage: () => require_utils.mapStoredMessageToChatMessage,
	mapStoredMessagesToChatMessages: () => require_utils.mapStoredMessagesToChatMessages,
	mergeContent: () => require_base.mergeContent,
	mergeMessageRuns: () => require_transformers.mergeMessageRuns,
	mergeResponseMetadata: () => require_metadata.mergeResponseMetadata,
	mergeUsageMetadata: () => require_metadata.mergeUsageMetadata,
	parseBase64DataUrl: () => require_data.parseBase64DataUrl,
	parseMimeType: () => require_data.parseMimeType,
	trimMessages: () => require_transformers.trimMessages
});
//#endregion
exports.AIMessage = require_ai.AIMessage;
exports.AIMessageChunk = require_ai.AIMessageChunk;
exports.BaseMessage = require_base.BaseMessage;
exports.BaseMessageChunk = require_base.BaseMessageChunk;
exports.ChatMessage = require_chat.ChatMessage;
exports.ChatMessageChunk = require_chat.ChatMessageChunk;
exports.DEFAULT_MERGE_IGNORE_KEYS = require_base.DEFAULT_MERGE_IGNORE_KEYS;
exports.FunctionMessage = require_function.FunctionMessage;
exports.FunctionMessageChunk = require_function.FunctionMessageChunk;
exports.HumanMessage = require_human.HumanMessage;
exports.HumanMessageChunk = require_human.HumanMessageChunk;
exports.KNOWN_BLOCK_TYPES = require_index.KNOWN_BLOCK_TYPES;
exports.RemoveMessage = require_modifier.RemoveMessage;
exports.SystemMessage = require_system.SystemMessage;
exports.SystemMessageChunk = require_system.SystemMessageChunk;
exports.ToolMessage = require_messages_tool.ToolMessage;
exports.ToolMessageChunk = require_messages_tool.ToolMessageChunk;
exports._isMessageFieldWithRole = require_base._isMessageFieldWithRole;
exports._mergeDicts = require_base._mergeDicts;
exports._mergeLists = require_base._mergeLists;
exports._mergeObj = require_base._mergeObj;
exports._mergeStatus = require_base._mergeStatus;
exports.coerceMessageLikeToMessage = require_utils.coerceMessageLikeToMessage;
exports.collapseToolCallChunks = require_utils.collapseToolCallChunks;
exports.convertToChunk = require_utils.convertToChunk;
exports.convertToOpenAIImageBlock = require_data.convertToOpenAIImageBlock;
exports.convertToProviderContentBlock = require_data.convertToProviderContentBlock;
exports.defaultTextSplitter = require_transformers.defaultTextSplitter;
exports.defaultToolCallParser = require_messages_tool.defaultToolCallParser;
exports.filterMessages = require_transformers.filterMessages;
exports.getBufferString = require_utils.getBufferString;
exports.iife = require_utils.iife;
exports.isAIMessage = require_ai.isAIMessage;
exports.isAIMessageChunk = require_ai.isAIMessageChunk;
exports.isBase64ContentBlock = require_data.isBase64ContentBlock;
exports.isBaseMessage = require_base.isBaseMessage;
exports.isBaseMessageChunk = require_base.isBaseMessageChunk;
exports.isChatMessage = require_chat.isChatMessage;
exports.isChatMessageChunk = require_chat.isChatMessageChunk;
exports.isDataContentBlock = require_data.isDataContentBlock;
exports.isDirectToolOutput = require_messages_tool.isDirectToolOutput;
exports.isFunctionMessage = require_function.isFunctionMessage;
exports.isFunctionMessageChunk = require_function.isFunctionMessageChunk;
exports.isHumanMessage = require_human.isHumanMessage;
exports.isHumanMessageChunk = require_human.isHumanMessageChunk;
exports.isIDContentBlock = require_data.isIDContentBlock;
exports.isMessage = require_message.isMessage;
exports.isOpenAIToolCallArray = require_base.isOpenAIToolCallArray;
exports.isPlainTextContentBlock = require_data.isPlainTextContentBlock;
exports.isSystemMessage = require_system.isSystemMessage;
exports.isSystemMessageChunk = require_system.isSystemMessageChunk;
exports.isToolMessage = require_messages_tool.isToolMessage;
exports.isToolMessageChunk = require_messages_tool.isToolMessageChunk;
exports.isURLContentBlock = require_data.isURLContentBlock;
exports.mapChatMessagesToStoredMessages = require_utils.mapChatMessagesToStoredMessages;
exports.mapStoredMessageToChatMessage = require_utils.mapStoredMessageToChatMessage;
exports.mapStoredMessagesToChatMessages = require_utils.mapStoredMessagesToChatMessages;
exports.mergeContent = require_base.mergeContent;
exports.mergeMessageRuns = require_transformers.mergeMessageRuns;
exports.mergeResponseMetadata = require_metadata.mergeResponseMetadata;
exports.mergeUsageMetadata = require_metadata.mergeUsageMetadata;
Object.defineProperty(exports, "messages_exports", {
	enumerable: true,
	get: function() {
		return messages_exports;
	}
});
exports.parseBase64DataUrl = require_data.parseBase64DataUrl;
exports.parseMimeType = require_data.parseMimeType;
exports.trimMessages = require_transformers.trimMessages;

//# sourceMappingURL=index.cjs.map