From 89df7778878bd6aae12d906bd51323d0595bb54f Mon Sep 17 00:00:00 2001 From: Greyson LaLonde Date: Wed, 3 Sep 2025 18:16:03 -0400 Subject: [PATCH] refactor: use absolute imports in parser module - Import I18N directly from utilities.i18n --- src/crewai/agents/parser.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/crewai/agents/parser.py b/src/crewai/agents/parser.py index 03479e4c3..e2eb3f1f4 100644 --- a/src/crewai/agents/parser.py +++ b/src/crewai/agents/parser.py @@ -7,18 +7,18 @@ AgentAction or AgentFinish objects. from dataclasses import dataclass -from json_repair import repair_json +from json_repair import repair_json # type: ignore[import-untyped] from crewai.agents.constants import ( + ACTION_INPUT_ONLY_REGEX, ACTION_INPUT_REGEX, ACTION_REGEX, - ACTION_INPUT_ONLY_REGEX, FINAL_ANSWER_ACTION, MISSING_ACTION_AFTER_THOUGHT_ERROR_MESSAGE, MISSING_ACTION_INPUT_AFTER_ACTION_ERROR_MESSAGE, UNABLE_TO_REPAIR_JSON_RESULTS, ) -from crewai.utilities import I18N +from crewai.utilities.i18n import I18N _I18N = I18N()