@wix-pilot/core
Version:
A flexible plugin that drives your tests with human-written commands, enhanced by the power of large language models (LLMs)
16 lines (15 loc) • 736 B
TypeScript
import { PreviousStep, TestingFrameworkAPICatalog, TestingFrameworkAPICatalogCategory } from "../../types";
export declare class StepPerformerPromptCreator {
readonly apiCatalog: TestingFrameworkAPICatalog;
private apiFormatter;
constructor(apiCatalog: TestingFrameworkAPICatalog);
extendAPICategories(newCategories: TestingFrameworkAPICatalogCategory[]): void;
private mergeCategories;
createPrompt(intent: string, viewHierarchy: string, isSnapshotImageAttached: boolean, previousSteps: PreviousStep[]): string;
private createBasePrompt;
private createContext;
private createAPIInfo;
private createInstructions;
private createStepByStepInstructions;
private previousStepResultOrError;
}