[BUGF] changed hiearchical to hierarchical, which was causing bugs #1251
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Summary
Fixed a pervasive misspelling of "hierarchical" as "hiearchical" throughout the entire codebase.
This typo was causing bugs due to mismatches between file names, import paths, class names, and
variable references.
Problem
The misspelling "hiearchical" appeared in:
This mismatch was causing import errors and runtime bugs when trying to use hierarchical swarm
functionality.
Changes Made
Core Source Files (3 renamed):
swarms/prompts/hiearchical_system_prompt.py→hierarchical_system_prompt.pyswarms/structs/hiearchical_swarm.py→hierarchical_swarm.pyswarms/structs/hybrid_hiearchical_peer_swarm.py→hybrid_hierarchical_peer_swarm.pyDirectories (3 renamed):
examples/multi_agent/hiearchical_swarm/→hierarchical_swarm/examples/multi_agent/hierarchical_swarm/hiearchical_examples/→hierarchical_examples/examples/multi_agent/hierarchical_swarm/hiearchical_swarm_ui/→hierarchical_swarm_ui/Content Updates (47 files total):
from swarms.structs.hiearchical_swarm→from swarms.structs.hierarchical_swarmHIEARCHICAL_SWARM_SYSTEM_PROMPT→HIERARCHICAL_SWARM_SYSTEM_PROMPT"HiearchicalSwarm"→"HierarchicalSwarm"hiearchical_swarm.run()→hierarchical_swarm.run())Testing
✅ Verified all imports work correctly:
from swarms.structs.hierarchical_swarm import HierarchicalSwarmfrom swarms.prompts.hierarchical_system_prompt import HIERARCHICAL_SWARM_SYSTEM_PROMPTfrom swarms.structs.hybrid_hierarchical_peer_swarm import HybridHierarchicalClusterSwarm✅ Confirmed zero instances of "hiearchical" remain in codebase
Impact
📚 Documentation preview 📚: https://swarms--1251.org.readthedocs.build/en/1251/