Skip to content

Commit 937908b

Browse files
chore: add an accuracy test for find tool
1 parent 6bd5638 commit 937908b

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed

tests/accuracy/find.test.ts

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,4 +111,31 @@ describeAccuracyTests([
111111
},
112112
],
113113
},
114+
{
115+
prompt: "I want a COMPLETE list of all the movies only from 'mflix.movies' namespace.",
116+
expectedToolCalls: [
117+
{
118+
toolName: "find",
119+
parameters: {
120+
database: "mflix",
121+
collection: "movies",
122+
filter: Matcher.emptyObjectOrUndefined,
123+
},
124+
},
125+
{
126+
toolName: "export",
127+
parameters: {
128+
database: "mflix",
129+
collection: "movies",
130+
exportTitle: Matcher.string(),
131+
exportTarget: [
132+
{
133+
name: "find",
134+
arguments: Matcher.emptyObjectOrUndefined,
135+
},
136+
],
137+
},
138+
},
139+
],
140+
},
114141
]);

0 commit comments

Comments
 (0)