UNPKG

mahler

Version:

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

23 lines 973 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Aborted = exports.SearchFailed = exports.MethodExpansionEmpty = exports.LoopDetected = exports.ConditionNotMet = exports.PlanningError = void 0; class PlanningError extends Error { event = 'error'; constructor(reason, cause) { super(reason, { cause }); } } exports.PlanningError = PlanningError; exports.ConditionNotMet = new PlanningError('Task condition was not met'); exports.LoopDetected = new PlanningError('A loop was introduced by the task'); exports.MethodExpansionEmpty = new PlanningError('No instructions were returned by this method'); exports.SearchFailed = new PlanningError('No more applicable tasks found at this search depth'); class Aborted extends PlanningError { stats; constructor(cause, stats) { super(cause.message ?? cause, cause); this.stats = stats; } } exports.Aborted = Aborted; //# sourceMappingURL=types.js.map