@@ -1804,8 +1804,85 @@ exports[`build chat item tree and get thread messages should get thread messages
1804
1804
]
1805
1805
` ;
1806
1806
1807
- exports [` build chat item tree and get thread messages should work with partial messages 1` ] = `
1807
+ exports [` build chat item tree and get thread messages should work with partial messages 1 1 ` ] = `
1808
1808
[
1809
+ {
1810
+ " children" : [
1811
+ {
1812
+ " agent_thoughts" : [
1813
+ {
1814
+ " chain_id" : null ,
1815
+ " created_at" : 1726105799 ,
1816
+ " files" : [],
1817
+ " id" : " 9730d587-9268-4683-9dd9-91a1cab9510b" ,
1818
+ " message_id" : " 4c5d0841-1206-463e-95d8-71f812877658" ,
1819
+ " observation" : " " ,
1820
+ " position" : 1 ,
1821
+ " thought" : " I'll go with 112. Your turn!" ,
1822
+ " tool" : " " ,
1823
+ " tool_input" : " " ,
1824
+ " tool_labels" : {},
1825
+ },
1826
+ ],
1827
+ " children" : [],
1828
+ " content" : " I'll go with 112. Your turn!" ,
1829
+ " conversationId" : " dd6c9cfd-2656-48ec-bd51-2139c1790d80" ,
1830
+ " feedbackDisabled" : false ,
1831
+ " id" : " 4c5d0841-1206-463e-95d8-71f812877658" ,
1832
+ " input" : {
1833
+ " inputs" : {},
1834
+ " query" : " 99" ,
1835
+ },
1836
+ " isAnswer" : true ,
1837
+ " log" : [
1838
+ {
1839
+ " files" : [],
1840
+ " role" : " user" ,
1841
+ " text" : " Let's play a game, I say a number , and you response me with another bigger, yet randomly number. I'll start first, 38" ,
1842
+ },
1843
+ {
1844
+ " files" : [],
1845
+ " role" : " assistant" ,
1846
+ " text" : " Sure, I'll play! My number is 57. Your turn!" ,
1847
+ },
1848
+ {
1849
+ " files" : [],
1850
+ " role" : " user" ,
1851
+ " text" : " 58" ,
1852
+ },
1853
+ {
1854
+ " files" : [],
1855
+ " role" : " assistant" ,
1856
+ " text" : " I choose 83. What's your next number?" ,
1857
+ },
1858
+ {
1859
+ " files" : [],
1860
+ " role" : " user" ,
1861
+ " text" : " 99" ,
1862
+ },
1863
+ {
1864
+ " files" : [],
1865
+ " role" : " assistant" ,
1866
+ " text" : " I'll go with 112. Your turn!" ,
1867
+ },
1868
+ ],
1869
+ " message_files" : [],
1870
+ " more" : {
1871
+ " latency" : " 1.49" ,
1872
+ " time" : " 09/11/2024 09:50 PM" ,
1873
+ " tokens" : 86 ,
1874
+ },
1875
+ " parentMessageId" : " question-4c5d0841-1206-463e-95d8-71f812877658" ,
1876
+ " siblingIndex" : 0 ,
1877
+ " workflow_run_id" : null ,
1878
+ },
1879
+ ],
1880
+ " content" : " 99" ,
1881
+ " id" : " question-4c5d0841-1206-463e-95d8-71f812877658" ,
1882
+ " isAnswer" : false ,
1883
+ " message_files" : [],
1884
+ " parentMessageId" : " 73bbad14-d915-499d-87bf-0df14d40779d" ,
1885
+ } ,
1809
1886
{
1810
1887
" children" : [
1811
1888
{
@@ -2078,6 +2155,178 @@ exports[`build chat item tree and get thread messages should work with partial m
2078
2155
]
2079
2156
` ;
2080
2157
2158
+ exports [` build chat item tree and get thread messages should work with partial messages 2 1` ] = `
2159
+ [
2160
+ {
2161
+ " children" : [
2162
+ {
2163
+ " children" : [],
2164
+ " content" : " 237." ,
2165
+ " id" : " ebb73fe2-15de-46dd-aab5-75416d8448eb" ,
2166
+ " isAnswer" : true ,
2167
+ " parentMessageId" : " question-ebb73fe2-15de-46dd-aab5-75416d8448eb" ,
2168
+ " siblingIndex" : 0 ,
2169
+ },
2170
+ ],
2171
+ " content" : " 123" ,
2172
+ " id" : " question-ebb73fe2-15de-46dd-aab5-75416d8448eb" ,
2173
+ " isAnswer" : false ,
2174
+ " parentMessageId" : " 57c989f9-3fa4-4dec-9ee5-c3568dd27418" ,
2175
+ } ,
2176
+ {
2177
+ " children" : [
2178
+ {
2179
+ " children" : [],
2180
+ " content" : " My number is 256." ,
2181
+ " id" : " 3553d508-3850-462e-8594-078539f940f9" ,
2182
+ " isAnswer" : true ,
2183
+ " parentMessageId" : " question-3553d508-3850-462e-8594-078539f940f9" ,
2184
+ " siblingIndex" : 1 ,
2185
+ },
2186
+ ],
2187
+ " content" : " 123" ,
2188
+ " id" : " question-3553d508-3850-462e-8594-078539f940f9" ,
2189
+ " isAnswer" : false ,
2190
+ " parentMessageId" : " 57c989f9-3fa4-4dec-9ee5-c3568dd27418" ,
2191
+ } ,
2192
+ {
2193
+ " children" : [
2194
+ {
2195
+ " children" : [
2196
+ {
2197
+ " children" : [
2198
+ {
2199
+ " children" : [
2200
+ {
2201
+ " children" : [
2202
+ {
2203
+ " children" : [
2204
+ {
2205
+ " children" : [
2206
+ {
2207
+ " children" : [
2208
+ {
2209
+ " children" : [
2210
+ {
2211
+ " children" : [
2212
+ {
2213
+ " children" : [
2214
+ {
2215
+ " children" : [
2216
+ {
2217
+ " children" : [
2218
+ {
2219
+ " children" : [
2220
+ {
2221
+ " children" : [
2222
+ {
2223
+ " children" : [],
2224
+ " content" : " My number is 3e (approximately 8.15)." ,
2225
+ " id" : " 9eac3bcc-8d3b-4e56-a12b-44c34cebc719" ,
2226
+ " isAnswer" : true ,
2227
+ " parentMessageId" : " question-9eac3bcc-8d3b-4e56-a12b-44c34cebc719" ,
2228
+ " siblingIndex" : 0 ,
2229
+ },
2230
+ ],
2231
+ " content" : " e" ,
2232
+ " id" : " question-9eac3bcc-8d3b-4e56-a12b-44c34cebc719" ,
2233
+ " isAnswer" : false ,
2234
+ " parentMessageId" : " 5c56a2b3-f057-42a0-9b2c-52a35713cd8c" ,
2235
+ },
2236
+ ],
2237
+ " content" : " My number is 2π (approximately 6.28)." ,
2238
+ " id" : " 5c56a2b3-f057-42a0-9b2c-52a35713cd8c" ,
2239
+ " isAnswer" : true ,
2240
+ " parentMessageId" : " question-5c56a2b3-f057-42a0-9b2c-52a35713cd8c" ,
2241
+ " siblingIndex" : 0 ,
2242
+ },
2243
+ ],
2244
+ " content" : " π" ,
2245
+ " id" : " question-5c56a2b3-f057-42a0-9b2c-52a35713cd8c" ,
2246
+ " isAnswer" : false ,
2247
+ " parentMessageId" : " 46a49bb9-0881-459e-8c6a-24d20ae48d2f" ,
2248
+ },
2249
+ ],
2250
+ " content" : " My number is 145." ,
2251
+ " id" : " 46a49bb9-0881-459e-8c6a-24d20ae48d2f" ,
2252
+ " isAnswer" : true ,
2253
+ " parentMessageId" : " question-46a49bb9-0881-459e-8c6a-24d20ae48d2f" ,
2254
+ " siblingIndex" : 0 ,
2255
+ },
2256
+ ],
2257
+ " content" : " 78" ,
2258
+ " id" : " question-46a49bb9-0881-459e-8c6a-24d20ae48d2f" ,
2259
+ " isAnswer" : false ,
2260
+ " parentMessageId" : " 3cded945-855a-4a24-aab7-43c7dd54664c" ,
2261
+ },
2262
+ ],
2263
+ " content" : " My number is 7.89." ,
2264
+ " id" : " 3cded945-855a-4a24-aab7-43c7dd54664c" ,
2265
+ " isAnswer" : true ,
2266
+ " parentMessageId" : " question-3cded945-855a-4a24-aab7-43c7dd54664c" ,
2267
+ " siblingIndex" : 0 ,
2268
+ },
2269
+ ],
2270
+ " content" : " 3.11" ,
2271
+ " id" : " question-3cded945-855a-4a24-aab7-43c7dd54664c" ,
2272
+ " isAnswer" : false ,
2273
+ " parentMessageId" : " a956de3d-ef95-4d90-84fe-f7a26ef28cd7" ,
2274
+ },
2275
+ ],
2276
+ " content" : " My number is 22." ,
2277
+ " id" : " a956de3d-ef95-4d90-84fe-f7a26ef28cd7" ,
2278
+ " isAnswer" : true ,
2279
+ " parentMessageId" : " question-a956de3d-ef95-4d90-84fe-f7a26ef28cd7" ,
2280
+ " siblingIndex" : 0 ,
2281
+ },
2282
+ ],
2283
+ " content" : " -5" ,
2284
+ " id" : " question-a956de3d-ef95-4d90-84fe-f7a26ef28cd7" ,
2285
+ " isAnswer" : false ,
2286
+ " parentMessageId" : " 93bac05d-1470-4ac9-b090-fe21cd7c3d55" ,
2287
+ },
2288
+ ],
2289
+ " content" : " My number is 4782." ,
2290
+ " id" : " 93bac05d-1470-4ac9-b090-fe21cd7c3d55" ,
2291
+ " isAnswer" : true ,
2292
+ " parentMessageId" : " question-93bac05d-1470-4ac9-b090-fe21cd7c3d55" ,
2293
+ " siblingIndex" : 0 ,
2294
+ },
2295
+ ],
2296
+ " content" : " 3306" ,
2297
+ " id" : " question-93bac05d-1470-4ac9-b090-fe21cd7c3d55" ,
2298
+ " isAnswer" : false ,
2299
+ " parentMessageId" : " 9e51a13b-7780-4565-98dc-f2d8c3b1758f" ,
2300
+ },
2301
+ ],
2302
+ " content" : " My number is 2048." ,
2303
+ " id" : " 9e51a13b-7780-4565-98dc-f2d8c3b1758f" ,
2304
+ " isAnswer" : true ,
2305
+ " parentMessageId" : " question-9e51a13b-7780-4565-98dc-f2d8c3b1758f" ,
2306
+ " siblingIndex" : 0 ,
2307
+ },
2308
+ ],
2309
+ " content" : " 1024" ,
2310
+ " id" : " question-9e51a13b-7780-4565-98dc-f2d8c3b1758f" ,
2311
+ " isAnswer" : false ,
2312
+ " parentMessageId" : " 507f9df9-1f06-4a57-bb38-f00228c42c22" ,
2313
+ },
2314
+ ],
2315
+ " content" : " My number is 259." ,
2316
+ " id" : " 507f9df9-1f06-4a57-bb38-f00228c42c22" ,
2317
+ " isAnswer" : true ,
2318
+ " parentMessageId" : " question-507f9df9-1f06-4a57-bb38-f00228c42c22" ,
2319
+ " siblingIndex" : 2 ,
2320
+ },
2321
+ ],
2322
+ " content" : " 123" ,
2323
+ " id" : " question-507f9df9-1f06-4a57-bb38-f00228c42c22" ,
2324
+ " isAnswer" : false ,
2325
+ " parentMessageId" : " 57c989f9-3fa4-4dec-9ee5-c3568dd27418" ,
2326
+ } ,
2327
+ ]
2328
+ ` ;
2329
+
2081
2330
exports [` build chat item tree and get thread messages should work with real world messages 1` ] = `
2082
2331
[
2083
2332
{
0 commit comments