UNPKG

@makingchatbots/genesys-cloud-chatbot-tester-cli

Version:

[![npm](https://img.shields.io/npm/v/@makingchatbots/genesys-cloud-chatbot-tester-cli)](https://www.npmjs.com/package/@makingchatbots/genesys-cloud-chatbot-tester-cli) [![Follow me on LinkedIn for updates](https://img.shields.io/badge/Follow%20for%20updat

18 lines (17 loc) 493 B
export interface PreflightError { reasonForError: string; ok: false; } export interface PreflightSuccess { ok: true; } export type PreflightResult = PreflightError | PreflightSuccess; export interface Utterance { role: 'customer' | 'bot'; content: string; } export interface ChatCompletionClient { getProviderName(): string; predict(context: string, conversationUtterances: Utterance[]): Promise<Utterance | null>; preflightCheck(): Promise<PreflightResult>; }