Josh-XT / AGiXT

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.
https://AGiXT.com
MIT License
2.6k stars 346 forks source link

Improve Logic Create Task Chain and fix commands execution prompts #1181

Closed birdup000 closed 4 months ago

birdup000 commented 4 months ago

Description

Motivation and Context

How has this been tested?

Screenshots (if appropriate)

Types of changes

Changes visible to users:

Internal changes:

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.