@@ -351,7 +351,39 @@ export namespace ResponseObject {
351351 /**
352352 * (Optional) Search results returned by the file search operation
353353 */
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+ }
355387 }
356388
357389 /**
@@ -812,7 +844,39 @@ export namespace ResponseObjectStream {
812844 /**
813845 * (Optional) Search results returned by the file search operation
814846 */
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+ }
816880 }
817881
818882 /**
@@ -1174,7 +1238,39 @@ export namespace ResponseObjectStream {
11741238 /**
11751239 * (Optional) Search results returned by the file search operation
11761240 */
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+ }
11781274 }
11791275
11801276 /**
@@ -1744,7 +1840,39 @@ export namespace ResponseListResponse {
17441840 /**
17451841 * (Optional) Search results returned by the file search operation
17461842 */
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+ }
17481876 }
17491877
17501878 /**
@@ -2149,7 +2277,39 @@ export namespace ResponseListResponse {
21492277 /**
21502278 * (Optional) Search results returned by the file search operation
21512279 */
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+ }
21532313 }
21542314
21552315 /**
@@ -2438,7 +2598,39 @@ export namespace ResponseCreateParams {
24382598 /**
24392599 * (Optional) Search results returned by the file search operation
24402600 */
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+ }
24422634 }
24432635
24442636 /**
0 commit comments