Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update package #97

Merged
merged 2 commits into from
Jul 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading