Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docker/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
flask \
"praisonai>=2.2.26" \
"praisonai>=2.2.27" \
"praisonai[api]" \
gunicorn \
markdown
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.chat
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.2.26" \
"praisonai>=2.2.27" \
"praisonai[chat]" \
"embedchain[github,youtube]"

Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.dev
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.2.26" \
"praisonai>=2.2.27" \
"praisonai[ui]" \
"praisonai[chat]" \
"praisonai[realtime]" \
Expand Down
2 changes: 1 addition & 1 deletion docker/Dockerfile.ui
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ RUN mkdir -p /root/.praison
# Install Python packages (using latest versions)
RUN pip install --no-cache-dir \
praisonai_tools \
"praisonai>=2.2.26" \
"praisonai>=2.2.27" \
"praisonai[ui]" \
"praisonai[crewai]"

Expand Down
4 changes: 2 additions & 2 deletions docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ healthcheck:
## 📦 Package Versions

All Docker images use consistent, up-to-date versions:
- PraisonAI: `>=2.2.26`
- PraisonAI: `>=2.2.27`
- PraisonAI Agents: `>=0.0.92`
- Python: `3.11-slim`

Expand Down Expand Up @@ -218,7 +218,7 @@ docker-compose up -d
### Version Pinning
To use specific versions, update the Dockerfile:
```dockerfile
RUN pip install "praisonai==2.2.26" "praisonaiagents==0.0.92"
RUN pip install "praisonai==2.2.27" "praisonaiagents==0.0.92"
```

## 🌐 Production Deployment
Expand Down
21 changes: 21 additions & 0 deletions src/praisonai-agents/guardrail_agents_example.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
from praisonaiagents import Agent, Task, TaskOutput, PraisonAIAgents
from typing import Tuple, Any

def validate_content(task_output: TaskOutput) -> Tuple[bool, Any]:
if len(task_output.raw) < 50:
return False, "Content too short"
return True, task_output

agent = Agent(
instructions="You are a writer",
)

task = Task(
description="Write a welcome message",
guardrail=validate_content,
agent=agent
)

praison_agents = PraisonAIAgents(agents=[agent], tasks=[task])

praison_agents.start()
1 change: 1 addition & 0 deletions src/praisonai-agents/praisonaiagents/agent/agent.py
Original file line number Diff line number Diff line change
Expand Up @@ -1886,6 +1886,7 @@ def run_server():
import threading
import time
import inspect
import asyncio # Import asyncio in the MCP scope
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

medium

The asyncio module is already imported at the top of this file (on line 5). Is this additional import of asyncio within the launch method (specifically in the MCP protocol handling block) necessary? It appears to be redundant and could be removed to keep the imports cleaner.

Suggested change
import asyncio # Import asyncio in the MCP scope
# import asyncio # Import asyncio in the MCP scope

# logging is already imported at the module level

except ImportError as e:
Expand Down
2 changes: 1 addition & 1 deletion src/praisonai-agents/pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"

[project]
name = "praisonaiagents"
version = "0.0.97"
version = "0.0.98"
description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
requires-python = ">=3.10"
authors = [
Expand Down
4,176 changes: 2,089 additions & 2,087 deletions src/praisonai-agents/uv.lock

Large diffs are not rendered by default.

Loading
Loading