UNPKG

donobu

Version:

Create browser automations with an LLM agent and replay them as Playwright scripts.

24 lines 1.13 kB
import type { DonobuAgent } from '../models/DonobuAgentType'; import type { AgentsPersistence } from '../persistence/agents/AgentsPersistence'; import type { GptConfigsManager } from './GptConfigsManager'; /** * This class is responsible for mapping Donobu agents to GPT configurations. */ export declare class AgentsManager { private readonly agentsPersistence; private readonly gptConfigsManager; private constructor(); static create(agentsPersistence: AgentsPersistence, gptConfigsManager: GptConfigsManager): Promise<AgentsManager>; /** * Set the given Donobu agent's with the given GPT configuration by name. If * the given GPT configuration name is non-null, and there is no corresponding * GPT configuration with that name, an exception is thrown. */ set(agent: DonobuAgent, gptConfigName: string | null): Promise<void>; /** * Return the GPT configuration name associated with the given Donobu agent. */ get(agent: DonobuAgent): Promise<string | null>; getAll(): Promise<Map<DonobuAgent, string | null>>; } //# sourceMappingURL=AgentsManager.d.ts.map