From 506e9a16d1f43400a03bd1a56cbe5dbc80fe0fe9 Mon Sep 17 00:00:00 2001 From: MervinPraison Date: Thu, 26 Dec 2024 10:50:52 +0000 Subject: [PATCH] adding tools --- Dockerfile | 2 +- agents/example.py | 7 ++++--- agents/pyproject.toml | 2 +- agents/uv.lock | 2 +- docs/api/praisonai/deploy.html | 2 +- poetry.lock | 8 ++++---- praisonai.rb | 2 +- praisonai/deploy.py | 2 +- pyproject.toml | 8 ++++---- uv.lock | 8 ++++---- 10 files changed, 22 insertions(+), 21 deletions(-) diff --git a/Dockerfile b/Dockerfile index 0326b784..2b8582fd 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ FROM python:3.11-slim WORKDIR /app COPY . . -RUN pip install flask praisonai==2.0.14 gunicorn markdown +RUN pip install flask praisonai==2.0.15 gunicorn markdown EXPOSE 8080 CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"] diff --git a/agents/example.py b/agents/example.py index e1229ab2..e3b7f733 100644 --- a/agents/example.py +++ b/agents/example.py @@ -4,7 +4,7 @@ def my_callback(output): print(f"Callback Task output: {output}") -def internet_search_tool(query): +def internet_search_tool(query) -> list: """ Perform a search using DuckDuckGo. @@ -28,6 +28,7 @@ def internet_search_tool(query): except Exception as e: print(f"Error during DuckDuckGo search: {e}") return [] + # Create agents researcher = Agent( name="Researcher", @@ -37,7 +38,7 @@ def internet_search_tool(query): skilled in identifying trends and analyzing complex data.""", verbose=True, allow_delegation=False, - tools=['internet_search_tool'], + tools=[internet_search_tool], llm="gpt-4o", markdown=True ) @@ -61,7 +62,7 @@ def internet_search_tool(query): Find major trends, new technologies, and their effects.""", expected_output="""A detailed report on 2024 AI advancements""", agent=researcher, - tools=['internet_search_tool'] + tools=[internet_search_tool] ) task2 = Task( diff --git a/agents/pyproject.toml b/agents/pyproject.toml index aeba6d16..a6eb8bd2 100644 --- a/agents/pyproject.toml +++ b/agents/pyproject.toml @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta" [project] name = "praisonaiagents" -version = "0.0.6" +version = "0.0.7" description = "Praison AI agents for completing complex tasks with Self Reflection Agents" authors = [ { name="Mervin Praison" } diff --git a/agents/uv.lock b/agents/uv.lock index 7941eb61..1df2ebea 100644 --- a/agents/uv.lock +++ b/agents/uv.lock @@ -186,7 +186,7 @@ wheels = [ [[package]] name = "praisonaiagents" -version = "0.0.6" +version = "0.0.7" source = { editable = "." } dependencies = [ { name = "openai" }, diff --git a/docs/api/praisonai/deploy.html b/docs/api/praisonai/deploy.html index 8ef33626..3f021832 100644 --- a/docs/api/praisonai/deploy.html +++ b/docs/api/praisonai/deploy.html @@ -110,7 +110,7 @@

Raises

file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==2.0.14 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==2.0.15 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/poetry.lock b/poetry.lock index d054b049..94ef68d4 100644 --- a/poetry.lock +++ b/poetry.lock @@ -5476,13 +5476,13 @@ selenium = ">=4.18.1,<5.0.0" [[package]] name = "praisonaiagents" -version = "0.0.6" +version = "0.0.7" description = "Praison AI agents for completing complex tasks with Self Reflection Agents" optional = false python-versions = "*" files = [ - {file = "praisonaiagents-0.0.6-py3-none-any.whl", hash = "sha256:253451077a6cb05fea1378ccebba36ca37339696cc07cc8a5373455cf9907609"}, - {file = "praisonaiagents-0.0.6.tar.gz", hash = "sha256:da173f31d2b447ccfbadb02a60ae63898427e378122eccf187fa03808c1de129"}, + {file = "praisonaiagents-0.0.7-py3-none-any.whl", hash = "sha256:10d0a07f2ccae3c9521a896a0c7b7844ea35ef58cb340e8b2eecab02c23cccb1"}, + {file = "praisonaiagents-0.0.7.tar.gz", hash = "sha256:b216ac5193dbaad277c75f16499304cb2d2e0c2e0169d29a6a5d75b4405d69ca"}, ] [package.dependencies] @@ -8815,4 +8815,4 @@ ui = ["chainlit"] [metadata] lock-version = "2.0" python-versions = ">=3.10,<3.13" -content-hash = "f9c68b4ea4e722bca4f2ff19ee22817ac0b8f6404c41289712dddc715cbde3da" +content-hash = "86b2fd10bb29fe0c92fd56204d608573779fe733056f2a711d139fb8f0407171" diff --git a/praisonai.rb b/praisonai.rb index a4b0d1dc..c4bd404c 100644 --- a/praisonai.rb +++ b/praisonai.rb @@ -3,7 +3,7 @@ class Praisonai < Formula desc "AI tools for various AI applications" homepage "https://github.com/MervinPraison/PraisonAI" - url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/2.0.14.tar.gz" + url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/2.0.15.tar.gz" sha256 "1828fb9227d10f991522c3f24f061943a254b667196b40b1a3e4a54a8d30ce32" # Replace with actual SHA256 checksum license "MIT" diff --git a/praisonai/deploy.py b/praisonai/deploy.py index e8fca491..6cb3584d 100644 --- a/praisonai/deploy.py +++ b/praisonai/deploy.py @@ -56,7 +56,7 @@ def create_dockerfile(self): file.write("FROM python:3.11-slim\n") file.write("WORKDIR /app\n") file.write("COPY . .\n") - file.write("RUN pip install flask praisonai==2.0.14 gunicorn markdown\n") + file.write("RUN pip install flask praisonai==2.0.15 gunicorn markdown\n") file.write("EXPOSE 8080\n") file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n') diff --git a/pyproject.toml b/pyproject.toml index 8500273e..b847edd6 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "PraisonAI" -version = "2.0.14" +version = "2.0.15" description = "PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customization, and efficient human-agent collaboration." readme = "README.md" license = "" @@ -12,7 +12,7 @@ dependencies = [ "rich>=13.7", "markdown>=3.5", "pyparsing>=3.0.0", - "praisonaiagents>=0.0.6", + "praisonaiagents>=0.0.7", "python-dotenv>=0.19.0", "instructor>=1.3.3", "PyYAML>=6.0", @@ -78,7 +78,7 @@ autogen = ["pyautogen>=0.2.19", "praisonai-tools>=0.0.7", "crewai"] [tool.poetry] name = "PraisonAI" -version = "2.0.14" +version = "2.0.15" description = "PraisonAI application combines AutoGen and CrewAI or similar frameworks into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customization, and efficient human-agent collaboration." authors = ["Mervin Praison"] license = "" @@ -96,7 +96,7 @@ python = ">=3.10,<3.13" rich = ">=13.7" markdown = ">=3.5" pyparsing = ">=3.0.0" -praisonaiagents = ">=0.0.6" +praisonaiagents = ">=0.0.7" python-dotenv = ">=0.19.0" instructor = ">=1.3.3" PyYAML = ">=6.0" diff --git a/uv.lock b/uv.lock index 298dc7ba..63a65188 100644 --- a/uv.lock +++ b/uv.lock @@ -3192,7 +3192,7 @@ requires-dist = [ { name = "plotly", marker = "extra == 'realtime'", specifier = ">=5.24.0" }, { name = "praisonai-tools", marker = "extra == 'autogen'", specifier = ">=0.0.7" }, { name = "praisonai-tools", marker = "extra == 'crewai'", specifier = ">=0.0.7" }, - { name = "praisonaiagents", specifier = ">=0.0.6" }, + { name = "praisonaiagents", specifier = ">=0.0.7" }, { name = "pyautogen", marker = "extra == 'autogen'", specifier = ">=0.2.19" }, { name = "pydantic", marker = "extra == 'chat'", specifier = "<=2.10.1" }, { name = "pydantic", marker = "extra == 'code'", specifier = "<=2.10.1" }, @@ -3243,16 +3243,16 @@ wheels = [ [[package]] name = "praisonaiagents" -version = "0.0.6" +version = "0.0.7" source = { registry = "https://pypi.org/simple" } dependencies = [ { name = "openai" }, { name = "pydantic" }, { name = "rich" }, ] -sdist = { url = "https://files.pythonhosted.org/packages/6d/7f/7f2e04278d3e539a7daeff5df3f8cd561f3b73eeab06461ee4b25d83ce98/praisonaiagents-0.0.6.tar.gz", hash = "sha256:da173f31d2b447ccfbadb02a60ae63898427e378122eccf187fa03808c1de129", size = 15341 } +sdist = { url = "https://files.pythonhosted.org/packages/9f/f2/b0cbb05a9803fdad0613e4dd6c6e42b50c347c29b95e7b5f2571155944af/praisonaiagents-0.0.7.tar.gz", hash = "sha256:b216ac5193dbaad277c75f16499304cb2d2e0c2e0169d29a6a5d75b4405d69ca", size = 15927 } wheels = [ - { url = "https://files.pythonhosted.org/packages/cd/c4/0a9a7fd084ba6616d8a0f3f171243246304c44a462a4556882981b0f37d0/praisonaiagents-0.0.6-py3-none-any.whl", hash = "sha256:253451077a6cb05fea1378ccebba36ca37339696cc07cc8a5373455cf9907609", size = 21397 }, + { url = "https://files.pythonhosted.org/packages/96/5b/8c85f4d335cce89bc004b9929579ee4f258659a1c76cdde8b64c8bf84b1e/praisonaiagents-0.0.7-py3-none-any.whl", hash = "sha256:10d0a07f2ccae3c9521a896a0c7b7844ea35ef58cb340e8b2eecab02c23cccb1", size = 21971 }, ] [[package]]