Skip to content

Commit efa5247

Browse files
committed
Release v3.10.21
1 parent 720213d commit efa5247

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

65 files changed

+7130
-194
lines changed

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>=3.10.20" \
19+
"praisonai>=3.10.21" \
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>=3.10.20" \
23+
"praisonai>=3.10.21" \
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>=3.10.20" \
19+
"praisonai>=3.10.21" \
2020
"praisonai[ui]" \
2121
"praisonai[crewai]"
2222

src/praisonai-agents/examples/consolidated_params/advanced_memory.py renamed to examples/consolidated_params/advanced_memory.py

File renamed without changes.
Lines changed: 17 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
"""
2-
Basic Memory Example - Agent-Centric API
3-
4-
Demonstrates the simplest memory usage with consolidated params.
5-
"""
6-
1+
"""Basic memory example - minimal usage."""
72
from praisonaiagents import Agent
83

9-
# Basic: Enable memory with preset
4+
# Simple enable (uses default file-based memory)
105
agent = Agent(
116
instructions="You are a helpful assistant with memory.",
12-
memory="sqlite", # Preset: sqlite, redis, postgres, file
7+
memory=True,
138
)
149

15-
# Run a simple task
16-
response = agent.start("Remember that my favorite color is blue.")
17-
print(response)
10+
# With preset
11+
agent_redis = Agent(
12+
instructions="You are a helpful assistant.",
13+
memory="redis", # Uses redis preset
14+
)
15+
16+
# With URL
17+
agent_postgres = Agent(
18+
instructions="You are a helpful assistant.",
19+
memory="postgresql://localhost/mydb", # URL auto-detected
20+
)
1821

19-
# Follow-up to test memory
20-
response = agent.start("What is my favorite color?")
21-
print(response)
22+
if __name__ == "__main__":
23+
response = agent.chat("Remember that my favorite color is blue.")
24+
print(response)

src/praisonai-agents/examples/consolidated_params/basic_output_execution.py renamed to examples/consolidated_params/basic_output_execution.py

File renamed without changes.
Lines changed: 16 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,22 @@
1-
"""
2-
Basic Workflow Example - Agent-Centric API
3-
4-
Demonstrates minimal workflow with consolidated params.
5-
"""
6-
1+
"""Basic workflow example with consolidated params."""
72
from praisonaiagents import Agent
83
from praisonaiagents.workflows import Workflow, WorkflowStep
94

10-
# Create a simple workflow
11-
workflow = Workflow(
12-
name="simple_workflow",
13-
output="verbose", # Workflow-level output preset
14-
)
5+
# Create agents
6+
writer = Agent(instructions="You are a content writer.")
7+
editor = Agent(instructions="You are an editor.")
158

16-
# Add a step
17-
step = WorkflowStep(
18-
name="writer",
19-
action="Write a haiku about programming",
20-
agent=Agent(instructions="You are a creative poet."),
21-
output="result.txt", # Save output to file
9+
# Create workflow with consolidated params
10+
workflow = Workflow(
11+
name="Content Pipeline",
12+
steps=[
13+
WorkflowStep(name="write", agent=writer, action="Write about {{topic}}"),
14+
WorkflowStep(name="edit", agent=editor, action="Edit the content", context=["write"]),
15+
],
16+
output="verbose",
17+
planning=True,
2218
)
2319

24-
# Note: This is a structural example - actual execution requires workflow.run()
25-
print("Workflow created with output preset:", workflow.output)
26-
print("Step output file:", step.output_file)
20+
if __name__ == "__main__":
21+
result = workflow.run(variables={"topic": "AI agents"})
22+
print(result)

0 commit comments

Comments
 (0)