Skip to content

Commit 343a488

Browse files
committed
Bump version to 2.0.79 and update praisonaiagents dependency
- Updated version to 2.0.79 across multiple files including praisonai.rb, pyproject.toml, uv.lock, Dockerfile, and docs - Upgraded praisonaiagents dependency from 0.0.63 to 0.0.64 - Updated example agent scripts for Anthropic and Gemini LLMs - Added parameter modification support in LLM initialization - Synchronized version updates across project configuration files
1 parent eb7b3a2 commit 343a488

File tree

11 files changed

+785
-27
lines changed

11 files changed

+785
-27
lines changed

docker/Dockerfile

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

docs/api/praisonai/deploy.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ <h2 id="raises">Raises</h2>
110110
file.write(&#34;FROM python:3.11-slim\n&#34;)
111111
file.write(&#34;WORKDIR /app\n&#34;)
112112
file.write(&#34;COPY . .\n&#34;)
113-
file.write(&#34;RUN pip install flask praisonai==2.0.78 gunicorn markdown\n&#34;)
113+
file.write(&#34;RUN pip install flask praisonai==2.0.79 gunicorn markdown\n&#34;)
114114
file.write(&#34;EXPOSE 8080\n&#34;)
115115
file.write(&#39;CMD [&#34;gunicorn&#34;, &#34;-b&#34;, &#34;0.0.0.0:8080&#34;, &#34;api:app&#34;]\n&#39;)
116116

praisonai.rb

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ class Praisonai < Formula
33

44
desc "AI tools for various AI applications"
55
homepage "https://github.com/MervinPraison/PraisonAI"
6-
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/2.0.78.tar.gz"
6+
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/2.0.79.tar.gz"
77
sha256 "1828fb9227d10f991522c3f24f061943a254b667196b40b1a3e4a54a8d30ce32" # Replace with actual SHA256 checksum
88
license "MIT"
99

praisonai/deploy.py

+1-1
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==2.0.78 gunicorn markdown\n")
59+
file.write("RUN pip install flask praisonai==2.0.79 gunicorn markdown\n")
6060
file.write("EXPOSE 8080\n")
6161
file.write('CMD ["gunicorn", "-b", "0.0.0.0:8080", "api:app"]\n')
6262

pyproject.toml

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "PraisonAI"
3-
version = "2.0.78"
3+
version = "2.0.79"
44
description = "PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human-agent collaboration."
55
readme = "README.md"
66
license = ""
@@ -12,7 +12,7 @@ dependencies = [
1212
"rich>=13.7",
1313
"markdown>=3.5",
1414
"pyparsing>=3.0.0",
15-
"praisonaiagents>=0.0.63",
15+
"praisonaiagents>=0.0.64",
1616
"python-dotenv>=0.19.0",
1717
"instructor>=1.3.3",
1818
"PyYAML>=6.0",
@@ -84,7 +84,7 @@ autogen = ["pyautogen>=0.2.19", "praisonai-tools>=0.0.7", "crewai"]
8484

8585
[tool.poetry]
8686
name = "PraisonAI"
87-
version = "2.0.78"
87+
version = "2.0.79"
8888
description = "PraisonAI is an AI Agents Framework with Self Reflection. PraisonAI application combines PraisonAI Agents, AutoGen, and CrewAI into a low-code solution for building and managing multi-agent LLM systems, focusing on simplicity, customisation, and efficient human–agent collaboration."
8989
authors = ["Mervin Praison"]
9090
license = ""
@@ -102,7 +102,7 @@ python = ">=3.10,<3.13"
102102
rich = ">=13.7"
103103
markdown = ">=3.5"
104104
pyparsing = ">=3.0.0"
105-
praisonaiagents = ">=0.0.63"
105+
praisonaiagents = ">=0.0.64"
106106
python-dotenv = ">=0.19.0"
107107
instructor = ">=1.3.3"
108108
PyYAML = ">=6.0"

src/praisonai-agents/llm-anthropic.py

+30-3
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
1+
from praisonaiagents import Agent
2+
3+
agent = Agent(
4+
instructions="You are a Wikipedia Agent",
5+
llm="anthropic/claude-3-7-sonnet-20250219"
6+
)
7+
result = agent.start("Why Sky is Blue?")
8+
print(result)
9+
110
from praisonaiagents import Agent
211
from praisonaiagents.tools import internet_search
312

413
agent = Agent(
514
instructions="You are a Wikipedia Agent",
615
tools=[internet_search],
7-
llm="anthropic/claude-3-7-sonnet-20250219",
8-
verbose=10
16+
llm="anthropic/claude-3-7-sonnet-20250219"
917
)
10-
agent.start("history of AI in 1 line")
18+
agent.start("What is Praison AI?")
19+
20+
from praisonaiagents import Agent, PraisonAIAgents
21+
from praisonaiagents.tools import internet_search
22+
23+
24+
research_agent = Agent(
25+
instructions="Search Information about Claude Sonnet 3.7",
26+
tools=[internet_search],
27+
llm="anthropic/claude-3-7-sonnet-20250219"
28+
)
29+
30+
editor_agent = Agent(
31+
instructions="Write a Blog Post with the provided information about Claude Sonnet 3.7",
32+
llm="anthropic/claude-3-7-sonnet-20250219"
33+
)
34+
35+
agents = PraisonAIAgents(agents=[research_agent, editor_agent])
36+
result = agents.start()
37+
print(result)

src/praisonai-agents/llm-gemini.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
from praisonaiagents import Agent
2+
from praisonaiagents.tools import internet_search
23

34
agent = Agent(
45
instructions="You are a helpful assistant",
5-
llm="gemini/gemini-1.5-flash-8b",
6-
self_reflect=True,
7-
verbose=True
6+
tools=[internet_search],
7+
llm="gemini/gemini-1.5-flash-8b"
88
)
99

10-
agent.start("Why sky is Blue?")
10+
agent.start("What is Praison AI?")

src/praisonai-agents/praisonaiagents/llm/llm.py

+2
Original file line numberDiff line numberDiff line change
@@ -171,6 +171,8 @@ def __init__(
171171

172172
# Enable error dropping for cleaner output
173173
litellm.drop_params = True
174+
# Enable parameter modification for providers like Anthropic
175+
litellm.modify_params = True
174176
self._setup_event_tracking(events)
175177

176178
# Log all initialization parameters when in debug mode

src/praisonai-agents/pyproject.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "praisonaiagents"
7-
version = "0.0.63"
7+
version = "0.0.64"
88
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
99
authors = [
1010
{ name="Mervin Praison" }

0 commit comments

Comments
 (0)