AGiXT is a dynamic AI Agent Automation Platform that seamlessly orchestrates instruction management and complex task execution across diverse AI providers. Combining adaptive memory, smart features, and a versatile plugin system, AGiXT delivers efficient and comprehensive AI solutions.
[ ] Bug fix (prefix: fix - non-breaking change which fixes an issue)
[ ] New feature (prefix: feat - non-breaking change which adds functionality)
[ ] Breaking change (prefix: feat!! or fix!! - fix or feature that would cause existing functionality to not work as expected)
Internal changes:
[x] Refactor (prefix: refactor - non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)
[ ] Tests (prefix: test - additions and improvements to unit tests and the smoke tests)
[ ] My change requires a change to the documentation.
[x] My change works!
The main changes are:
Checking if the task starts with a digit using task[0].isdigit() instead of task[0] in [str(i) for i in range(10)].
Appending the current_task to the new_task_list after the loop ends (instead of inside the loop) to handle the last task correctly.
Removing the check for double newlines ("\n\n") in the current_task as it's not necessary.
The updated function should work correctly to create a task chain from a numbered list of tasks, splitting subtasks properly and handling the last task correctly.
Description
Motivation and Context
How has this been tested?
Screenshots (if appropriate)
Types of changes
Changes visible to users:
fix
- non-breaking change which fixes an issue)feat
- non-breaking change which adds functionality)feat!!
orfix!!
- fix or feature that would cause existing functionality to not work as expected)Internal changes:
refactor
- non-breaking change which only improves the design or structure of existing code, and making no changes to its external behaviour)test
- additions and improvements to unit tests and the smoke tests)chore
- examples include GitHub Actions, issue templates)Checklist
The main changes are:
Checking if the task starts with a digit using task[0].isdigit() instead of task[0] in [str(i) for i in range(10)]. Appending the current_task to the new_task_list after the loop ends (instead of inside the loop) to handle the last task correctly. Removing the check for double newlines ("\n\n") in the current_task as it's not necessary.
The updated function should work correctly to create a task chain from a numbered list of tasks, splitting subtasks properly and handling the last task correctly.