This Python script is an AI-powered task manager. The system uses OpenAI, Chroma, and Chroma to create tasks, prioritize them, and execute them. This system creates tasks by analyzing the results of previous tasks, and a predefined goal. The script uses OpenAI's Natural Language Processing (NLP), and Chroma, to store and retrieve the task results in context. This is a simplified version of the original Task Driven Autonomous Agent.
The script runs an infinite loop which performs the following steps.
1. The first task is selected from the list.
2. Sends the task to an execution agent. The agent uses OpenAI's OpenAI API to complete the tasks based on context.
3. Chroma enriches and stores the result.
4. Creates new tasks, and reprioritizes task list according to the result and objective of the previous task.