UNPKG

@craftapit/tester

Version:

A focused, LLM-powered testing framework for natural language test scenarios

19 lines (18 loc) 653 B
import { BaseAdapter } from './BaseAdapter'; import { ScreenState, UIAction } from '../types/actions'; export declare class LLMAdapter extends BaseAdapter { constructor(config: any); initialize(): Promise<void>; cleanup(): Promise<void>; /** * Complete a prompt with the LLM * @param prompt The prompt to complete * @returns The completion text */ complete(prompt: string): Promise<string>; suggestAction(instruction: string, screenState: ScreenState): Promise<UIAction>; verifyCondition(condition: string, screenState: ScreenState): Promise<{ success: boolean; reason?: string; }>; }