UNPKG

donobu

Version:

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

29 lines 1.32 kB
import { DonobuAgent } from '../models/DonobuAgentType'; import { AgentsPersistence } from '../persistence/AgentsPersistence'; import { 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>>; /** * Automatically sets the 'flow-runner' agent config to the value at the * DEFAULT_FLOW_RUNNER_GPT_CONFIG_NAME environment variable if it exists. */ private initializeDefaultConfigurations; } //# sourceMappingURL=AgentsManager.d.ts.map