UNPKG

@offshorly/chatbot-frontend-package

Version:
21 lines (20 loc) 1.15 kB
import { Dataset, Summary, GetDatasetFileActionResponse } from "../lib/types"; export declare function getDatasetFileAction(fileName: string): Promise<GetDatasetFileActionResponse>; export declare function createSummaryAction(dataset: string, createSummaryUrl?: string): Promise<Summary>; export declare function getSummaryAction(dataset: string, getSummaryUrl?: string): Promise<Dataset>; export declare function createDatasetPromptAction(dataset: string, body: { prompt: string; context: string; }, createDatasetPromptUrl?: string): Promise<any>; export declare function createDatasetStepsAction(dataset: string, body: { prompt: string; answer: string; chat_memory: string[]; }, createDatasetStepsUrl?: string): Promise<any>; export declare function createQuickMessages(dataset: string, body: { messages: string[]; }, createQuickMessagesUrl?: string): Promise<any>; export declare function clearConversationAction(dataset: string, clearConversationUrl?: string): Promise<{ message: string; }>; export declare function audioToText(dataset: string, audioFile: Blob, audioToTextUrl?: string): Promise<any>;