UNPKG

donobu

Version:

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

22 lines (19 loc) 1.37 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.RunModeSchema = void 0; const v4_1 = require("zod/v4"); exports.RunModeSchema = v4_1.z .enum(['AUTONOMOUS', 'INSTRUCT', 'DETERMINISTIC']) .describe(`The execution mode that determines how a flow operates and makes decisions: - AUTONOMOUS: The flow is driven by an AI agent (GPT) that autonomously decides what actions to take based on the overall objective. The AI analyzes the current page state, determines the next appropriate action, and executes it without human intervention. This mode requires a valid GPT client configuration. - INSTRUCT: The flow waits for explicit user instructions for each action. The user manually directs what tools to call and when, making this mode suitable for guided walkthroughs or when human oversight is required for each step. No GPT client is required. - DETERMINISTIC: The flow executes a predetermined sequence of actions without any decision-making. It runs through a fixed list of tool calls (typically from toolCallsOnStart) and completes when all actions are finished. This mode is commonly used for replaying previously recorded flows or executing scripted sequences.`); //# sourceMappingURL=RunMode.js.map