Function that converts an array of messages into a single string prompt that can be used as input for a chat model. It delegates the conversion logic to the appropriate provider-specific function.
convertMessagesToPrompt(
messages: BaseMessage<MessageStructure<MessageToolSet>, MessageType>[],
provider: string
): string| Name | Type | Description |
|---|---|---|
messages* | BaseMessage<MessageStructure<MessageToolSet>, MessageType>[] | Array of messages to be converted. |
provider* | string |