From faf33c9eee24b05043fee00da312a7e60e349e20 Mon Sep 17 00:00:00 2001 From: Brandon Hancock Date: Thu, 7 Nov 2024 10:42:51 -0500 Subject: [PATCH] Remove contextual memory print statements --- src/crewai/memory/contextual/contextual_memory.py | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/crewai/memory/contextual/contextual_memory.py b/src/crewai/memory/contextual/contextual_memory.py index 3d3a9c6c19..5d91cf47d6 100644 --- a/src/crewai/memory/contextual/contextual_memory.py +++ b/src/crewai/memory/contextual/contextual_memory.py @@ -34,7 +34,6 @@ def _fetch_stm_context(self, query) -> str: formatted_results = "\n".join( [f"- {result['context']}" for result in stm_results] ) - print("formatted_results stm", formatted_results) return f"Recent Insights:\n{formatted_results}" if stm_results else "" def _fetch_ltm_context(self, task) -> Optional[str]: @@ -54,8 +53,6 @@ def _fetch_ltm_context(self, task) -> Optional[str]: formatted_results = list(dict.fromkeys(formatted_results)) formatted_results = "\n".join([f"- {result}" for result in formatted_results]) # type: ignore # Incompatible types in assignment (expression has type "str", variable has type "list[str]") - print("formatted_results ltm", formatted_results) - return f"Historical Data:\n{formatted_results}" if ltm_results else "" def _fetch_entity_context(self, query) -> str: @@ -67,5 +64,4 @@ def _fetch_entity_context(self, query) -> str: formatted_results = "\n".join( [f"- {result['context']}" for result in em_results] # type: ignore # Invalid index type "str" for "str"; expected type "SupportsIndex | slice" ) - print("formatted_results em", formatted_results) return f"Entities:\n{formatted_results}" if em_results else ""