Skip to content

Commit

Permalink
Merge pull request #29 from MervinPraison/feature/PRAISON-1-add-tools
Browse files Browse the repository at this point in the history
v0.0.19 fixes 2
  • Loading branch information
MervinPraison authored May 6, 2024
2 parents 8f865e4 + dac0079 commit 6f19d2c
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
FROM python:3.11-slim
WORKDIR /app
COPY . .
RUN pip install flask praisonai==0.0.19 gunicorn markdown
RUN pip install flask praisonai==0.0.20 gunicorn markdown
EXPOSE 8080
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]
2 changes: 1 addition & 1 deletion praisonai/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,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==0.0.19 gunicorn markdown\n")
file.write("RUN pip install flask praisonai==0.0.20 gunicorn markdown\n")
file.write("EXPOSE 8080\n")
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')

Expand Down
2 changes: 2 additions & 0 deletions praisonai/inbuilt_tools/autogen_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
from pathlib import Path
import os
import inspect
import sys

def create_autogen_tool_function(tool_name):
def autogen_tool(assistant, user_proxy):
Expand Down Expand Up @@ -42,6 +43,7 @@ def tool_func(query: str) -> Any:
return autogen_tool

# Load tools.py
sys.path.insert(0, os.getcwd())
root_directory = os.getcwd()
tools_py_path = os.path.join(root_directory, 'tools.py')
tools_dir_path = Path(root_directory) / 'tools'
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "praisonAI"
version = "0.0.19"
version = "0.0.20"
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 = ""
Expand Down

0 comments on commit 6f19d2c

Please sign in to comment.