Skip to content

Commit fcb5b19

Browse files
Enhance schema description of QdrantVectorSearchTool (#3891)
1 parent 01f0111 commit fcb5b19

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

lib/crewai-tools/src/crewai_tools/tools/qdrant_vector_search_tool/qdrant_search_tool.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,16 @@
1212

1313

1414
class QdrantToolSchema(BaseModel):
15-
query: str = Field(..., description="Query to search in Qdrant DB")
15+
query: str = Field(
16+
..., description="Query to search in Qdrant DB - always required."
17+
)
1618
filter_by: str | None = Field(
17-
default=None, description="Parameter to filter the search by."
19+
default=None,
20+
description="Parameter to filter the search by. When filtering, needs to be used in conjunction with filter_value.",
1821
)
1922
filter_value: Any | None = Field(
20-
default=None, description="Value to filter the search by."
23+
default=None,
24+
description="Value to filter the search by. When filtering, needs to be used in conjunction with filter_by.",
2125
)
2226

2327

0 commit comments

Comments
 (0)