UNPKG

n8n

Version:

n8n Workflow Automation Tool

27 lines (22 loc) 1.51 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TASK_OBJECTIVE_GUIDANCE = exports.TASK_OBJECTIVE_FORMAT_RULE = exports.TASK_OBJECTIVE_TEMPLATE = void 0; exports.TASK_OBJECTIVE_TEMPLATE = `## Objective <One sentence: the outcome to achieve on each run and why it matters.> ## Context <Background the agent needs, the inputs and data sources to use, and the time window to consider (e.g. "items created since the previous run").> ## Steps 1. <First action.> 2. <Next action.> ## Output <The exact format of the result AND where to deliver it (e.g. "email a summary to ops@example.com", "post to Slack #alerts", "append a row to the tracking sheet"). The run is unattended, so the agent must actively deliver the result somewhere.> ## Constraints <Scope limits, what to avoid, and what to do when there is nothing to act on (e.g. "if there are no new items, do nothing").> ## Success criteria <A verifiable definition of done for a single run.>`; exports.TASK_OBJECTIVE_FORMAT_RULE = 'The objective is the only message the agent receives on each unattended run, so it must be ' + 'fully self-contained (never rely on the current chat) and must follow this exact Markdown ' + 'structure, with every section filled in with concrete, specific content — no placeholders or ' + 'angle-bracket text:'; exports.TASK_OBJECTIVE_GUIDANCE = `${exports.TASK_OBJECTIVE_FORMAT_RULE}\n\n${exports.TASK_OBJECTIVE_TEMPLATE}`; //# sourceMappingURL=task-objective-template.js.map