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.
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/PKG-INFO +1 -1
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/process/process.py +26 -12
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/PKG-INFO +1 -1
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/pyproject.toml +1 -1
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/__init__.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agent/__init__.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agent/agent.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agents/__init__.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agents/agents.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/agents/autoagents.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/main.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/memory/memory.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/process/__init__.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/task/__init__.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/task/task.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/__init__.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/arxiv_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/calculator_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/csv_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/duckdb_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/duckduckgo_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/excel_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/file_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/json_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/newspaper_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/pandas_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/python_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/shell_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/spider_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/test.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/wikipedia_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/xml_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/yaml_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents/tools/yfinance_tools.py +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/SOURCES.txt +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/dependency_links.txt +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/requires.txt +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/top_level.txt +0 -0
- {praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/setup.cfg +0 -0
@@ -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
|
139
|
-
|
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
|
-
|
147
|
-
|
148
|
-
|
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
|
400
|
-
|
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
|
-
|
408
|
-
|
409
|
-
|
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:
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
{praisonaiagents-0.0.31 → praisonaiagents-0.0.32}/praisonaiagents.egg-info/dependency_links.txt
RENAMED
File without changes
|
File without changes
|
File without changes
|
File without changes
|