Skip to content

🌟 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.py
index 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 ABC
from typing import List
from anytree import Node, RenderTree
from 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