From 842e5fb70a809baba570c8e7ec1fd983823a5bfe Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Moura?= Date: Fri, 27 Dec 2024 16:53:00 -0300 Subject: [PATCH] ignore --- src/crewai/tools/agent_tools/add_image_tool.py | 6 +++--- src/crewai/tools/tool_usage.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/crewai/tools/agent_tools/add_image_tool.py b/src/crewai/tools/agent_tools/add_image_tool.py index cef94e98d..06bdfcf5b 100644 --- a/src/crewai/tools/agent_tools/add_image_tool.py +++ b/src/crewai/tools/agent_tools/add_image_tool.py @@ -18,8 +18,8 @@ class AddImageToolSchema(BaseModel): class AddImageTool(BaseTool): """Tool for adding images to the content""" - name: str = Field(default_factory=lambda: i18n.tools("add_image")["name"]) - description: str = Field(default_factory=lambda: i18n.tools("add_image")["description"]) + name: str = Field(default_factory=lambda: i18n.tools("add_image")["name"]) # type: ignore + description: str = Field(default_factory=lambda: i18n.tools("add_image")["description"]) # type: ignore args_schema: type[BaseModel] = AddImageToolSchema def _run( @@ -28,7 +28,7 @@ class AddImageTool(BaseTool): action: Optional[str] = None, **kwargs, ) -> dict: - action = action or i18n.tools("add_image")["default_action"] + action = action or i18n.tools("add_image")["default_action"] # type: ignore content = [ {"type": "text", "text": action}, { diff --git a/src/crewai/tools/tool_usage.py b/src/crewai/tools/tool_usage.py index db68a5cf5..532587ced 100644 --- a/src/crewai/tools/tool_usage.py +++ b/src/crewai/tools/tool_usage.py @@ -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