lexica-dialog-core
Version:
Core server for Lexica dialog agent.
10 lines (9 loc) • 744 B
TypeScript
import { BotResponse } from './Api';
import { Map, List } from 'immutable';
import { Config } from 'lexica-dialog-model/dist/Config';
import { Message, Response } from 'lexica-dialog-model/dist/Intent';
declare function intentResponsesToBotResponses(responses: Response[], features: Map<string, any>, locale: string): List<BotResponse>;
declare function intentResponseToBotResponse(response: Response, features: Map<string, any>, locale: string): List<BotResponse>;
declare function extractMessage(messages: Message[], feature: Map<string, string>, locale: string): string;
declare function toConfigMap(configs: Config[]): Map<string, Config>;
export { intentResponsesToBotResponses, intentResponseToBotResponse, extractMessage, toConfigMap };