Skip to content

Commit 4925dd7

Browse files
committed
feat: upgrade praisonai to v2.2.51 and add aiohttp dependency to praisonaiagents v0.0.125
1 parent 98e7903 commit 4925dd7

File tree

14 files changed

+58
-21
lines changed

14 files changed

+58
-21
lines changed

.github/workflows/claude.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,10 @@ jobs:
8888
core.setOutput('should-post', true); // If we can't check, proceed with posting
8989
}
9090
91+
- name: Wait 20 seconds before posting comment
92+
if: steps.check-comment.outputs.should-post == 'true'
93+
run: sleep 20
94+
9195
- name: Post review comment
9296
if: steps.check-comment.outputs.should-post == 'true'
9397
uses: actions/github-script@v7

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.50" \
19+
"praisonai>=2.2.51" \
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.50" \
19+
"praisonai>=2.2.51" \
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.50" \
23+
"praisonai>=2.2.51" \
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.50" \
19+
"praisonai>=2.2.51" \
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.50`
124+
- PraisonAI: `>=2.2.51`
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.50" "praisonaiagents==0.0.92"
221+
RUN pip install "praisonai==2.2.51" "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="openai/gpt-4o-mini",
26+
tools=[get_stock_price, multiply]
27+
)
28+
29+
result = agent.start("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.124"
7+
version = "0.0.125"
88
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
99
requires-python = ">=3.10"
1010
authors = [

src/praisonai-agents/tests/test_http_stream_basic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def test_transport_selection():
4545

4646
# Test 4: Stdio transport should still work
4747
try:
48-
mcp_stdio = MCP("python /path/to/server.py")
48+
mcp_stdio = MCP("/Users/praison/miniconda3/envs/mcp/bin/python /Users/praison/stockprice/app.py")
4949
assert mcp_stdio.is_sse == False
5050
assert mcp_stdio.is_http_stream == False
5151
print("✓ Stdio transport still works")

src/praisonai-agents/uv.lock

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

0 commit comments

Comments
 (0)