donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
23 lines • 1.03 kB
TypeScript
import { Request, Response } from 'express';
import { GptConfigsManager } from '../managers/GptConfigsManager';
import { GptConfig } from '../models/GptConfig';
import { AgentsManager } from '../managers/AgentsManager';
/**
* This API manages the GPT connection configurations available to the Donobu runtime.
*/
export declare class GptConfigsApi {
private readonly gptConfigsManager;
private readonly agentsManager;
private static readonly REDACTED_FIELD_NAMES;
constructor(gptConfigsManager: GptConfigsManager, agentsManager: AgentsManager);
set(req: Request, res: Response): Promise<void>;
get(req: Request, res: Response): Promise<void>;
getAll(_req: Request, res: Response): Promise<void>;
delete(req: Request, res: Response): Promise<void>;
/**
* Redacts sensative data from the given GPT configuration so that the record
* can be safely returned through the API.
*/
static redactSensativeData(config: GptConfig): GptConfig;
}
//# sourceMappingURL=GptConfigsApi.d.ts.map