import { Message, TaskConfiguration, Example } from './types'; import * as webllm from "@mlc-ai/web-llm"; declare class TaskFactory { /** * Converts examples of user-assistant interactions into messages for the chat request. * @param examples - An array of example interactions. * @returns An array of messages formatted for the chat request. */ convertExamplesToMessages(examples: Example[]): Message[]; /** * Creates a chat completion request based on the provided task configuration. * @param config - The task configuration to generate the chat completion request. * @returns The chat completion request in the format required by the API. */ createChatCompletionRequest(config: TaskConfiguration): webllm.ChatCompletionRequestNonStreaming; } export default TaskFactory;