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
Copy file name to clipboardExpand all lines: apps/sim/app/workspace/[workspaceId]/home/components/knowledge-search-results/knowledge-search-results.tsx
'Live search: inclusive lower date bound. Calendar uses scheduled event start; Gmail/Slack use message time; other sources use modification time. Include the user’s timezone offset.'
81
+
),
82
+
endDate: z
83
+
.string()
84
+
.datetime({offset: true})
85
+
.optional()
86
+
.describe(
87
+
'Live search: exclusive upper bound on the same date as startDate. For a whole day, use the next local midnight.'
88
+
),
89
+
sortBy: z
90
+
.enum(['relevance','newest','oldest'])
91
+
.optional()
92
+
.describe(
93
+
'Live search ordering by relevance or the provider date used by startDate/endDate. Date sorting covers retrieved results; inspect partial coverage before claiming latest or earliest overall.'
'Live search only: provider-native queries (Drive q, Gmail operators, Jira JQL, Confluence CQL, GitHub qualifiers, Slack RTS). Omit for simple cross-provider terms. Use the returned live guidance and account IDs.'
107
-
),
108
-
query: z
109
-
.string()
110
-
.trim()
111
-
.min(1)
112
-
.max(2000)
113
-
.describe('Search query describing the information needed.'),
114
-
topK: z
115
-
.number()
116
-
.int()
117
-
.min(1)
118
-
.max(50)
119
-
.default(20)
120
-
.describe(
121
-
'Maximum matching passage previews; retrieval ranking is independent of preview length.'
'Live search only: provider-native queries (Drive q, Gmail operators, Jira JQL, Confluence CQL, GitHub qualifiers, Slack RTS). Omit for simple cross-provider terms. Use the returned live guidance and account IDs.'
128
+
),
129
+
query: z
130
+
.string()
131
+
.trim()
132
+
.max(2000)
133
+
.default('')
134
+
.describe(
135
+
'Search terms, without dates already supplied as filters. May be empty for a live date-bounded listing.'
136
+
),
137
+
topK: z
138
+
.number()
139
+
.int()
140
+
.min(1)
141
+
.max(50)
142
+
.default(20)
143
+
.describe(
144
+
'Maximum matching passage previews; retrieval ranking is independent of preview length.'
'Live search: inclusive lower date bound. Calendar uses scheduled event start; Gmail/Slack use message time; other sources use modification time. Include the user’s timezone offset.'
84
+
),
85
+
endDate: z
86
+
.string()
87
+
.datetime({offset: true})
88
+
.optional()
89
+
.describe(
90
+
'Live search: exclusive upper bound on the same date as startDate. For a whole day, use the next local midnight.'
91
+
),
92
+
sortBy: z
93
+
.enum(['relevance','newest','oldest'])
94
+
.optional()
95
+
.describe(
96
+
'Live search ordering by relevance or the provider date used by startDate/endDate. Date sorting covers retrieved results; inspect partial coverage before claiming latest or earliest overall.'
'Live search only: provider-native queries (Drive q, Gmail operators, Jira JQL, Confluence CQL, GitHub qualifiers, Slack RTS). Omit for simple cross-provider terms. Use the returned live guidance and account IDs.'
110
-
),
111
-
query: z
112
-
.string()
113
-
.trim()
114
-
.min(1)
115
-
.max(2000)
116
-
.describe('Search query describing the information needed.'),
117
-
topK: z
118
-
.number()
119
-
.int()
120
-
.min(1)
121
-
.max(50)
122
-
.default(20)
123
-
.describe(
124
-
'Maximum matching passage previews; retrieval ranking is independent of preview length.'
'Live search only: provider-native queries (Drive q, Gmail operators, Jira JQL, Confluence CQL, GitHub qualifiers, Slack RTS). Omit for simple cross-provider terms. Use the returned live guidance and account IDs.'
131
+
),
132
+
query: z
133
+
.string()
134
+
.trim()
135
+
.max(2000)
136
+
.default('')
137
+
.describe(
138
+
'Search terms, without dates already supplied as filters. May be empty for a live date-bounded listing.'
139
+
),
140
+
topK: z
141
+
.number()
142
+
.int()
143
+
.min(1)
144
+
.max(50)
145
+
.default(20)
146
+
.describe(
147
+
'Maximum matching passage previews; retrieval ranking is independent of preview length.'
0 commit comments