A task schema is a reusable template that formally defines a class of tasks within a hierarchical task network (HTN) or other automated planning system. It specifies the task's name, input parameters, expected outputs (or effects), and any preconditions that must be true for the task to be applicable. This schema acts as a blueprint, enabling an AI planner or autonomous agent to reason about and manipulate the task as an abstract unit before determining how to achieve it through task decomposition or direct execution.
