mirror of
https://github.com/FoundationAgents/MetaGPT.git
synced 2026-06-11 15:15:18 +02:00
added f"Unsupported planner of type {planner_cls}"
This commit is contained in:
parent
2cd4870592
commit
34f2493455
1 changed files with 2 additions and 0 deletions
|
|
@ -47,6 +47,8 @@ class SkAgent(Role):
|
|||
self.planner = planner_cls()
|
||||
elif planner_cls in [SequentialPlanner, ActionPlanner]:
|
||||
self.planner = planner_cls(self.kernel)
|
||||
else:
|
||||
raise f"Unsupported planner of type {planner_cls}"
|
||||
|
||||
self.import_semantic_skill_from_directory = self.kernel.import_semantic_skill_from_directory
|
||||
self.import_skill = self.kernel.import_skill
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue