Skip to content
This repository was archived by the owner on Nov 10, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions crewai_tools/tools/csv_search_tool/csv_search_tool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Optional, Type
from typing import Optional, Type

from embedchain.models.data_type import DataType
from pydantic import BaseModel, Field
Expand All @@ -18,7 +18,7 @@ class FixedCSVSearchToolSchema(BaseModel):
class CSVSearchToolSchema(FixedCSVSearchToolSchema):
"""Input for CSVSearchTool."""

csv: str = Field(..., description="Mandatory csv path you want to search")
csv: str = Field(..., description="File path or URL of a CSV file to be searched")


class CSVSearchTool(RagTool):
Expand Down
2 changes: 1 addition & 1 deletion crewai_tools/tools/docx_search_tool/docx_search_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ class FixedDOCXSearchToolSchema(BaseModel):
"""Input for DOCXSearchTool."""

docx: Optional[str] = Field(
..., description="Mandatory docx path you want to search"
..., description="File path or URL of a DOCX file to be searched"
)
search_query: str = Field(
...,
Expand Down
7 changes: 4 additions & 3 deletions crewai_tools/tools/json_search_tool/json_search_tool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Any, Optional, Type
from typing import Optional, Type

from embedchain.models.data_type import DataType
from pydantic import BaseModel, Field

from ..rag.rag_tool import RagTool
Expand All @@ -18,7 +17,9 @@ class FixedJSONSearchToolSchema(BaseModel):
class JSONSearchToolSchema(FixedJSONSearchToolSchema):
"""Input for JSONSearchTool."""

json_path: str = Field(..., description="Mandatory json path you want to search")
json_path: str = Field(
..., description="File path or URL of a JSON file to be searched"
)


class JSONSearchTool(RagTool):
Expand Down
4 changes: 2 additions & 2 deletions crewai_tools/tools/mdx_search_tool/mdx_search_tool.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
from typing import Any, Optional, Type
from typing import Optional, Type

from embedchain.models.data_type import DataType
from pydantic import BaseModel, Field
Expand All @@ -18,7 +18,7 @@ class FixedMDXSearchToolSchema(BaseModel):
class MDXSearchToolSchema(FixedMDXSearchToolSchema):
"""Input for MDXSearchTool."""

mdx: str = Field(..., description="Mandatory mdx path you want to search")
mdx: str = Field(..., description="File path or URL of a MDX file to be searched")


class MDXSearchTool(RagTool):
Expand Down
6 changes: 3 additions & 3 deletions crewai_tools/tools/pdf_search_tool/pdf_search_tool.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
from typing import Any, Optional, Type
from typing import Optional, Type

from embedchain.models.data_type import DataType
from pydantic import BaseModel, Field, model_validator
from pydantic import BaseModel, Field

from ..rag.rag_tool import RagTool

Expand All @@ -17,7 +17,7 @@ class FixedPDFSearchToolSchema(BaseModel):
class PDFSearchToolSchema(FixedPDFSearchToolSchema):
"""Input for PDFSearchTool."""

pdf: str = Field(..., description="Mandatory pdf path you want to search")
pdf: str = Field(..., description="File path or URL of a PDF file to be searched")


class PDFSearchTool(RagTool):
Expand Down
2 changes: 1 addition & 1 deletion crewai_tools/tools/txt_search_tool/txt_search_tool.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FixedTXTSearchToolSchema(BaseModel):
class TXTSearchToolSchema(FixedTXTSearchToolSchema):
"""Input for TXTSearchTool."""

txt: str = Field(..., description="Mandatory txt path you want to search")
txt: str = Field(..., description="File path or URL of a TXT file to be searched")


class TXTSearchTool(RagTool):
Expand Down
5 changes: 2 additions & 3 deletions crewai_tools/tools/xml_search_tool/xml_search_tool.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
from typing import Any, Optional, Type
from typing import Optional, Type

from embedchain.models.data_type import DataType
from pydantic import BaseModel, Field

from ..rag.rag_tool import RagTool
Expand All @@ -18,7 +17,7 @@ class FixedXMLSearchToolSchema(BaseModel):
class XMLSearchToolSchema(FixedXMLSearchToolSchema):
"""Input for XMLSearchTool."""

xml: str = Field(..., description="Mandatory xml path you want to search")
xml: str = Field(..., description="File path or URL of a XML file to be searched")


class XMLSearchTool(RagTool):
Expand Down
Loading