mahler
Version:
A automated task composer and HTN based planner for building autonomous system agents
11 lines (10 loc) • 509 B
TypeScript
import type { Task, TaskOp } from '../task';
import type { PathType, Root } from '../path';
import type { Operation } from '../operation';
/**
* Identify if a task is applicable for a specific operation
*
* A task is applicable if the task operation as the operation op, and if the task path matches the operation
* path
*/
export declare function isTaskApplicable<TState = any, TPath extends PathType = Root, TOp extends TaskOp = 'update'>(t: Task<TState, TPath, TOp>, o: Operation<any, any>): boolean;