Skip to content

Commit 6f19d2c

Browse files
Merge pull request #29 from MervinPraison/feature/PRAISON-1-add-tools
v0.0.19 fixes 2
2 parents 8f865e4 + dac0079 commit 6f19d2c

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
FROM python:3.11-slim
22
WORKDIR /app
33
COPY . .
4-
RUN pip install flask praisonai==0.0.19 gunicorn markdown
4+
RUN pip install flask praisonai==0.0.20 gunicorn markdown
55
EXPOSE 8080
66
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]

praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def create_dockerfile(self):
1313
file.write("FROM python:3.11-slim\n")
1414
file.write("WORKDIR /app\n")
1515
file.write("COPY . .\n")
16-
file.write("RUN pip install flask praisonai==0.0.19 gunicorn markdown\n")
16+
file.write("RUN pip install flask praisonai==0.0.20 gunicorn markdown\n")
1717
file.write("EXPOSE 8080\n")
1818
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
1919

praisonai/inbuilt_tools/autogen_tools.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
from pathlib import Path
1414
import os
1515
import inspect
16+
import sys
1617

1718
def create_autogen_tool_function(tool_name):
1819
def autogen_tool(assistant, user_proxy):
@@ -42,6 +43,7 @@ def tool_func(query: str) -> Any:
4243
return autogen_tool
4344

4445
# Load tools.py
46+
sys.path.insert(0, os.getcwd())
4547
root_directory = os.getcwd()
4648
tools_py_path = os.path.join(root_directory, 'tools.py')
4749
tools_dir_path = Path(root_directory) / 'tools'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "praisonAI"
3-
version = "0.0.19"
3+
version = "0.0.20"
44
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."
55
authors = ["Mervin Praison"]
66
license = ""

0 commit comments

Comments
 (0)