rm unused

This commit is contained in:
Lorenze Jay
2024-11-27 11:30:21 -08:00
parent 61fe1c69d9
commit a81200a020

View File

@@ -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])