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.
Array of messages to be converted.
A string prompt that can be used as input for a chat model.
Generated using TypeDoc
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.