Skip to content

Commit

Permalink
Merge pull request #287 from MervinPraison/develop
Browse files Browse the repository at this point in the history
Refactor prompt chaining and update JSON configuration
  • Loading branch information
MervinPraison authored Jan 12, 2025
2 parents 4614cfa + 7179c65 commit 55f1d30
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 2 additions & 5 deletions agents/prompt_chaining.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
from praisonaiagents.agent import Agent
from praisonaiagents.task import Task
from praisonaiagents.agents import PraisonAIAgents
from typing import List, Dict
from praisonaiagents import Agent, Task, PraisonAIAgents
import time

def get_time_check():
Expand Down Expand Up @@ -44,7 +41,7 @@ def get_time_check():
next_tasks=["advanced_analysis"], # Next task if condition passes
condition={
"even": ["advanced_analysis"], # If passes, go to advanced analysis
"odd": "" # If fails, exit the chain
"odd": "exit" # If fails, exit the chain
}
)

Expand Down
3 changes: 2 additions & 1 deletion docs/mint.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,8 @@
"features/mathagent",
"features/structured",
"features/callbacks",
"features/agenticrouting"
"features/agenticrouting",
"features/promptchaining"
]
},
{
Expand Down

0 comments on commit 55f1d30

Please sign in to comment.