From 3de4d10fa758eb72d4fbe51356779c50608c5cb0 Mon Sep 17 00:00:00 2001 From: Zvonimir Sabljic Date: Mon, 31 Jul 2023 12:29:03 +0200 Subject: [PATCH] Removed split_into_bullets + unused imports --- euclid/steps/architecture/architecture.py | 2 +- euclid/steps/development/development.py | 1 - euclid/utils/utils.py | 7 ------- 3 files changed, 1 insertion(+), 9 deletions(-) diff --git a/euclid/steps/architecture/architecture.py b/euclid/steps/architecture/architecture.py index cf891ec..5478ed5 100644 --- a/euclid/steps/architecture/architecture.py +++ b/euclid/steps/architecture/architecture.py @@ -6,7 +6,7 @@ from const.function_calls import ARCHITECTURE from utils.utils import execute_step, find_role_from_step, generate_app_data from database.database import save_progress, get_progress_steps from logger.logger import logger -from prompts.prompts import get_additional_info_from_user, execute_chat_prompt +from prompts.prompts import get_additional_info_from_user from helpers.AgentConvo import AgentConvo diff --git a/euclid/steps/development/development.py b/euclid/steps/development/development.py index c6ee5f1..bae45cc 100644 --- a/euclid/steps/development/development.py +++ b/euclid/steps/development/development.py @@ -5,7 +5,6 @@ from helpers.AgentConvo import AgentConvo from utils.utils import execute_step, find_role_from_step, generate_app_data from database.database import save_progress, get_progress_steps from logger.logger import logger -from prompts.prompts import get_additional_info_from_user, execute_chat_prompt from const.function_calls import FILTER_OS_TECHNOLOGIES, DEVELOPMENT_PLAN from const.code_execution import MAX_COMMAND_DEBUG_TRIES from utils.utils import get_os_info diff --git a/euclid/utils/utils.py b/euclid/utils/utils.py index 5d2f05d..db32465 100644 --- a/euclid/utils/utils.py +++ b/euclid/utils/utils.py @@ -144,12 +144,5 @@ def execute_step(matching_step, current_step): return matching_step_index is not None and current_step_index is not None and current_step_index >= matching_step_index -def split_into_bullets(text): - pattern = re.compile(r'\n*\d+\.\s\*\*') - split_text = re.split(pattern, text) - split_text = [bullet for bullet in split_text if bullet] # Remove any empty strings from the list - return split_text - - def generate_app_data(args): return {'app_id': args['app_id'], 'app_type': args['app_type']}