@presidio-dev/factifai-agent
Version:
An AI powered browser automation testing agent powered by LLMs.
37 lines • 1.49 kB
TypeScript
export declare const PLAYWRIGHT_DIR_NAME = "playwright";
export declare const ACTIONS_SUBDIR_NAME = "actions";
export declare const SCRIPTS_SUBDIR_NAME = "scripts";
/**
* Store a successful action by appending to actions.json file
* @param sessionId The session ID
* @param action The action data to store
* @returns Path to the actions file
*/
export declare function storeSuccessfulAction(sessionId: string, action: any): string;
/**
* Get all actions for a session from the actions.json file
* @param sessionId The session ID
* @returns Array of stored actions
*/
export declare function getSessionActions(sessionId: string): any[];
/**
* Get the path to the actions.json file for a session
* @param sessionId The session ID
* @returns Path to the actions file
*/
export declare function getActionsFilePath(sessionId: string): string;
/**
* Get the path to the scripts directory for a session
* @param sessionId The session ID
* @returns Path to the scripts directory
*/
export declare function getScriptsDirectoryPath(sessionId: string): string;
/**
* Process and store successful action from messages
* @param sessionId The session ID
* @param messages Array of messages to search for tool calls
* @param verificationExplanation Optional explanation from verification result
* @returns void
*/
export declare function processSuccessfulAction(sessionId: string, messages: any[], verificationExplanation?: string): void;
//# sourceMappingURL=action-extractor.d.ts.map