mirror of
https://github.com/crewAIInc/crewAI.git
synced 2026-01-09 08:08:32 +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):
|
class FixedDOCXSearchToolSchema(BaseModel):
|
||||||
"""Input for DOCXSearchTool."""
|
"""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(
|
search_query: str = Field(
|
||||||
...,
|
...,
|
||||||
description="Mandatory search query you want to use to search the DOCX's content",
|
description="Mandatory search query you want to use to search the DOCX's content",
|
||||||
|
|||||||
Reference in New Issue
Block a user