Skip to content

Commit ef4fec8

Browse files
Merge pull request #60 from MervinPraison/develop
v0.0.34
2 parents fddff50 + 9a503c7 commit ef4fec8

File tree

9 files changed

+174
-323
lines changed

9 files changed

+174
-323
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.33 gunicorn markdown
4+
RUN pip install flask praisonai==0.0.34 gunicorn markdown
55
EXPOSE 8080
66
CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]

docs/duckduckgo.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# DuckDuckGo Praison AI Integration
2+
3+
```
4+
pip install duckduckgo_search
5+
```
6+
7+
Create a file called tools.py in the same directory as the agents.yaml file.
8+
9+
```python
10+
# example tools.py
11+
from duckduckgo_search import DDGS
12+
from praisonai_tools import BaseTool
13+
14+
class InternetSearchTool(BaseTool):
15+
name: str = "InternetSearchTool"
16+
description: str = "Search Internet for relevant information based on a query or latest news"
17+
18+
def _run(self, query: str):
19+
ddgs = DDGS()
20+
results = ddgs.text(keywords=query, region='wt-wt', safesearch='moderate', max_results=5)
21+
return results
22+
```

docs/requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ rich
1616
pyautogen
1717
crewai
1818
gradio
19-
crewai_tools
2019
duckduckgo_search
2120
praisonai_tools
2221
open-interpreter

poetry.lock

Lines changed: 141 additions & 314 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

praisonai/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
1+
# Disable OpenTelemetry SDK
2+
import os
3+
os.environ["OTEL_SDK_DISABLED"] = "true"
4+
os.environ["EC_TELEMETRY"] = "false"
15
from .cli import PraisonAI
26
from .version import __version__

praisonai/deploy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def create_dockerfile(self):
5656
file.write("FROM python:3.11-slim\n")
5757
file.write("WORKDIR /app\n")
5858
file.write("COPY . .\n")
59-
file.write("RUN pip install flask praisonai==0.0.33 gunicorn markdown\n")
59+
file.write("RUN pip install flask praisonai==0.0.34 gunicorn markdown\n")
6060
file.write("EXPOSE 8080\n")
6161
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6262

praisonai/inbuilt_tools/autogen_tools.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# praisonai/inbuilt_tools/autogen_tools.py
22

3-
from crewai_tools import (
3+
from praisonai_tools import (
44
CodeDocsSearchTool, CSVSearchTool, DirectorySearchTool, DOCXSearchTool, DirectoryReadTool,
55
FileReadTool, TXTSearchTool, JSONSearchTool, MDXSearchTool, PDFSearchTool, RagTool,
66
ScrapeElementFromWebsiteTool, ScrapeWebsiteTool, WebsiteSearchTool, XMLSearchTool, YoutubeChannelSearchTool,

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[tool.poetry]
22
name = "PraisonAI"
3-
version = "0.0.33"
3+
version = "0.0.34"
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 = ""
@@ -17,10 +17,10 @@ packages = ["PraisonAI"]
1717
python = ">=3.10,<3.13"
1818
rich = ">=13.7"
1919
pyautogen = ">=0.2.19"
20-
crewai = ">=0.30.4"
20+
crewai = ">=0.32.0"
2121
markdown = ">=3.5"
22-
crewai-tools = "^0.2.6"
23-
praisonai-tools = ">=0.0.4"
22+
praisonai-tools = ">=0.0.7"
23+
pyparsing = ">=3.0.0"
2424
chainlit = {version = "^1.1.301", optional = true}
2525
gradio = {version = ">=4.26.0", optional = true}
2626
flask = {version = ">=3.0.0", optional = true}

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,5 @@ pyautogen>=0.2.19
33
crewai>=0.30.4
44
gradio>=4.20.0
55
chainlit>=1.1.301
6-
crewai_tools
76
duckduckgo_search
87
praisonai_tools

0 commit comments

Comments
 (0)