Skip to content

Commit ddae919

Browse files
committed
feat: bump PraisonAI to v2.2.52 and add sequential agent examples for OpenAI/Ollama
1 parent 14b7476 commit ddae919

File tree

13 files changed

+80
-20
lines changed

13 files changed

+80
-20
lines changed

docker/Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
flask \
19-
"praisonai>=2.2.51" \
19+
"praisonai>=2.2.52" \
2020
"praisonai[api]" \
2121
gunicorn \
2222
markdown

docker/Dockerfile.chat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
praisonai_tools \
19-
"praisonai>=2.2.51" \
19+
"praisonai>=2.2.52" \
2020
"praisonai[chat]" \
2121
"embedchain[github,youtube]"
2222

docker/Dockerfile.dev

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison
2020
# Install Python packages (using latest versions)
2121
RUN pip install --no-cache-dir \
2222
praisonai_tools \
23-
"praisonai>=2.2.51" \
23+
"praisonai>=2.2.52" \
2424
"praisonai[ui]" \
2525
"praisonai[chat]" \
2626
"praisonai[realtime]" \

docker/Dockerfile.ui

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
1616
# Install Python packages (using latest versions)
1717
RUN pip install --no-cache-dir \
1818
praisonai_tools \
19-
"praisonai>=2.2.51" \
19+
"praisonai>=2.2.52" \
2020
"praisonai[ui]" \
2121
"praisonai[crewai]"
2222

docker/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,7 +121,7 @@ healthcheck:
121121
## 📦 Package Versions
122122
123123
All Docker images use consistent, up-to-date versions:
124-
- PraisonAI: `>=2.2.51`
124+
- PraisonAI: `>=2.2.52`
125125
- PraisonAI Agents: `>=0.0.92`
126126
- Python: `3.11-slim`
127127

@@ -218,7 +218,7 @@ docker-compose up -d
218218
### Version Pinning
219219
To use specific versions, update the Dockerfile:
220220
```dockerfile
221-
RUN pip install "praisonai==2.2.51" "praisonaiagents==0.0.92"
221+
RUN pip install "praisonai==2.2.52" "praisonaiagents==0.0.92"
222222
```
223223

224224
## 🌐 Production Deployment
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from praisonaiagents import Agent
2+
3+
def get_stock_price(company_name: str) -> str:
4+
"""
5+
Get the stock price of a company
6+
7+
Args:
8+
company_name (str): The name of the company
9+
10+
Returns:
11+
str: The stock price of the company
12+
"""
13+
return f"The stock price of {company_name} is 100"
14+
15+
def multiply(a: int, b: int) -> int:
16+
"""
17+
Multiply two numbers
18+
"""
19+
return a * b
20+
21+
22+
23+
agent = Agent(
24+
instructions="You are a helpful assistant. You can use the tools provided to you to help the user.",
25+
llm="ollama/qwen3",
26+
tools=[get_stock_price, multiply]
27+
)
28+
29+
result = agent.start("what is the stock price of Google? multiply the Google stock price with 2")
30+
print(result)
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
from praisonaiagents import Agent
2+
3+
def get_stock_price(company_name: str) -> str:
4+
"""
5+
Get the stock price of a company
6+
7+
Args:
8+
company_name (str): The name of the company
9+
10+
Returns:
11+
str: The stock price of the company
12+
"""
13+
return f"The stock price of {company_name} is 100"
14+
15+
def multiply(a: int, b: int) -> int:
16+
"""
17+
Multiply two numbers
18+
"""
19+
return a * b
20+
21+
22+
23+
agent = Agent(
24+
instructions="You are a helpful assistant. You can use the tools provided to you to help the user.",
25+
llm="gpt-4o",
26+
tools=[get_stock_price, multiply]
27+
)
28+
29+
result = agent.start("what is the stock price of Google? multiply the Google stock price with 2")
30+
print(result)

src/praisonai-agents/pyproject.toml

Lines changed: 1 addition & 1 deletion
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.125"
7+
version = "0.0.126"
88
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
99
requires-python = ">=3.10"
1010
authors = [

src/praisonai-agents/uv.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/praisonai/praisonai.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ 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/v2.2.51.tar.gz"
7-
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.51.tar.gz | shasum -a 256`.split.first
6+
url "https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.52.tar.gz"
7+
sha256 `curl -sL https://github.com/MervinPraison/PraisonAI/archive/refs/tags/v2.2.52.tar.gz | shasum -a 256`.split.first
88
license "MIT"
99

1010
depends_on "python@3.11"

0 commit comments

Comments
 (0)