mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-08 15:48:29 +00:00
Fix TypeError in FixedDOCXSearchToolSchema by correcting Optional usage with Field
This commit is contained in:
@@ -8,7 +8,7 @@ from ..rag.rag_tool import RagTool
|
||||
|
||||
class FixedDOCXSearchToolSchema(BaseModel):
|
||||
"""Input for DOCXSearchTool."""
|
||||
docx: str = Optional[Field](..., description="Mandatory docx path you want to search")
|
||||
docx: Optional[str] = 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",
|
||||
|
||||
Reference in New Issue
Block a user