🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org
Python agentai-societiesartificial-intelligencecommunicative-aicooperative-aideep-learninglarge-language-modelsmulti-agent-systemsnatural-language-processing
fix: migrate Pydantic to new interface (#2613)
Emmanuel Ferdman47de71050204
diff --git a/camel/datasets/models.py b/camel/datasets/models.pyindex cf84c400a..b21e6931f 100644--- a/camel/datasets/models.py+++ b/camel/datasets/models.py@@ -46,7 +46,7 @@ class DataPoint(BaseModel):Returns:Dict[str, Any]: Dictionary representation of the DataPoint."""- return self.dict()+ return self.model_dump()@classmethoddef from_dict(cls, data: Dict[str, Any]) -> 'DataPoint':