This commit is contained in:
João Moura
2024-12-27 16:53:00 -03:00
parent afeb8ca1ee
commit 842e5fb70a
2 changed files with 4 additions and 4 deletions

View File

@@ -104,7 +104,7 @@ class ToolUsage:
self._printer.print(content=f"\n\n{error}\n", color="red")
return error
if isinstance(tool, CrewStructuredTool) and tool.name == self._i18n.tools("add_image")["name"]:
if isinstance(tool, CrewStructuredTool) and tool.name == self._i18n.tools("add_image")["name"]: # type: ignore
try:
result = self._use(tool_string=tool_string, tool=tool, calling=calling)
return result