Skip to content

Commit

Permalink
Merge pull request #97 from small-thinking/fix-metaclass
Browse files Browse the repository at this point in the history
Update package
  • Loading branch information
yxjiang authored Jul 13, 2024
2 parents 274f53f + 1d1dede commit dfee4f8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion polymind/core/tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ async def _execute(self, input: Message) -> Message:
pass


class OptimizableBaseTool(AbstractTool, dspy.Predict):
class OptimizableBaseTool(AbstractTool, dspy.Predict, metaclass=type(BaseModel)):
def __call__(self, input: Message) -> Message:
self._validate_input_message(input)
output_message = self.forward(**input.content)
Expand Down
4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "polymind"
version = "0.0.55" # Update this version before publishing to PyPI
version = "0.0.56" # Update this version before publishing to PyPI
description = "PolyMind is a customizable collaborative multi-agent framework for collective intelligence and distributed problem solving."
authors = ["TechTao"]
license = "MIT License"
Expand Down Expand Up @@ -49,7 +49,7 @@ skip = ["__init__.py"]
[tool.flake8]
max-line-length = 120
exclude = ["__init__.py"]
ignore = ["Q000"]
ignore = ["Q000", "E203"]

[build-system]
requires = ["poetry-core"]
Expand Down

0 comments on commit dfee4f8

Please sign in to comment.