conversation-engine
Version:
A powerful wrapper around the OpenAI API, providing additional features and making it easier to interact with AI models. Seamlessly chat with your AI assistant, include context strings, and manage conversation history.
9 lines (8 loc) • 364 B
TypeScript
import { Message } from '../types.js';
/**
* Takes an array of context strings and formats them into a single Message object with the 'user' role.
*
* @param contexts An array of context strings.
* @returns A Message object containing the concatenated context strings.
*/
export declare function createContextFromStrings(contexts?: string[]): Message | null;