@@ -351,7 +351,39 @@ export namespace ResponseObject {
351
351
/**
352
352
* (Optional) Search results returned by the file search operation
353
353
*/
354
- results ?: Array < { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } > ;
354
+ results ?: Array < OpenAIResponseOutputMessageFileSearchToolCall . Result > ;
355
+ }
356
+
357
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
358
+ /**
359
+ * Search results returned by the file search operation.
360
+ */
361
+ export interface Result {
362
+ /**
363
+ * (Optional) Key-value attributes associated with the file
364
+ */
365
+ attributes : { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } ;
366
+
367
+ /**
368
+ * Unique identifier of the file containing the result
369
+ */
370
+ file_id : string ;
371
+
372
+ /**
373
+ * Name of the file containing the result
374
+ */
375
+ filename : string ;
376
+
377
+ /**
378
+ * Relevance score for this search result (between 0 and 1)
379
+ */
380
+ score : number ;
381
+
382
+ /**
383
+ * Text content of the search result
384
+ */
385
+ text : string ;
386
+ }
355
387
}
356
388
357
389
/**
@@ -812,7 +844,39 @@ export namespace ResponseObjectStream {
812
844
/**
813
845
* (Optional) Search results returned by the file search operation
814
846
*/
815
- results ?: Array < { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } > ;
847
+ results ?: Array < OpenAIResponseOutputMessageFileSearchToolCall . Result > ;
848
+ }
849
+
850
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
851
+ /**
852
+ * Search results returned by the file search operation.
853
+ */
854
+ export interface Result {
855
+ /**
856
+ * (Optional) Key-value attributes associated with the file
857
+ */
858
+ attributes : { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } ;
859
+
860
+ /**
861
+ * Unique identifier of the file containing the result
862
+ */
863
+ file_id : string ;
864
+
865
+ /**
866
+ * Name of the file containing the result
867
+ */
868
+ filename : string ;
869
+
870
+ /**
871
+ * Relevance score for this search result (between 0 and 1)
872
+ */
873
+ score : number ;
874
+
875
+ /**
876
+ * Text content of the search result
877
+ */
878
+ text : string ;
879
+ }
816
880
}
817
881
818
882
/**
@@ -1174,7 +1238,39 @@ export namespace ResponseObjectStream {
1174
1238
/**
1175
1239
* (Optional) Search results returned by the file search operation
1176
1240
*/
1177
- results ?: Array < { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } > ;
1241
+ results ?: Array < OpenAIResponseOutputMessageFileSearchToolCall . Result > ;
1242
+ }
1243
+
1244
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
1245
+ /**
1246
+ * Search results returned by the file search operation.
1247
+ */
1248
+ export interface Result {
1249
+ /**
1250
+ * (Optional) Key-value attributes associated with the file
1251
+ */
1252
+ attributes : { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } ;
1253
+
1254
+ /**
1255
+ * Unique identifier of the file containing the result
1256
+ */
1257
+ file_id : string ;
1258
+
1259
+ /**
1260
+ * Name of the file containing the result
1261
+ */
1262
+ filename : string ;
1263
+
1264
+ /**
1265
+ * Relevance score for this search result (between 0 and 1)
1266
+ */
1267
+ score : number ;
1268
+
1269
+ /**
1270
+ * Text content of the search result
1271
+ */
1272
+ text : string ;
1273
+ }
1178
1274
}
1179
1275
1180
1276
/**
@@ -1744,7 +1840,39 @@ export namespace ResponseListResponse {
1744
1840
/**
1745
1841
* (Optional) Search results returned by the file search operation
1746
1842
*/
1747
- results ?: Array < { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } > ;
1843
+ results ?: Array < OpenAIResponseOutputMessageFileSearchToolCall . Result > ;
1844
+ }
1845
+
1846
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
1847
+ /**
1848
+ * Search results returned by the file search operation.
1849
+ */
1850
+ export interface Result {
1851
+ /**
1852
+ * (Optional) Key-value attributes associated with the file
1853
+ */
1854
+ attributes : { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } ;
1855
+
1856
+ /**
1857
+ * Unique identifier of the file containing the result
1858
+ */
1859
+ file_id : string ;
1860
+
1861
+ /**
1862
+ * Name of the file containing the result
1863
+ */
1864
+ filename : string ;
1865
+
1866
+ /**
1867
+ * Relevance score for this search result (between 0 and 1)
1868
+ */
1869
+ score : number ;
1870
+
1871
+ /**
1872
+ * Text content of the search result
1873
+ */
1874
+ text : string ;
1875
+ }
1748
1876
}
1749
1877
1750
1878
/**
@@ -2149,7 +2277,39 @@ export namespace ResponseListResponse {
2149
2277
/**
2150
2278
* (Optional) Search results returned by the file search operation
2151
2279
*/
2152
- results ?: Array < { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } > ;
2280
+ results ?: Array < OpenAIResponseOutputMessageFileSearchToolCall . Result > ;
2281
+ }
2282
+
2283
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
2284
+ /**
2285
+ * Search results returned by the file search operation.
2286
+ */
2287
+ export interface Result {
2288
+ /**
2289
+ * (Optional) Key-value attributes associated with the file
2290
+ */
2291
+ attributes : { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } ;
2292
+
2293
+ /**
2294
+ * Unique identifier of the file containing the result
2295
+ */
2296
+ file_id : string ;
2297
+
2298
+ /**
2299
+ * Name of the file containing the result
2300
+ */
2301
+ filename : string ;
2302
+
2303
+ /**
2304
+ * Relevance score for this search result (between 0 and 1)
2305
+ */
2306
+ score : number ;
2307
+
2308
+ /**
2309
+ * Text content of the search result
2310
+ */
2311
+ text : string ;
2312
+ }
2153
2313
}
2154
2314
2155
2315
/**
@@ -2438,7 +2598,39 @@ export namespace ResponseCreateParams {
2438
2598
/**
2439
2599
* (Optional) Search results returned by the file search operation
2440
2600
*/
2441
- results ?: Array < { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } > ;
2601
+ results ?: Array < OpenAIResponseOutputMessageFileSearchToolCall . Result > ;
2602
+ }
2603
+
2604
+ export namespace OpenAIResponseOutputMessageFileSearchToolCall {
2605
+ /**
2606
+ * Search results returned by the file search operation.
2607
+ */
2608
+ export interface Result {
2609
+ /**
2610
+ * (Optional) Key-value attributes associated with the file
2611
+ */
2612
+ attributes : { [ key : string ] : boolean | number | string | Array < unknown > | unknown | null } ;
2613
+
2614
+ /**
2615
+ * Unique identifier of the file containing the result
2616
+ */
2617
+ file_id : string ;
2618
+
2619
+ /**
2620
+ * Name of the file containing the result
2621
+ */
2622
+ filename : string ;
2623
+
2624
+ /**
2625
+ * Relevance score for this search result (between 0 and 1)
2626
+ */
2627
+ score : number ;
2628
+
2629
+ /**
2630
+ * Text content of the search result
2631
+ */
2632
+ text : string ;
2633
+ }
2442
2634
}
2443
2635
2444
2636
/**
0 commit comments