praisonaiagents 0.0.31__tar.gz → 0.0.32__tar.gz

Sign up to get free protection for your applications and to get access to all the features.
Files changed (40) hide show
  1. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/PKG-INFO +1 -1
  2. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/process/process.py +26 -12
  3. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/PKG-INFO +1 -1
  4. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/pyproject.toml +1 -1
  5. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/__init__.py +0 -0
  6. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agent/__init__.py +0 -0
  7. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agent/agent.py +0 -0
  8. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agents/__init__.py +0 -0
  9. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agents/agents.py +0 -0
  10. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agents/autoagents.py +0 -0
  11. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/main.py +0 -0
  12. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/memory/memory.py +0 -0
  13. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/process/__init__.py +0 -0
  14. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/task/__init__.py +0 -0
  15. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/task/task.py +0 -0
  16. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/__init__.py +0 -0
  17. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/arxiv_tools.py +0 -0
  18. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/calculator_tools.py +0 -0
  19. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/csv_tools.py +0 -0
  20. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/duckdb_tools.py +0 -0
  21. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/duckduckgo_tools.py +0 -0
  22. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/excel_tools.py +0 -0
  23. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/file_tools.py +0 -0
  24. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/json_tools.py +0 -0
  25. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/newspaper_tools.py +0 -0
  26. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/pandas_tools.py +0 -0
  27. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/python_tools.py +0 -0
  28. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/shell_tools.py +0 -0
  29. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/spider_tools.py +0 -0
  30. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/test.py +0 -0
  31. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/tools.py +0 -0
  32. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/wikipedia_tools.py +0 -0
  33. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/xml_tools.py +0 -0
  34. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/yaml_tools.py +0 -0
  35. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/yfinance_tools.py +0 -0
  36. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/SOURCES.txt +0 -0
  37. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/dependency_links.txt +0 -0
  38. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/requires.txt +0 -0
  39. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/top_level.txt +0 -0
  40. {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/setup.cfg +0 -0
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: praisonaiagents
3
- Version: 0.0.31
3
+ Version: 0.0.32
4
4
  Summary: Praison AI agents for completing complex tasks with Self Reflection Agents
5
5
  Author: Mervin Praison
6
6
  Requires-Dist: pydantic
@@ -130,22 +130,29 @@ Return a JSON object with an 'items' array containing the items to process.
130
130
 
131
131
  # Determine next task based on result
132
132
  next_task = None
133
- if current_task.result:
133
+ if current_task and current_task.result:
134
134
  if current_task.task_type in ["decision", "loop"]:
135
135
  result = current_task.result.raw.lower()
136
136
  # Check conditions
137
137
  for condition, tasks in current_task.condition.items():
138
- if condition.lower() in result and tasks:
139
- next_task_name = tasks[0]
138
+ if condition.lower() in result:
139
+ # Handle both list and direct string values
140
+ task_value = tasks[0] if isinstance(tasks, list) else tasks
141
+ if not task_value or task_value == "exit": # If empty or explicit exit
142
+ logging.info("Workflow exit condition met, ending workflow")
143
+ current_task = None
144
+ break
145
+ next_task_name = task_value
140
146
  next_task = next((t for t in self.tasks.values() if t.name == next_task_name), None)
141
147
  # For loops, allow revisiting the same task
142
148
  if next_task and next_task.id == current_task.id:
143
149
  visited_tasks.discard(current_task.id)
144
150
  break
145
151
 
146
- if not next_task and current_task.next_tasks:
147
- next_task_name = current_task.next_tasks[0]
148
- next_task = next((t for t in self.tasks.values() if t.name == next_task_name), None)
152
+ if not next_task and current_task and current_task.next_tasks:
153
+ print(current_task.next_tasks)
154
+ next_task_name = current_task.next_tasks[0]
155
+ next_task = next((t for t in self.tasks.values() if t.name == next_task_name), None)
149
156
 
150
157
  current_task = next_task
151
158
  if not current_task:
@@ -391,22 +398,29 @@ Return a JSON object with an 'items' array containing the items to process.
391
398
 
392
399
  # Determine next task based on result
393
400
  next_task = None
394
- if current_task.result:
401
+ if current_task and current_task.result:
395
402
  if current_task.task_type in ["decision", "loop"]:
396
403
  result = current_task.result.raw.lower()
397
404
  # Check conditions
398
405
  for condition, tasks in current_task.condition.items():
399
- if condition.lower() in result and tasks:
400
- next_task_name = tasks[0]
406
+ if condition.lower() in result:
407
+ # Handle both list and direct string values
408
+ task_value = tasks[0] if isinstance(tasks, list) else tasks
409
+ if not task_value or task_value == "exit": # If empty or explicit exit
410
+ logging.info("Workflow exit condition met, ending workflow")
411
+ current_task = None
412
+ break
413
+ next_task_name = task_value
401
414
  next_task = next((t for t in self.tasks.values() if t.name == next_task_name), None)
402
415
  # For loops, allow revisiting the same task
403
416
  if next_task and next_task.id == current_task.id:
404
417
  visited_tasks.discard(current_task.id)
405
418
  break
406
419
 
407
- if not next_task and current_task.next_tasks:
408
- next_task_name = current_task.next_tasks[0]
409
- next_task = next((t for t in self.tasks.values() if t.name == next_task_name), None)
420
+ if not next_task and current_task and current_task.next_tasks:
421
+ print(current_task.next_tasks)
422
+ next_task_name = current_task.next_tasks[0]
423
+ next_task = next((t for t in self.tasks.values() if t.name == next_task_name), None)
410
424
 
411
425
  current_task = next_task
412
426
  if not current_task:
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.2
2
2
  Name: praisonaiagents
3
- Version: 0.0.31
3
+ Version: 0.0.32
4
4
  Summary: Praison AI agents for completing complex tasks with Self Reflection Agents
5
5
  Author: Mervin Praison
6
6
  Requires-Dist: pydantic
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
4
4
 
5
5
  [project]
6
6
  name = "praisonaiagents"
7
- version = "0.0.31"
7
+ version = "0.0.32"
8
8
  description = "Praison AI agents for completing complex tasks with Self Reflection Agents"
9
9
  authors = [
10
10
  { name="Mervin Praison" }