UNPKG

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

Version:
29 lines (28 loc) 1.64 kB
import { ValidationError } from 'joi'; import { ShouldEndConversationEndedResult } from './prompt/shouldEndConversation'; import { TranscribedMessage } from '@ovotech/genesys-web-messaging-tester'; import { PreflightError } from './chatCompletionClients/chatCompletionClient'; import { PromptGeneratorResult } from './prompt/generation/promptGenerator'; import { SaveOutputJsResultFailed } from './output/saveOutputJson'; export declare class Ui { /** * Given the extensive use of Chalk in here, this utility method makes it clear * that trailing newlines are safer encoded outside the Chalk string. * * @see https://github.com/ovotech/genesys-web-messaging-tester/issues/20#issuecomment-1246630078 */ private static trailingNewline; validatingOpenAiEnvValidationFailed(error: ValidationError | undefined): string; onlyOnePromptSupported(totalPrompts: number): string; validatingSessionConfigFailed(error: ValidationError | undefined): string; errorDeterminingAiProvider(): string; validatingGcpProjectLocationConfigFailed(error: ValidationError | undefined): string; errorReadingTestScriptFile(error: Error): string; validatingPromptScriptFailed(error: ValidationError | undefined): string; preflightCheckFailure(aiProvider: string, error: PreflightError): string; displayPlaceholders({ placeholderValues }: PromptGeneratorResult): string; conversationStartHeader(): string; testResult(result: ShouldEndConversationEndedResult): string; messageTranscribed(msg: TranscribedMessage): string; savingOutputFailed(result: SaveOutputJsResultFailed): string; }