🌟 The Multi-Agent Framework: First AI Software Company, Towards Natural Language Programming
add ABC deco to ToT base
geekan9bee3ca838e3
diff --git a/metagpt/strategy/base.py b/metagpt/strategy/base.pyindex 5b535ab12..b4b491ae0 100644--- a/metagpt/strategy/base.py+++ b/metagpt/strategy/base.py@@ -2,13 +2,14 @@# @Date : 12/25/2023 9:16 PM# @Author : stellahong ([email protected])# @Desc :+from abc import ABCfrom typing import Listfrom anytree import Node, RenderTreefrom pydantic import BaseModel-class BaseParser(BaseModel):+class BaseParser(BaseModel, ABC):def __call__(self, *args, **kwargs):raise NotImplementedError@@ -22,7 +23,7 @@ class BaseParser(BaseModel):raise NotImplementedError-class BaseEvaluator(BaseModel):+class BaseEvaluator(BaseModel, ABC):def __call__(self, *args, **kwargs):raise NotImplementedError