You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
'An object with filters array and optional orderBy object; each filter has column, operator, and values; orderBy maps column names to sort direction.',
35
-
),
36
-
)
37
-
38
18
const{output: result}=awaitgenerateText({
39
19
model: withPosthog(google('gemini-2.0-flash'),{
40
20
prompt: input.prompt,
@@ -58,12 +38,12 @@ export const filters = orpc
58
38
'- User can paste only the value, you should try to understand to which column the value belongs',
59
39
'- Try to generate at least one filter unless the prompt is completely unclear',
60
40
'',
61
-
'Ordering:',
62
-
'- If the user requests sorting or ordering (e.g., "sort by date descending", "order by name ascending"), generate an orderBy object.',
63
-
'- Use the exact column names from the context for ordering.',
64
-
'- The orderBy object should have the column name as the key and the direction as the value ("ASC" for ascending, "DESC" for descending).',
65
-
'- If no ordering is specified in the prompt, you may omit the orderBy object.',
66
-
'',
41
+
// 'Ordering:',
42
+
// '- If the user requests sorting or ordering (e.g., "sort by date descending", "order by name ascending"), generate an orderBy object.',
43
+
// '- Use the exact column names from the context for ordering.',
44
+
// '- The orderBy object should have the column name as the key and the direction as the value ("ASC" for ascending, "DESC" for descending).',
45
+
// '- If no ordering is specified in the prompt, you may omit the orderBy object.',
}).describe('An object with filters array and optional orderBy object; each filter has column, operator, and values; orderBy maps column names to sort direction.'),
64
+
description: 'An array of objects with the following properties: column, operator, values where the operator is one of the SQL operators available',
0 commit comments