GTPyhop is a planning framework based on Hierarchical Task Networks (HTNs). It focuses on decomposing high-level goals into smaller, actionable tasks dynamically, similar to how a planner works. Here's a comparison between GTPyhop and a behavior tree, explained using an example of an AI interacting with a chair in a game.
GTPyhop starts with a high-level goal (e.g., "make the room secure") and breaks it into subtasks. It dynamically evaluates how to achieve those goals based on the current state of the game.