jorel
Version:
A unified wrapper for working with LLMs from multiple providers, including streams, images, documents & automatic tool use.
11 lines (10 loc) • 397 B
TypeScript
import { Content } from "@google/genai";
import { LlmMessage } from "../llm-core-provider";
export declare function convertLlmMessagesToGoogleGenerativeAiMessages(messages: LlmMessage[]): {
contents: Content[];
systemInstruction?: string;
};
/**
* Helper function to extract text content from a Content object
*/
export declare function extractTextFromContent(content: Content): string;