UNPKG

mahler

Version:

A automated task composer and HTN based planner for building autonomous system agents

15 lines 473 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.runTask = runTask; const zip_1 = require("./zip"); /** * Run the task on a given state and context * * If the given task is a Method task, it expands the task first in * a sequential fashion and runs all the returned actions */ async function runTask(task, state, args) { const doTask = (0, zip_1.zip)(task(args)); return doTask(state); } //# sourceMappingURL=run-task.js.map