UNPKG

jorel

Version:

The easiest way to use LLMs, including streams, images, documents, tools and various agent scenarios.

8 lines (7 loc) 320 B
import { LlmMessage } from "../../providers"; import Anthropic from "@anthropic-ai/sdk"; /** Convert unified LLM messages to Anthropic messages */ export declare const convertLlmMessagesToAnthropicMessages: (messages: LlmMessage[]) => Promise<{ systemMessage: string; chatMessages: Anthropic.MessageParam[]; }>;