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

9 lines (8 loc) 486 B
import { AiScenarioSetupSection } from '../../testScript/modelTypes'; import { replacePlaceholders } from './replacePlaceholders'; export interface PromptGeneratorResult { placeholderValues: Record<string, string>; placeholdersFound: boolean; prompt: string; } export declare function promptGenerator(scenario: Pick<AiScenarioSetupSection, 'prompt' | 'placeholders'>, updatePrompt?: typeof replacePlaceholders, randomIndex?: (max: number) => number): PromptGeneratorResult;