UNPKG

mahler

Version:

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

10 lines (9 loc) 497 B
import type { Task, TaskOp, TaskArgs } from '../task'; import type { Root, PathType } from '../path'; /** * 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 */ export declare function runTask<TState = unknown, TPath extends PathType = Root, TOp extends TaskOp = 'update'>(task: Task<TState, TPath, TOp>, state: TState, args: TaskArgs<TState, TPath, TOp>): Promise<TState>;