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

16 lines (15 loc) 592 B
import { Utterance } from '../chatCompletionClients/chatCompletionClient'; interface Reason { type: 'fail' | 'pass'; description: string; } export interface ShouldEndConversationEndedResult { hasEnded: true; reason: Reason; } export interface ShouldEndConversationNotEndedResult { hasEnded: false; } export type ShouldEndConversationResult = ShouldEndConversationEndedResult | ShouldEndConversationNotEndedResult; export declare function shouldEndConversation(utterances: Utterance[], failPhrases: string[], passPhrases: string[]): ShouldEndConversationResult; export {};