Skip to content

Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.

Enhance schema description of QdrantVectorSearchTool (#3891)

Daniel Barretofcb5b19b2ec0
diff --git a/lib/crewai-tools/src/crewai_tools/tools/qdrant_vector_search_tool/qdrant_search_tool.py b/lib/crewai-tools/src/crewai_tools/tools/qdrant_vector_search_tool/qdrant_search_tool.py
index b0b4d1a77..063af07e3 100644
--- a/lib/crewai-tools/src/crewai_tools/tools/qdrant_vector_search_tool/qdrant_search_tool.py
+++ b/lib/crewai-tools/src/crewai_tools/tools/qdrant_vector_search_tool/qdrant_search_tool.py
@@ -12,12 +12,16 @@ from pydantic.types import ImportString
class QdrantToolSchema(BaseModel):
- query: str = Field(..., description="Query to search in Qdrant DB")
+ query: str = Field(
+ ..., description="Query to search in Qdrant DB - always required."
+ )
filter_by: str | None = Field(
- default=None, description="Parameter to filter the search by."
+ default=None,
+ description="Parameter to filter the search by. When filtering, needs to be used in conjunction with filter_value.",
)
filter_value: Any | None = Field(
- default=None, description="Value to filter the search by."
+ default=None,
+ description="Value to filter the search by. When filtering, needs to be used in conjunction with filter_by.",
)