UNPKG

@ovotech/genesys-web-messaging-tester-cli

Version:
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 {};