From a81200a0200e2ffa500aace99c8c5ccab57dfdcc Mon Sep 17 00:00:00 2001 From: Lorenze Jay Date: Wed, 27 Nov 2024 11:30:21 -0800 Subject: [PATCH] rm unused --- src/crewai/agent.py | 12 ------------ 1 file changed, 12 deletions(-) diff --git a/src/crewai/agent.py b/src/crewai/agent.py index 3e567ea45..26380ebc2 100644 --- a/src/crewai/agent.py +++ b/src/crewai/agent.py @@ -538,18 +538,6 @@ class Agent(BaseAgent): f"Docker is not running. Please start Docker to use code execution with agent: {self.role}" ) - def _extract_knowledge_context( - self, knowledge_snippets: List[Dict[str, Any]] - ) -> str: - """Extract knowledge from the task prompt.""" - valid_snippets = [ - result["context"] - for result in knowledge_snippets - if result and result.get("context") - ] - snippet = "\n".join(valid_snippets) - return f"Additional Information: {snippet}" if valid_snippets else "" - @staticmethod def __tools_names(tools) -> str: return ", ".join([t.name for t in tools])