UNPKG

donobu

Version:

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

23 lines 913 B
import { Page } from 'playwright'; import { GptClient } from '../clients/GptClient'; import { FlowMetadata } from './FlowMetadata'; import { ProposedToolCall } from './ProposedToolCall'; import { ToolCall } from './ToolCall'; import { ToolTipper } from '../managers/ToolTipper'; import { FlowsPersistence } from '../persistence/FlowsPersistence'; import { DonobuFlowsManager } from '../managers/DonobuFlowsManager'; /** * This is supplied as context when invoking a tool. */ export type ToolCallContext = { readonly flowsManager: DonobuFlowsManager; readonly persistence: FlowsPersistence; readonly gptClient: GptClient | null; readonly toolTipper: ToolTipper; readonly proposedToolCalls: ProposedToolCall<any>[]; readonly invokedToolCalls: ToolCall[]; page: Page; readonly metadata: FlowMetadata; readonly toolCallId: string; }; //# sourceMappingURL=ToolCallContext.d.ts.map