Skip to content

armgit / camel

Public Imported from GitHub
0

🐫 CAMEL: The first and the best multi-agent framework. Finding the Scaling Law of Agents. https://www.camel-ai.org

fix: migrate Pydantic to new interface (#2613)

Emmanuel Ferdman47de71050204
diff --git a/camel/datasets/models.py b/camel/datasets/models.py
index 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()
@classmethod
def from_dict(cls, data: Dict[str, Any]) -> 'DataPoint':