Skip to content

Commit 2b77887

Browse files
committed
add min field length
1 parent af88a44 commit 2b77887

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/tools/mongodb/mongodbTool.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export const VectorIndexArgs = {
2020
.object({
2121
path: z
2222
.string()
23+
.min(1)
2324
.describe(
2425
"Name of the field to index. For nested fields, use dot notation to specify path to embedded fields."
2526
),
@@ -46,6 +47,7 @@ export const VectorIndexArgs = {
4647
z.object({
4748
path: z
4849
.string()
50+
.min(1)
4951
.describe(
5052
"Name of the field to filter by. For nested fields, use dot notation to specify path to embedded fields."
5153
),

0 commit comments

Comments
 (0)