donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
20 lines • 879 B
TypeScript
import type { Request, Response } from 'express';
import type { GptClientFactory } from '../clients/GptClientFactory';
import type { AgentsManager } from '../managers/AgentsManager';
import type { GptConfigsManager } from '../managers/GptConfigsManager';
/**
* This API is a lightweight wrapper for a GPT client.
*/
export declare class AskAiApi {
private readonly gptClientFactory;
private readonly gptConfigsManager;
private readonly agentsManager;
constructor(gptClientFactory: GptClientFactory, gptConfigsManager: GptConfigsManager, agentsManager: AgentsManager);
ask(req: Request, res: Response): Promise<void>;
/**
* If specified, attempts to load the given GPT config by name, otherwise,
* attempts to load the GPT configuration for the 'flow-runner' agent.
*/
private resolveGptConfig;
}
//# sourceMappingURL=AskAiApi.d.ts.map