From b14f2d4bf1dcc524f3a788b13d31302d1c4406e4 Mon Sep 17 00:00:00 2001 From: "Slava Kurilyak (slavakurilyak.eth)" Date: Mon, 6 May 2024 15:21:07 -0300 Subject: [PATCH] Revert "Fix TypeError in FixedDOCXSearchToolSchema by correcting Optional usage with Field" This reverts commit e0840e4826d4fc9ccd9c05b5d0a915419ece6626. --- src/crewai_tools/tools/docx_search_tool/docx_search_tool.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crewai_tools/tools/docx_search_tool/docx_search_tool.py b/src/crewai_tools/tools/docx_search_tool/docx_search_tool.py index 96bb4721b..ed2d4daad 100644 --- a/src/crewai_tools/tools/docx_search_tool/docx_search_tool.py +++ b/src/crewai_tools/tools/docx_search_tool/docx_search_tool.py @@ -8,7 +8,7 @@ from ..rag.rag_tool import RagTool class FixedDOCXSearchToolSchema(BaseModel): """Input for DOCXSearchTool.""" - docx: Optional[str] = Field(..., description="Mandatory docx path you want to search") + docx: str = Optional[Field](..., description="Mandatory docx path you want to search") search_query: str = Field( ..., description="Mandatory search query you want to use to search the DOCX's content",