Skip to content

Commit

Permalink
Remove contextual memory print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
bhancockio committed Nov 7, 2024
1 parent 9f2acfe commit faf33c9
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions src/crewai/memory/contextual/contextual_memory.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]:
Expand All @@ -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:
Expand All @@ -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 ""

0 comments on commit faf33c9

Please sign in to comment.