llama-stack-client 0.6.1 → 0.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (332) hide show
  1. package/.github/workflows/ci.yml +16 -10
  2. package/.gitignore +1 -0
  3. package/.release-please-manifest.json +1 -1
  4. package/.stats.yml +4 -4
  5. package/CHANGELOG.md +80 -0
  6. package/CONTRIBUTING.md +2 -2
  7. package/README.md +22 -0
  8. package/api.md +1 -71
  9. package/dist/CHANGELOG.md +80 -0
  10. package/dist/README.md +22 -0
  11. package/dist/core.d.ts +1 -1
  12. package/dist/core.d.ts.map +1 -1
  13. package/dist/core.js +8 -17
  14. package/dist/core.js.map +1 -1
  15. package/dist/core.mjs +8 -17
  16. package/dist/core.mjs.map +1 -1
  17. package/dist/index.d.mts +51 -12
  18. package/dist/index.d.ts +51 -12
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +50 -11
  21. package/dist/index.js.map +1 -1
  22. package/dist/index.mjs +50 -11
  23. package/dist/index.mjs.map +1 -1
  24. package/dist/internal/utils/query.d.ts +2 -0
  25. package/dist/internal/utils/query.d.ts.map +1 -0
  26. package/dist/{resources/alpha/post-training/post-training.js → internal/utils/query.js} +6 -24
  27. package/dist/internal/utils/query.js.map +1 -0
  28. package/dist/{resources/alpha/post-training.mjs → internal/utils/query.mjs} +5 -2
  29. package/dist/internal/utils/query.mjs.map +1 -0
  30. package/dist/package.json +1 -1
  31. package/dist/resources/alpha/alpha.d.ts +0 -4
  32. package/dist/resources/alpha/alpha.d.ts.map +1 -1
  33. package/dist/resources/alpha/alpha.js +0 -4
  34. package/dist/resources/alpha/alpha.js.map +1 -1
  35. package/dist/resources/alpha/alpha.mjs +0 -4
  36. package/dist/resources/alpha/alpha.mjs.map +1 -1
  37. package/dist/resources/alpha/eval/eval.d.ts +3 -0
  38. package/dist/resources/alpha/eval/eval.d.ts.map +1 -1
  39. package/dist/resources/alpha/eval/eval.js +3 -0
  40. package/dist/resources/alpha/eval/eval.js.map +1 -1
  41. package/dist/resources/alpha/eval/eval.mjs +3 -0
  42. package/dist/resources/alpha/eval/eval.mjs.map +1 -1
  43. package/dist/resources/alpha/eval/jobs.d.ts +3 -0
  44. package/dist/resources/alpha/eval/jobs.d.ts.map +1 -1
  45. package/dist/resources/alpha/eval/jobs.js +3 -0
  46. package/dist/resources/alpha/eval/jobs.js.map +1 -1
  47. package/dist/resources/alpha/eval/jobs.mjs +3 -0
  48. package/dist/resources/alpha/eval/jobs.mjs.map +1 -1
  49. package/dist/resources/alpha/index.d.ts +0 -1
  50. package/dist/resources/alpha/index.d.ts.map +1 -1
  51. package/dist/resources/alpha/index.js +1 -3
  52. package/dist/resources/alpha/index.js.map +1 -1
  53. package/dist/resources/alpha/index.mjs +0 -1
  54. package/dist/resources/alpha/index.mjs.map +1 -1
  55. package/dist/resources/alpha/inference.d.ts +8 -0
  56. package/dist/resources/alpha/inference.d.ts.map +1 -1
  57. package/dist/resources/alpha/inference.js +8 -0
  58. package/dist/resources/alpha/inference.js.map +1 -1
  59. package/dist/resources/alpha/inference.mjs +8 -0
  60. package/dist/resources/alpha/inference.mjs.map +1 -1
  61. package/dist/resources/batches.d.ts +8 -0
  62. package/dist/resources/batches.d.ts.map +1 -1
  63. package/dist/resources/batches.js +8 -0
  64. package/dist/resources/batches.js.map +1 -1
  65. package/dist/resources/batches.mjs +8 -0
  66. package/dist/resources/batches.mjs.map +1 -1
  67. package/dist/resources/beta/datasets.d.ts +4 -8
  68. package/dist/resources/beta/datasets.d.ts.map +1 -1
  69. package/dist/resources/chat/chat.d.ts +34 -32
  70. package/dist/resources/chat/chat.d.ts.map +1 -1
  71. package/dist/resources/chat/chat.js.map +1 -1
  72. package/dist/resources/chat/chat.mjs.map +1 -1
  73. package/dist/resources/chat/completions.d.ts +321 -713
  74. package/dist/resources/chat/completions.d.ts.map +1 -1
  75. package/dist/resources/chat/completions.js +8 -0
  76. package/dist/resources/chat/completions.js.map +1 -1
  77. package/dist/resources/chat/completions.mjs +8 -0
  78. package/dist/resources/chat/completions.mjs.map +1 -1
  79. package/dist/resources/completions.d.ts +10 -4
  80. package/dist/resources/completions.d.ts.map +1 -1
  81. package/dist/resources/completions.js +8 -0
  82. package/dist/resources/completions.js.map +1 -1
  83. package/dist/resources/completions.mjs +8 -0
  84. package/dist/resources/completions.mjs.map +1 -1
  85. package/dist/resources/conversations/conversations.d.ts +95 -2
  86. package/dist/resources/conversations/conversations.d.ts.map +1 -1
  87. package/dist/resources/conversations/conversations.js +3 -0
  88. package/dist/resources/conversations/conversations.js.map +1 -1
  89. package/dist/resources/conversations/conversations.mjs +3 -0
  90. package/dist/resources/conversations/conversations.mjs.map +1 -1
  91. package/dist/resources/conversations/items.d.ts +371 -8
  92. package/dist/resources/conversations/items.d.ts.map +1 -1
  93. package/dist/resources/conversations/items.js +3 -0
  94. package/dist/resources/conversations/items.js.map +1 -1
  95. package/dist/resources/conversations/items.mjs +3 -0
  96. package/dist/resources/conversations/items.mjs.map +1 -1
  97. package/dist/resources/embeddings.d.ts +8 -0
  98. package/dist/resources/embeddings.d.ts.map +1 -1
  99. package/dist/resources/embeddings.js +8 -0
  100. package/dist/resources/embeddings.js.map +1 -1
  101. package/dist/resources/embeddings.mjs +8 -0
  102. package/dist/resources/embeddings.mjs.map +1 -1
  103. package/dist/resources/files.d.ts +11 -8
  104. package/dist/resources/files.d.ts.map +1 -1
  105. package/dist/resources/files.js +3 -0
  106. package/dist/resources/files.js.map +1 -1
  107. package/dist/resources/files.mjs +3 -0
  108. package/dist/resources/files.mjs.map +1 -1
  109. package/dist/resources/index.d.ts +1 -4
  110. package/dist/resources/index.d.ts.map +1 -1
  111. package/dist/resources/index.js +1 -7
  112. package/dist/resources/index.js.map +1 -1
  113. package/dist/resources/index.mjs +0 -3
  114. package/dist/resources/index.mjs.map +1 -1
  115. package/dist/resources/inspect.d.ts +3 -0
  116. package/dist/resources/inspect.d.ts.map +1 -1
  117. package/dist/resources/inspect.js +3 -0
  118. package/dist/resources/inspect.js.map +1 -1
  119. package/dist/resources/inspect.mjs +3 -0
  120. package/dist/resources/inspect.mjs.map +1 -1
  121. package/dist/resources/models/index.d.ts +1 -1
  122. package/dist/resources/models/index.d.ts.map +1 -1
  123. package/dist/resources/models/index.js.map +1 -1
  124. package/dist/resources/models/index.mjs.map +1 -1
  125. package/dist/resources/models/models.d.ts +7 -65
  126. package/dist/resources/models/models.d.ts.map +1 -1
  127. package/dist/resources/models/models.js +0 -19
  128. package/dist/resources/models/models.js.map +1 -1
  129. package/dist/resources/models/models.mjs +0 -19
  130. package/dist/resources/models/models.mjs.map +1 -1
  131. package/dist/resources/moderations.d.ts +3 -0
  132. package/dist/resources/moderations.d.ts.map +1 -1
  133. package/dist/resources/moderations.js +3 -0
  134. package/dist/resources/moderations.js.map +1 -1
  135. package/dist/resources/moderations.mjs +3 -0
  136. package/dist/resources/moderations.mjs.map +1 -1
  137. package/dist/resources/prompts/prompts.d.ts +3 -0
  138. package/dist/resources/prompts/prompts.d.ts.map +1 -1
  139. package/dist/resources/prompts/prompts.js +3 -0
  140. package/dist/resources/prompts/prompts.js.map +1 -1
  141. package/dist/resources/prompts/prompts.mjs +3 -0
  142. package/dist/resources/prompts/prompts.mjs.map +1 -1
  143. package/dist/resources/prompts/versions.d.ts +3 -0
  144. package/dist/resources/prompts/versions.d.ts.map +1 -1
  145. package/dist/resources/prompts/versions.js +3 -0
  146. package/dist/resources/prompts/versions.js.map +1 -1
  147. package/dist/resources/prompts/versions.mjs +3 -0
  148. package/dist/resources/prompts/versions.mjs.map +1 -1
  149. package/dist/resources/providers.d.ts +3 -0
  150. package/dist/resources/providers.d.ts.map +1 -1
  151. package/dist/resources/providers.js +3 -0
  152. package/dist/resources/providers.js.map +1 -1
  153. package/dist/resources/providers.mjs +3 -0
  154. package/dist/resources/providers.mjs.map +1 -1
  155. package/dist/resources/responses/input-items.d.ts +102 -3
  156. package/dist/resources/responses/input-items.d.ts.map +1 -1
  157. package/dist/resources/responses/responses.d.ts +582 -11
  158. package/dist/resources/responses/responses.d.ts.map +1 -1
  159. package/dist/resources/responses/responses.js.map +1 -1
  160. package/dist/resources/responses/responses.mjs.map +1 -1
  161. package/dist/resources/routes.d.ts +3 -0
  162. package/dist/resources/routes.d.ts.map +1 -1
  163. package/dist/resources/routes.js +3 -0
  164. package/dist/resources/routes.js.map +1 -1
  165. package/dist/resources/routes.mjs +3 -0
  166. package/dist/resources/routes.mjs.map +1 -1
  167. package/dist/resources/safety.d.ts +14 -11
  168. package/dist/resources/safety.d.ts.map +1 -1
  169. package/dist/resources/safety.js +3 -0
  170. package/dist/resources/safety.js.map +1 -1
  171. package/dist/resources/safety.mjs +3 -0
  172. package/dist/resources/safety.mjs.map +1 -1
  173. package/dist/resources/vector-io.d.ts +4 -4
  174. package/dist/resources/vector-stores/file-batches.d.ts +49 -1
  175. package/dist/resources/vector-stores/file-batches.d.ts.map +1 -1
  176. package/dist/resources/vector-stores/file-batches.js.map +1 -1
  177. package/dist/resources/vector-stores/file-batches.mjs.map +1 -1
  178. package/dist/resources/vector-stores/files.d.ts +100 -4
  179. package/dist/resources/vector-stores/files.d.ts.map +1 -1
  180. package/dist/resources/vector-stores/files.js.map +1 -1
  181. package/dist/resources/vector-stores/files.mjs.map +1 -1
  182. package/dist/resources/vector-stores/vector-stores.d.ts +51 -3
  183. package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -1
  184. package/dist/resources/vector-stores/vector-stores.js.map +1 -1
  185. package/dist/resources/vector-stores/vector-stores.mjs.map +1 -1
  186. package/dist/src/core.ts +10 -21
  187. package/dist/src/index.ts +51 -48
  188. package/{src/resources/alpha/post-training.ts → dist/src/internal/utils/query.ts} +5 -1
  189. package/dist/src/resources/alpha/alpha.ts +0 -20
  190. package/dist/src/resources/alpha/eval/eval.ts +3 -0
  191. package/dist/src/resources/alpha/eval/jobs.ts +3 -0
  192. package/dist/src/resources/alpha/index.ts +0 -8
  193. package/dist/src/resources/alpha/inference.ts +8 -0
  194. package/dist/src/resources/batches.ts +8 -0
  195. package/dist/src/resources/beta/datasets.ts +4 -9
  196. package/dist/src/resources/chat/chat.ts +36 -33
  197. package/dist/src/resources/chat/completions.ts +307 -811
  198. package/dist/src/resources/completions.ts +10 -4
  199. package/dist/src/resources/conversations/conversations.ts +121 -1
  200. package/dist/src/resources/conversations/items.ts +477 -6
  201. package/dist/src/resources/embeddings.ts +8 -0
  202. package/dist/src/resources/files.ts +12 -9
  203. package/dist/src/resources/index.ts +0 -18
  204. package/dist/src/resources/inspect.ts +3 -0
  205. package/dist/src/resources/models/index.ts +0 -2
  206. package/dist/src/resources/models/models.ts +7 -82
  207. package/dist/src/resources/moderations.ts +3 -0
  208. package/dist/src/resources/prompts/prompts.ts +3 -0
  209. package/dist/src/resources/prompts/versions.ts +3 -0
  210. package/dist/src/resources/providers.ts +3 -0
  211. package/dist/src/resources/responses/input-items.ts +128 -2
  212. package/dist/src/resources/responses/responses.ts +706 -7
  213. package/dist/src/resources/routes.ts +3 -0
  214. package/dist/src/resources/safety.ts +15 -12
  215. package/dist/src/resources/vector-io.ts +4 -4
  216. package/dist/src/resources/vector-stores/file-batches.ts +57 -0
  217. package/dist/src/resources/vector-stores/files.ts +117 -3
  218. package/dist/src/resources/vector-stores/vector-stores.ts +59 -2
  219. package/dist/src/streaming.ts +24 -6
  220. package/dist/src/version.ts +1 -1
  221. package/dist/streaming.d.ts.map +1 -1
  222. package/dist/streaming.js +21 -6
  223. package/dist/streaming.js.map +1 -1
  224. package/dist/streaming.mjs +21 -6
  225. package/dist/streaming.mjs.map +1 -1
  226. package/dist/version.d.ts +1 -1
  227. package/dist/version.js +1 -1
  228. package/dist/version.mjs +1 -1
  229. package/package.json +1 -1
  230. package/scripts/mock +21 -10
  231. package/scripts/test +8 -8
  232. package/src/core.ts +10 -21
  233. package/src/index.ts +51 -48
  234. package/{dist/src/resources/alpha/post-training.ts → src/internal/utils/query.ts} +5 -1
  235. package/src/resources/alpha/alpha.ts +0 -20
  236. package/src/resources/alpha/eval/eval.ts +3 -0
  237. package/src/resources/alpha/eval/jobs.ts +3 -0
  238. package/src/resources/alpha/index.ts +0 -8
  239. package/src/resources/alpha/inference.ts +8 -0
  240. package/src/resources/batches.ts +8 -0
  241. package/src/resources/beta/datasets.ts +4 -9
  242. package/src/resources/chat/chat.ts +36 -33
  243. package/src/resources/chat/completions.ts +307 -811
  244. package/src/resources/completions.ts +10 -4
  245. package/src/resources/conversations/conversations.ts +121 -1
  246. package/src/resources/conversations/items.ts +477 -6
  247. package/src/resources/embeddings.ts +8 -0
  248. package/src/resources/files.ts +12 -9
  249. package/src/resources/index.ts +0 -18
  250. package/src/resources/inspect.ts +3 -0
  251. package/src/resources/models/index.ts +0 -2
  252. package/src/resources/models/models.ts +7 -82
  253. package/src/resources/moderations.ts +3 -0
  254. package/src/resources/prompts/prompts.ts +3 -0
  255. package/src/resources/prompts/versions.ts +3 -0
  256. package/src/resources/providers.ts +3 -0
  257. package/src/resources/responses/input-items.ts +128 -2
  258. package/src/resources/responses/responses.ts +706 -7
  259. package/src/resources/routes.ts +3 -0
  260. package/src/resources/safety.ts +15 -12
  261. package/src/resources/vector-io.ts +4 -4
  262. package/src/resources/vector-stores/file-batches.ts +57 -0
  263. package/src/resources/vector-stores/files.ts +117 -3
  264. package/src/resources/vector-stores/vector-stores.ts +59 -2
  265. package/src/streaming.ts +24 -6
  266. package/src/version.ts +1 -1
  267. package/tests/api-resources/beta/datasets.test.ts +4 -10
  268. package/tests/api-resources/chat/completions.test.ts +2 -0
  269. package/tests/api-resources/files.test.ts +2 -2
  270. package/tests/api-resources/models/models.test.ts +0 -39
  271. package/tests/api-resources/responses/responses.test.ts +10 -1
  272. package/tests/api-resources/vector-stores/file-batches.test.ts +1 -1
  273. package/tests/api-resources/vector-stores/files.test.ts +1 -1
  274. package/tests/api-resources/vector-stores/vector-stores.test.ts +1 -1
  275. package/tests/stringifyQuery.test.ts +2 -4
  276. package/dist/resources/alpha/post-training/index.d.ts +0 -3
  277. package/dist/resources/alpha/post-training/index.d.ts.map +0 -1
  278. package/dist/resources/alpha/post-training/index.js +0 -15
  279. package/dist/resources/alpha/post-training/index.js.map +0 -1
  280. package/dist/resources/alpha/post-training/index.mjs +0 -10
  281. package/dist/resources/alpha/post-training/index.mjs.map +0 -1
  282. package/dist/resources/alpha/post-training/job.d.ts +0 -104
  283. package/dist/resources/alpha/post-training/job.d.ts.map +0 -1
  284. package/dist/resources/alpha/post-training/job.js +0 -42
  285. package/dist/resources/alpha/post-training/job.js.map +0 -1
  286. package/dist/resources/alpha/post-training/job.mjs +0 -38
  287. package/dist/resources/alpha/post-training/job.mjs.map +0 -1
  288. package/dist/resources/alpha/post-training/post-training.d.ts +0 -269
  289. package/dist/resources/alpha/post-training/post-training.d.ts.map +0 -1
  290. package/dist/resources/alpha/post-training/post-training.js.map +0 -1
  291. package/dist/resources/alpha/post-training/post-training.mjs +0 -30
  292. package/dist/resources/alpha/post-training/post-training.mjs.map +0 -1
  293. package/dist/resources/alpha/post-training.d.ts +0 -2
  294. package/dist/resources/alpha/post-training.d.ts.map +0 -1
  295. package/dist/resources/alpha/post-training.js +0 -25
  296. package/dist/resources/alpha/post-training.js.map +0 -1
  297. package/dist/resources/alpha/post-training.mjs.map +0 -1
  298. package/dist/resources/tool-runtime.d.ts +0 -152
  299. package/dist/resources/tool-runtime.d.ts.map +0 -1
  300. package/dist/resources/tool-runtime.js +0 -30
  301. package/dist/resources/tool-runtime.js.map +0 -1
  302. package/dist/resources/tool-runtime.mjs +0 -26
  303. package/dist/resources/tool-runtime.mjs.map +0 -1
  304. package/dist/resources/toolgroups.d.ts +0 -91
  305. package/dist/resources/toolgroups.d.ts.map +0 -1
  306. package/dist/resources/toolgroups.js +0 -54
  307. package/dist/resources/toolgroups.js.map +0 -1
  308. package/dist/resources/toolgroups.mjs +0 -50
  309. package/dist/resources/toolgroups.mjs.map +0 -1
  310. package/dist/resources/tools.d.ts +0 -26
  311. package/dist/resources/tools.d.ts.map +0 -1
  312. package/dist/resources/tools.js +0 -30
  313. package/dist/resources/tools.js.map +0 -1
  314. package/dist/resources/tools.mjs +0 -26
  315. package/dist/resources/tools.mjs.map +0 -1
  316. package/dist/src/resources/alpha/post-training/index.ts +0 -17
  317. package/dist/src/resources/alpha/post-training/job.ts +0 -161
  318. package/dist/src/resources/alpha/post-training/post-training.ts +0 -385
  319. package/dist/src/resources/tool-runtime.ts +0 -217
  320. package/dist/src/resources/toolgroups.ts +0 -135
  321. package/dist/src/resources/tools.ts +0 -52
  322. package/src/resources/alpha/post-training/index.ts +0 -17
  323. package/src/resources/alpha/post-training/job.ts +0 -161
  324. package/src/resources/alpha/post-training/post-training.ts +0 -385
  325. package/src/resources/tool-runtime.ts +0 -217
  326. package/src/resources/toolgroups.ts +0 -135
  327. package/src/resources/tools.ts +0 -52
  328. package/tests/api-resources/alpha/post-training/job.test.ts +0 -86
  329. package/tests/api-resources/alpha/post-training/post-training.test.ts +0 -134
  330. package/tests/api-resources/tool-runtime.test.ts +0 -68
  331. package/tests/api-resources/toolgroups.test.ts +0 -91
  332. package/tests/api-resources/tools.test.ts +0 -57
@@ -98,12 +98,15 @@ export interface ResponseObject {
98
98
  | ResponseObject.OpenAIResponseOutputMessageMcpCall
99
99
  | ResponseObject.OpenAIResponseOutputMessageMcpListTools
100
100
  | ResponseObject.OpenAIResponseMcpApprovalRequest
101
+ | ResponseObject.OpenAIResponseOutputMessageReasoningItem
101
102
  >;
102
103
 
103
104
  status: string;
104
105
 
105
106
  store: boolean;
106
107
 
108
+ background?: boolean;
109
+
107
110
  completed_at?: number | null;
108
111
 
109
112
  /**
@@ -111,6 +114,13 @@ export interface ResponseObject {
111
114
  */
112
115
  error?: ResponseObject.Error | null;
113
116
 
117
+ frequency_penalty?: number | null;
118
+
119
+ /**
120
+ * Details explaining why a response was incomplete.
121
+ */
122
+ incomplete_details?: ResponseObject.IncompleteDetails | null;
123
+
114
124
  instructions?: string | null;
115
125
 
116
126
  max_output_tokens?: number | null;
@@ -123,6 +133,8 @@ export interface ResponseObject {
123
133
 
124
134
  parallel_tool_calls?: boolean | null;
125
135
 
136
+ presence_penalty?: number | null;
137
+
126
138
  previous_response_id?: string | null;
127
139
 
128
140
  /**
@@ -130,6 +142,8 @@ export interface ResponseObject {
130
142
  */
131
143
  prompt?: ResponseObject.Prompt | null;
132
144
 
145
+ prompt_cache_key?: string | null;
146
+
133
147
  /**
134
148
  * Configuration for reasoning effort in OpenAI responses.
135
149
  *
@@ -139,6 +153,8 @@ export interface ResponseObject {
139
153
 
140
154
  safety_identifier?: string | null;
141
155
 
156
+ service_tier?: string | null;
157
+
142
158
  temperature?: number | null;
143
159
 
144
160
  /**
@@ -147,7 +163,7 @@ export interface ResponseObject {
147
163
  text?: ResponseObject.Text;
148
164
 
149
165
  /**
150
- * Constrains the tools available to the model to a pre-defined set.
166
+ * Enumeration of simple tool choice modes for response generation.
151
167
  */
152
168
  tool_choice?:
153
169
  | 'auto'
@@ -168,6 +184,8 @@ export interface ResponseObject {
168
184
  | ResponseObject.OpenAIResponseToolMcp
169
185
  > | null;
170
186
 
187
+ top_logprobs?: number | null;
188
+
171
189
  top_p?: number | null;
172
190
 
173
191
  truncation?: string | null;
@@ -244,6 +262,9 @@ export namespace ResponseObject {
244
262
  type?: 'input_file';
245
263
  }
246
264
 
265
+ /**
266
+ * Text content within an output message of an OpenAI response.
267
+ */
247
268
  export interface OpenAIResponseOutputMessageContentOutputTextOutput {
248
269
  text: string;
249
270
 
@@ -288,6 +309,9 @@ export namespace ResponseObject {
288
309
  type?: 'url_citation';
289
310
  }
290
311
 
312
+ /**
313
+ * Container file citation annotation referencing a file within a container.
314
+ */
291
315
  export interface OpenAIResponseAnnotationContainerFileCitation {
292
316
  container_id: string;
293
317
 
@@ -302,6 +326,9 @@ export namespace ResponseObject {
302
326
  type?: 'container_file_citation';
303
327
  }
304
328
 
329
+ /**
330
+ * File path annotation referencing a generated file in response content.
331
+ */
305
332
  export interface OpenAIResponseAnnotationFilePath {
306
333
  file_id: string;
307
334
 
@@ -490,6 +517,68 @@ export namespace ResponseObject {
490
517
  type?: 'mcp_approval_request';
491
518
  }
492
519
 
520
+ /**
521
+ * Reasoning output from the model, representing the model's thinking process.
522
+ */
523
+ export interface OpenAIResponseOutputMessageReasoningItem {
524
+ /**
525
+ * Unique identifier for the reasoning output item.
526
+ */
527
+ id: string;
528
+
529
+ /**
530
+ * Summary of the reasoning output.
531
+ */
532
+ summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
533
+
534
+ /**
535
+ * The reasoning content from the model.
536
+ */
537
+ content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
538
+
539
+ /**
540
+ * The status of the reasoning output.
541
+ */
542
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
543
+
544
+ /**
545
+ * The type identifier, always 'reasoning'.
546
+ */
547
+ type?: 'reasoning';
548
+ }
549
+
550
+ export namespace OpenAIResponseOutputMessageReasoningItem {
551
+ /**
552
+ * A summary of reasoning output from the model.
553
+ */
554
+ export interface Summary {
555
+ /**
556
+ * The summary text of the reasoning output.
557
+ */
558
+ text: string;
559
+
560
+ /**
561
+ * The type identifier, always 'summary_text'.
562
+ */
563
+ type?: 'summary_text';
564
+ }
565
+
566
+ /**
567
+ * Reasoning text from the model.
568
+ */
569
+ export interface Content {
570
+ /**
571
+ * The reasoning text content from the model.
572
+ */
573
+ text: string;
574
+
575
+ /**
576
+ * The type identifier, always 'reasoning_text'.
577
+ */
578
+ type?: 'reasoning_text';
579
+ }
580
+ }
581
+
493
582
  /**
494
583
  * Error details for failed OpenAI response requests.
495
584
  */
@@ -499,6 +588,13 @@ export namespace ResponseObject {
499
588
  message: string;
500
589
  }
501
590
 
591
+ /**
592
+ * Details explaining why a response was incomplete.
593
+ */
594
+ export interface IncompleteDetails {
595
+ reason: string;
596
+ }
597
+
502
598
  /**
503
599
  * OpenAI compatible Prompt object that is used in OpenAI responses.
504
600
  */
@@ -561,6 +657,11 @@ export namespace ResponseObject {
561
657
  */
562
658
  export interface Reasoning {
563
659
  effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
660
+
661
+ /**
662
+ * Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
663
+ */
664
+ summary?: 'auto' | 'concise' | 'detailed' | null;
564
665
  }
565
666
 
566
667
  /**
@@ -862,6 +963,8 @@ export namespace ResponseObjectStream {
862
963
  */
863
964
  response: ResponsesAPI.ResponseObject;
864
965
 
966
+ sequence_number: number;
967
+
865
968
  type?: 'response.created';
866
969
  }
867
970
 
@@ -895,7 +998,8 @@ export namespace ResponseObjectStream {
895
998
  | OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageFunctionToolCall
896
999
  | OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageMcpCall
897
1000
  | OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageMcpListTools
898
- | OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseMcpApprovalRequest;
1001
+ | OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseMcpApprovalRequest
1002
+ | OpenAIResponseObjectStreamResponseOutputItemAdded.OpenAIResponseOutputMessageReasoningItem;
899
1003
 
900
1004
  output_index: number;
901
1005
 
@@ -972,6 +1076,9 @@ export namespace ResponseObjectStream {
972
1076
  type?: 'input_file';
973
1077
  }
974
1078
 
1079
+ /**
1080
+ * Text content within an output message of an OpenAI response.
1081
+ */
975
1082
  export interface OpenAIResponseOutputMessageContentOutputText {
976
1083
  text: string;
977
1084
 
@@ -1016,6 +1123,9 @@ export namespace ResponseObjectStream {
1016
1123
  type?: 'url_citation';
1017
1124
  }
1018
1125
 
1126
+ /**
1127
+ * Container file citation annotation referencing a file within a container.
1128
+ */
1019
1129
  export interface OpenAIResponseAnnotationContainerFileCitation {
1020
1130
  container_id: string;
1021
1131
 
@@ -1030,6 +1140,9 @@ export namespace ResponseObjectStream {
1030
1140
  type?: 'container_file_citation';
1031
1141
  }
1032
1142
 
1143
+ /**
1144
+ * File path annotation referencing a generated file in response content.
1145
+ */
1033
1146
  export interface OpenAIResponseAnnotationFilePath {
1034
1147
  file_id: string;
1035
1148
 
@@ -1217,6 +1330,68 @@ export namespace ResponseObjectStream {
1217
1330
 
1218
1331
  type?: 'mcp_approval_request';
1219
1332
  }
1333
+
1334
+ /**
1335
+ * Reasoning output from the model, representing the model's thinking process.
1336
+ */
1337
+ export interface OpenAIResponseOutputMessageReasoningItem {
1338
+ /**
1339
+ * Unique identifier for the reasoning output item.
1340
+ */
1341
+ id: string;
1342
+
1343
+ /**
1344
+ * Summary of the reasoning output.
1345
+ */
1346
+ summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
1347
+
1348
+ /**
1349
+ * The reasoning content from the model.
1350
+ */
1351
+ content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
1352
+
1353
+ /**
1354
+ * The status of the reasoning output.
1355
+ */
1356
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
1357
+
1358
+ /**
1359
+ * The type identifier, always 'reasoning'.
1360
+ */
1361
+ type?: 'reasoning';
1362
+ }
1363
+
1364
+ export namespace OpenAIResponseOutputMessageReasoningItem {
1365
+ /**
1366
+ * A summary of reasoning output from the model.
1367
+ */
1368
+ export interface Summary {
1369
+ /**
1370
+ * The summary text of the reasoning output.
1371
+ */
1372
+ text: string;
1373
+
1374
+ /**
1375
+ * The type identifier, always 'summary_text'.
1376
+ */
1377
+ type?: 'summary_text';
1378
+ }
1379
+
1380
+ /**
1381
+ * Reasoning text from the model.
1382
+ */
1383
+ export interface Content {
1384
+ /**
1385
+ * The reasoning text content from the model.
1386
+ */
1387
+ text: string;
1388
+
1389
+ /**
1390
+ * The type identifier, always 'reasoning_text'.
1391
+ */
1392
+ type?: 'reasoning_text';
1393
+ }
1394
+ }
1220
1395
  }
1221
1396
 
1222
1397
  /**
@@ -1235,7 +1410,8 @@ export namespace ResponseObjectStream {
1235
1410
  | OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageFunctionToolCall
1236
1411
  | OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageMcpCall
1237
1412
  | OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageMcpListTools
1238
- | OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseMcpApprovalRequest;
1413
+ | OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseMcpApprovalRequest
1414
+ | OpenAIResponseObjectStreamResponseOutputItemDone.OpenAIResponseOutputMessageReasoningItem;
1239
1415
 
1240
1416
  output_index: number;
1241
1417
 
@@ -1312,6 +1488,9 @@ export namespace ResponseObjectStream {
1312
1488
  type?: 'input_file';
1313
1489
  }
1314
1490
 
1491
+ /**
1492
+ * Text content within an output message of an OpenAI response.
1493
+ */
1315
1494
  export interface OpenAIResponseOutputMessageContentOutputText {
1316
1495
  text: string;
1317
1496
 
@@ -1356,6 +1535,9 @@ export namespace ResponseObjectStream {
1356
1535
  type?: 'url_citation';
1357
1536
  }
1358
1537
 
1538
+ /**
1539
+ * Container file citation annotation referencing a file within a container.
1540
+ */
1359
1541
  export interface OpenAIResponseAnnotationContainerFileCitation {
1360
1542
  container_id: string;
1361
1543
 
@@ -1370,6 +1552,9 @@ export namespace ResponseObjectStream {
1370
1552
  type?: 'container_file_citation';
1371
1553
  }
1372
1554
 
1555
+ /**
1556
+ * File path annotation referencing a generated file in response content.
1557
+ */
1373
1558
  export interface OpenAIResponseAnnotationFilePath {
1374
1559
  file_id: string;
1375
1560
 
@@ -1557,6 +1742,68 @@ export namespace ResponseObjectStream {
1557
1742
 
1558
1743
  type?: 'mcp_approval_request';
1559
1744
  }
1745
+
1746
+ /**
1747
+ * Reasoning output from the model, representing the model's thinking process.
1748
+ */
1749
+ export interface OpenAIResponseOutputMessageReasoningItem {
1750
+ /**
1751
+ * Unique identifier for the reasoning output item.
1752
+ */
1753
+ id: string;
1754
+
1755
+ /**
1756
+ * Summary of the reasoning output.
1757
+ */
1758
+ summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
1759
+
1760
+ /**
1761
+ * The reasoning content from the model.
1762
+ */
1763
+ content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
1764
+
1765
+ /**
1766
+ * The status of the reasoning output.
1767
+ */
1768
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
1769
+
1770
+ /**
1771
+ * The type identifier, always 'reasoning'.
1772
+ */
1773
+ type?: 'reasoning';
1774
+ }
1775
+
1776
+ export namespace OpenAIResponseOutputMessageReasoningItem {
1777
+ /**
1778
+ * A summary of reasoning output from the model.
1779
+ */
1780
+ export interface Summary {
1781
+ /**
1782
+ * The summary text of the reasoning output.
1783
+ */
1784
+ text: string;
1785
+
1786
+ /**
1787
+ * The type identifier, always 'summary_text'.
1788
+ */
1789
+ type?: 'summary_text';
1790
+ }
1791
+
1792
+ /**
1793
+ * Reasoning text from the model.
1794
+ */
1795
+ export interface Content {
1796
+ /**
1797
+ * The reasoning text content from the model.
1798
+ */
1799
+ text: string;
1800
+
1801
+ /**
1802
+ * The type identifier, always 'reasoning_text'.
1803
+ */
1804
+ type?: 'reasoning_text';
1805
+ }
1806
+ }
1560
1807
  }
1561
1808
 
1562
1809
  /**
@@ -1689,6 +1936,9 @@ export namespace ResponseObjectStream {
1689
1936
  type?: 'response.web_search_call.in_progress';
1690
1937
  }
1691
1938
 
1939
+ /**
1940
+ * Streaming event for web search calls currently searching.
1941
+ */
1692
1942
  export interface OpenAIResponseObjectStreamResponseWebSearchCallSearching {
1693
1943
  item_id: string;
1694
1944
 
@@ -1712,24 +1962,36 @@ export namespace ResponseObjectStream {
1712
1962
  type?: 'response.web_search_call.completed';
1713
1963
  }
1714
1964
 
1965
+ /**
1966
+ * Streaming event for MCP list tools operation in progress.
1967
+ */
1715
1968
  export interface OpenAIResponseObjectStreamResponseMcpListToolsInProgress {
1716
1969
  sequence_number: number;
1717
1970
 
1718
1971
  type?: 'response.mcp_list_tools.in_progress';
1719
1972
  }
1720
1973
 
1974
+ /**
1975
+ * Streaming event for a failed MCP list tools operation.
1976
+ */
1721
1977
  export interface OpenAIResponseObjectStreamResponseMcpListToolsFailed {
1722
1978
  sequence_number: number;
1723
1979
 
1724
1980
  type?: 'response.mcp_list_tools.failed';
1725
1981
  }
1726
1982
 
1983
+ /**
1984
+ * Streaming event for a completed MCP list tools operation.
1985
+ */
1727
1986
  export interface OpenAIResponseObjectStreamResponseMcpListToolsCompleted {
1728
1987
  sequence_number: number;
1729
1988
 
1730
1989
  type?: 'response.mcp_list_tools.completed';
1731
1990
  }
1732
1991
 
1992
+ /**
1993
+ * Streaming event for incremental MCP call argument updates.
1994
+ */
1733
1995
  export interface OpenAIResponseObjectStreamResponseMcpCallArgumentsDelta {
1734
1996
  delta: string;
1735
1997
 
@@ -1742,6 +2004,9 @@ export namespace ResponseObjectStream {
1742
2004
  type?: 'response.mcp_call.arguments.delta';
1743
2005
  }
1744
2006
 
2007
+ /**
2008
+ * Streaming event for completed MCP call arguments.
2009
+ */
1745
2010
  export interface OpenAIResponseObjectStreamResponseMcpCallArgumentsDone {
1746
2011
  arguments: string;
1747
2012
 
@@ -1858,6 +2123,9 @@ export namespace ResponseObjectStream {
1858
2123
  type?: 'url_citation';
1859
2124
  }
1860
2125
 
2126
+ /**
2127
+ * Container file citation annotation referencing a file within a container.
2128
+ */
1861
2129
  export interface OpenAIResponseAnnotationContainerFileCitation {
1862
2130
  container_id: string;
1863
2131
 
@@ -1872,6 +2140,9 @@ export namespace ResponseObjectStream {
1872
2140
  type?: 'container_file_citation';
1873
2141
  }
1874
2142
 
2143
+ /**
2144
+ * File path annotation referencing a generated file in response content.
2145
+ */
1875
2146
  export interface OpenAIResponseAnnotationFilePath {
1876
2147
  file_id: string;
1877
2148
 
@@ -2022,6 +2293,9 @@ export namespace ResponseObjectStream {
2022
2293
  type?: 'url_citation';
2023
2294
  }
2024
2295
 
2296
+ /**
2297
+ * Container file citation annotation referencing a file within a container.
2298
+ */
2025
2299
  export interface OpenAIResponseAnnotationContainerFileCitation {
2026
2300
  container_id: string;
2027
2301
 
@@ -2036,6 +2310,9 @@ export namespace ResponseObjectStream {
2036
2310
  type?: 'container_file_citation';
2037
2311
  }
2038
2312
 
2313
+ /**
2314
+ * File path annotation referencing a generated file in response content.
2315
+ */
2039
2316
  export interface OpenAIResponseAnnotationFilePath {
2040
2317
  file_id: string;
2041
2318
 
@@ -2332,6 +2609,9 @@ export namespace ResponseObjectStream {
2332
2609
  type?: 'url_citation';
2333
2610
  }
2334
2611
 
2612
+ /**
2613
+ * Container file citation annotation referencing a file within a container.
2614
+ */
2335
2615
  export interface OpenAIResponseAnnotationContainerFileCitation {
2336
2616
  container_id: string;
2337
2617
 
@@ -2346,6 +2626,9 @@ export namespace ResponseObjectStream {
2346
2626
  type?: 'container_file_citation';
2347
2627
  }
2348
2628
 
2629
+ /**
2630
+ * File path annotation referencing a generated file in response content.
2631
+ */
2349
2632
  export interface OpenAIResponseAnnotationFilePath {
2350
2633
  file_id: string;
2351
2634
 
@@ -2431,6 +2714,8 @@ export namespace ResponseObjectStream {
2431
2714
  */
2432
2715
  response: ResponsesAPI.ResponseObject;
2433
2716
 
2717
+ sequence_number: number;
2718
+
2434
2719
  type?: 'response.completed';
2435
2720
  }
2436
2721
  }
@@ -2451,6 +2736,7 @@ export interface ResponseListResponse {
2451
2736
  | ResponseListResponse.OpenAIResponseOutputMessageMcpCall
2452
2737
  | ResponseListResponse.OpenAIResponseOutputMessageMcpListTools
2453
2738
  | ResponseListResponse.OpenAIResponseMcpApprovalRequest
2739
+ | ResponseListResponse.OpenAIResponseOutputMessageReasoningItem
2454
2740
  | ResponseListResponse.OpenAIResponseInputFunctionToolCallOutput
2455
2741
  | ResponseListResponse.OpenAIResponseMcpApprovalResponse
2456
2742
  | ResponseListResponse.OpenAIResponseMessageOutput
@@ -2466,12 +2752,15 @@ export interface ResponseListResponse {
2466
2752
  | ResponseListResponse.OpenAIResponseOutputMessageMcpCall
2467
2753
  | ResponseListResponse.OpenAIResponseOutputMessageMcpListTools
2468
2754
  | ResponseListResponse.OpenAIResponseMcpApprovalRequest
2755
+ | ResponseListResponse.OpenAIResponseOutputMessageReasoningItem
2469
2756
  >;
2470
2757
 
2471
2758
  status: string;
2472
2759
 
2473
2760
  store: boolean;
2474
2761
 
2762
+ background?: boolean;
2763
+
2475
2764
  completed_at?: number | null;
2476
2765
 
2477
2766
  /**
@@ -2479,6 +2768,13 @@ export interface ResponseListResponse {
2479
2768
  */
2480
2769
  error?: ResponseListResponse.Error | null;
2481
2770
 
2771
+ frequency_penalty?: number | null;
2772
+
2773
+ /**
2774
+ * Details explaining why a response was incomplete.
2775
+ */
2776
+ incomplete_details?: ResponseListResponse.IncompleteDetails | null;
2777
+
2482
2778
  instructions?: string | null;
2483
2779
 
2484
2780
  max_output_tokens?: number | null;
@@ -2491,6 +2787,8 @@ export interface ResponseListResponse {
2491
2787
 
2492
2788
  parallel_tool_calls?: boolean | null;
2493
2789
 
2790
+ presence_penalty?: number | null;
2791
+
2494
2792
  previous_response_id?: string | null;
2495
2793
 
2496
2794
  /**
@@ -2498,6 +2796,8 @@ export interface ResponseListResponse {
2498
2796
  */
2499
2797
  prompt?: ResponseListResponse.Prompt | null;
2500
2798
 
2799
+ prompt_cache_key?: string | null;
2800
+
2501
2801
  /**
2502
2802
  * Configuration for reasoning effort in OpenAI responses.
2503
2803
  *
@@ -2507,6 +2807,8 @@ export interface ResponseListResponse {
2507
2807
 
2508
2808
  safety_identifier?: string | null;
2509
2809
 
2810
+ service_tier?: string | null;
2811
+
2510
2812
  temperature?: number | null;
2511
2813
 
2512
2814
  /**
@@ -2515,7 +2817,7 @@ export interface ResponseListResponse {
2515
2817
  text?: ResponseListResponse.Text;
2516
2818
 
2517
2819
  /**
2518
- * Constrains the tools available to the model to a pre-defined set.
2820
+ * Enumeration of simple tool choice modes for response generation.
2519
2821
  */
2520
2822
  tool_choice?:
2521
2823
  | 'auto'
@@ -2536,6 +2838,8 @@ export interface ResponseListResponse {
2536
2838
  | ResponseListResponse.OpenAIResponseToolMcp
2537
2839
  > | null;
2538
2840
 
2841
+ top_logprobs?: number | null;
2842
+
2539
2843
  top_p?: number | null;
2540
2844
 
2541
2845
  truncation?: string | null;
@@ -2612,6 +2916,9 @@ export namespace ResponseListResponse {
2612
2916
  type?: 'input_file';
2613
2917
  }
2614
2918
 
2919
+ /**
2920
+ * Text content within an output message of an OpenAI response.
2921
+ */
2615
2922
  export interface OpenAIResponseOutputMessageContentOutputTextOutput {
2616
2923
  text: string;
2617
2924
 
@@ -2656,6 +2963,9 @@ export namespace ResponseListResponse {
2656
2963
  type?: 'url_citation';
2657
2964
  }
2658
2965
 
2966
+ /**
2967
+ * Container file citation annotation referencing a file within a container.
2968
+ */
2659
2969
  export interface OpenAIResponseAnnotationContainerFileCitation {
2660
2970
  container_id: string;
2661
2971
 
@@ -2670,6 +2980,9 @@ export namespace ResponseListResponse {
2670
2980
  type?: 'container_file_citation';
2671
2981
  }
2672
2982
 
2983
+ /**
2984
+ * File path annotation referencing a generated file in response content.
2985
+ */
2673
2986
  export interface OpenAIResponseAnnotationFilePath {
2674
2987
  file_id: string;
2675
2988
 
@@ -2858,6 +3171,68 @@ export namespace ResponseListResponse {
2858
3171
  type?: 'mcp_approval_request';
2859
3172
  }
2860
3173
 
3174
+ /**
3175
+ * Reasoning output from the model, representing the model's thinking process.
3176
+ */
3177
+ export interface OpenAIResponseOutputMessageReasoningItem {
3178
+ /**
3179
+ * Unique identifier for the reasoning output item.
3180
+ */
3181
+ id: string;
3182
+
3183
+ /**
3184
+ * Summary of the reasoning output.
3185
+ */
3186
+ summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
3187
+
3188
+ /**
3189
+ * The reasoning content from the model.
3190
+ */
3191
+ content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
3192
+
3193
+ /**
3194
+ * The status of the reasoning output.
3195
+ */
3196
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
3197
+
3198
+ /**
3199
+ * The type identifier, always 'reasoning'.
3200
+ */
3201
+ type?: 'reasoning';
3202
+ }
3203
+
3204
+ export namespace OpenAIResponseOutputMessageReasoningItem {
3205
+ /**
3206
+ * A summary of reasoning output from the model.
3207
+ */
3208
+ export interface Summary {
3209
+ /**
3210
+ * The summary text of the reasoning output.
3211
+ */
3212
+ text: string;
3213
+
3214
+ /**
3215
+ * The type identifier, always 'summary_text'.
3216
+ */
3217
+ type?: 'summary_text';
3218
+ }
3219
+
3220
+ /**
3221
+ * Reasoning text from the model.
3222
+ */
3223
+ export interface Content {
3224
+ /**
3225
+ * The reasoning text content from the model.
3226
+ */
3227
+ text: string;
3228
+
3229
+ /**
3230
+ * The type identifier, always 'reasoning_text'.
3231
+ */
3232
+ type?: 'reasoning_text';
3233
+ }
3234
+ }
3235
+
2861
3236
  /**
2862
3237
  * This represents the output of a function call that gets passed back to the
2863
3238
  * model.
@@ -2865,7 +3240,13 @@ export namespace ResponseListResponse {
2865
3240
  export interface OpenAIResponseInputFunctionToolCallOutput {
2866
3241
  call_id: string;
2867
3242
 
2868
- output: string;
3243
+ output:
3244
+ | string
3245
+ | Array<
3246
+ | OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentText
3247
+ | OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentImage
3248
+ | OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentFile
3249
+ >;
2869
3250
 
2870
3251
  id?: string | null;
2871
3252
 
@@ -2874,6 +3255,45 @@ export namespace ResponseListResponse {
2874
3255
  type?: 'function_call_output';
2875
3256
  }
2876
3257
 
3258
+ export namespace OpenAIResponseInputFunctionToolCallOutput {
3259
+ /**
3260
+ * Text content for input messages in OpenAI response format.
3261
+ */
3262
+ export interface OpenAIResponseInputMessageContentText {
3263
+ text: string;
3264
+
3265
+ type?: 'input_text';
3266
+ }
3267
+
3268
+ /**
3269
+ * Image content for input messages in OpenAI response format.
3270
+ */
3271
+ export interface OpenAIResponseInputMessageContentImage {
3272
+ detail?: 'low' | 'high' | 'auto';
3273
+
3274
+ file_id?: string | null;
3275
+
3276
+ image_url?: string | null;
3277
+
3278
+ type?: 'input_image';
3279
+ }
3280
+
3281
+ /**
3282
+ * File content for input messages in OpenAI response format.
3283
+ */
3284
+ export interface OpenAIResponseInputMessageContentFile {
3285
+ file_data?: string | null;
3286
+
3287
+ file_id?: string | null;
3288
+
3289
+ file_url?: string | null;
3290
+
3291
+ filename?: string | null;
3292
+
3293
+ type?: 'input_file';
3294
+ }
3295
+ }
3296
+
2877
3297
  /**
2878
3298
  * A response to an MCP approval request.
2879
3299
  */
@@ -2954,6 +3374,9 @@ export namespace ResponseListResponse {
2954
3374
  type?: 'input_file';
2955
3375
  }
2956
3376
 
3377
+ /**
3378
+ * Text content within an output message of an OpenAI response.
3379
+ */
2957
3380
  export interface OpenAIResponseOutputMessageContentOutputTextOutput {
2958
3381
  text: string;
2959
3382
 
@@ -2998,6 +3421,9 @@ export namespace ResponseListResponse {
2998
3421
  type?: 'url_citation';
2999
3422
  }
3000
3423
 
3424
+ /**
3425
+ * Container file citation annotation referencing a file within a container.
3426
+ */
3001
3427
  export interface OpenAIResponseAnnotationContainerFileCitation {
3002
3428
  container_id: string;
3003
3429
 
@@ -3012,6 +3438,9 @@ export namespace ResponseListResponse {
3012
3438
  type?: 'container_file_citation';
3013
3439
  }
3014
3440
 
3441
+ /**
3442
+ * File path annotation referencing a generated file in response content.
3443
+ */
3015
3444
  export interface OpenAIResponseAnnotationFilePath {
3016
3445
  file_id: string;
3017
3446
 
@@ -3145,6 +3574,9 @@ export namespace ResponseListResponse {
3145
3574
  type?: 'input_file';
3146
3575
  }
3147
3576
 
3577
+ /**
3578
+ * Text content within an output message of an OpenAI response.
3579
+ */
3148
3580
  export interface OpenAIResponseOutputMessageContentOutputTextOutput {
3149
3581
  text: string;
3150
3582
 
@@ -3189,6 +3621,9 @@ export namespace ResponseListResponse {
3189
3621
  type?: 'url_citation';
3190
3622
  }
3191
3623
 
3624
+ /**
3625
+ * Container file citation annotation referencing a file within a container.
3626
+ */
3192
3627
  export interface OpenAIResponseAnnotationContainerFileCitation {
3193
3628
  container_id: string;
3194
3629
 
@@ -3203,6 +3638,9 @@ export namespace ResponseListResponse {
3203
3638
  type?: 'container_file_citation';
3204
3639
  }
3205
3640
 
3641
+ /**
3642
+ * File path annotation referencing a generated file in response content.
3643
+ */
3206
3644
  export interface OpenAIResponseAnnotationFilePath {
3207
3645
  file_id: string;
3208
3646
 
@@ -3391,6 +3829,68 @@ export namespace ResponseListResponse {
3391
3829
  type?: 'mcp_approval_request';
3392
3830
  }
3393
3831
 
3832
+ /**
3833
+ * Reasoning output from the model, representing the model's thinking process.
3834
+ */
3835
+ export interface OpenAIResponseOutputMessageReasoningItem {
3836
+ /**
3837
+ * Unique identifier for the reasoning output item.
3838
+ */
3839
+ id: string;
3840
+
3841
+ /**
3842
+ * Summary of the reasoning output.
3843
+ */
3844
+ summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
3845
+
3846
+ /**
3847
+ * The reasoning content from the model.
3848
+ */
3849
+ content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
3850
+
3851
+ /**
3852
+ * The status of the reasoning output.
3853
+ */
3854
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
3855
+
3856
+ /**
3857
+ * The type identifier, always 'reasoning'.
3858
+ */
3859
+ type?: 'reasoning';
3860
+ }
3861
+
3862
+ export namespace OpenAIResponseOutputMessageReasoningItem {
3863
+ /**
3864
+ * A summary of reasoning output from the model.
3865
+ */
3866
+ export interface Summary {
3867
+ /**
3868
+ * The summary text of the reasoning output.
3869
+ */
3870
+ text: string;
3871
+
3872
+ /**
3873
+ * The type identifier, always 'summary_text'.
3874
+ */
3875
+ type?: 'summary_text';
3876
+ }
3877
+
3878
+ /**
3879
+ * Reasoning text from the model.
3880
+ */
3881
+ export interface Content {
3882
+ /**
3883
+ * The reasoning text content from the model.
3884
+ */
3885
+ text: string;
3886
+
3887
+ /**
3888
+ * The type identifier, always 'reasoning_text'.
3889
+ */
3890
+ type?: 'reasoning_text';
3891
+ }
3892
+ }
3893
+
3394
3894
  /**
3395
3895
  * Error details for failed OpenAI response requests.
3396
3896
  */
@@ -3400,6 +3900,13 @@ export namespace ResponseListResponse {
3400
3900
  message: string;
3401
3901
  }
3402
3902
 
3903
+ /**
3904
+ * Details explaining why a response was incomplete.
3905
+ */
3906
+ export interface IncompleteDetails {
3907
+ reason: string;
3908
+ }
3909
+
3403
3910
  /**
3404
3911
  * OpenAI compatible Prompt object that is used in OpenAI responses.
3405
3912
  */
@@ -3462,6 +3969,11 @@ export namespace ResponseListResponse {
3462
3969
  */
3463
3970
  export interface Reasoning {
3464
3971
  effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
3972
+
3973
+ /**
3974
+ * Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
3975
+ */
3976
+ summary?: 'auto' | 'concise' | 'detailed' | null;
3465
3977
  }
3466
3978
 
3467
3979
  /**
@@ -3739,6 +4251,7 @@ export interface ResponseCreateParamsBase {
3739
4251
  | ResponseCreateParams.OpenAIResponseOutputMessageMcpCall
3740
4252
  | ResponseCreateParams.OpenAIResponseOutputMessageMcpListTools
3741
4253
  | ResponseCreateParams.OpenAIResponseMcpApprovalRequest
4254
+ | ResponseCreateParams.OpenAIResponseOutputMessageReasoningItem
3742
4255
  | ResponseCreateParams.OpenAIResponseInputFunctionToolCallOutput
3743
4256
  | ResponseCreateParams.OpenAIResponseMcpApprovalResponse
3744
4257
  >;
@@ -3748,11 +4261,22 @@ export interface ResponseCreateParamsBase {
3748
4261
  */
3749
4262
  model: string;
3750
4263
 
4264
+ /**
4265
+ * Whether to run the model response in the background. When true, returns
4266
+ * immediately with status 'queued'.
4267
+ */
4268
+ background?: boolean;
4269
+
3751
4270
  /**
3752
4271
  * Optional ID of a conversation to add the response to.
3753
4272
  */
3754
4273
  conversation?: string | null;
3755
4274
 
4275
+ /**
4276
+ * Penalizes new tokens based on their frequency in the text so far.
4277
+ */
4278
+ frequency_penalty?: number | null;
4279
+
3756
4280
  /**
3757
4281
  * List of guardrails to apply during response generation.
3758
4282
  */
@@ -3801,6 +4325,11 @@ export interface ResponseCreateParamsBase {
3801
4325
  */
3802
4326
  parallel_tool_calls?: boolean | null;
3803
4327
 
4328
+ /**
4329
+ * Penalizes new tokens based on whether they appear in the text so far.
4330
+ */
4331
+ presence_penalty?: number | null;
4332
+
3804
4333
  /**
3805
4334
  * Optional ID of a previous response to continue from.
3806
4335
  */
@@ -3811,6 +4340,11 @@ export interface ResponseCreateParamsBase {
3811
4340
  */
3812
4341
  prompt?: ResponseCreateParams.Prompt | null;
3813
4342
 
4343
+ /**
4344
+ * A key to use when reading from or writing to the prompt cache.
4345
+ */
4346
+ prompt_cache_key?: string | null;
4347
+
3814
4348
  /**
3815
4349
  * Configuration for reasoning effort in OpenAI responses.
3816
4350
  *
@@ -3823,6 +4357,11 @@ export interface ResponseCreateParamsBase {
3823
4357
  */
3824
4358
  safety_identifier?: string | null;
3825
4359
 
4360
+ /**
4361
+ * The service tier for the request.
4362
+ */
4363
+ service_tier?: 'auto' | 'default' | 'flex' | 'priority' | null;
4364
+
3826
4365
  /**
3827
4366
  * Whether to store the response in the database.
3828
4367
  */
@@ -3833,6 +4372,11 @@ export interface ResponseCreateParamsBase {
3833
4372
  */
3834
4373
  stream?: boolean | null;
3835
4374
 
4375
+ /**
4376
+ * Options that control streamed response behavior.
4377
+ */
4378
+ stream_options?: ResponseCreateParams.StreamOptions | null;
4379
+
3836
4380
  /**
3837
4381
  * Sampling temperature.
3838
4382
  */
@@ -3867,6 +4411,26 @@ export interface ResponseCreateParamsBase {
3867
4411
  | ResponseCreateParams.OpenAIResponseInputToolFunction
3868
4412
  | ResponseCreateParams.OpenAIResponseInputToolMcp
3869
4413
  > | null;
4414
+
4415
+ /**
4416
+ * The number of most likely tokens to return at each position, along with their
4417
+ * log probabilities.
4418
+ */
4419
+ top_logprobs?: number | null;
4420
+
4421
+ /**
4422
+ * Nucleus sampling parameter that controls response diversity (lower values
4423
+ * increase focus).
4424
+ */
4425
+ top_p?: number | null;
4426
+
4427
+ /**
4428
+ * Controls how the service truncates input when it exceeds the model context
4429
+ * window.
4430
+ */
4431
+ truncation?: 'auto' | 'disabled' | null;
4432
+
4433
+ [k: string]: unknown;
3870
4434
  }
3871
4435
 
3872
4436
  export namespace ResponseCreateParams {
@@ -3935,6 +4499,9 @@ export namespace ResponseCreateParams {
3935
4499
  type?: 'input_file';
3936
4500
  }
3937
4501
 
4502
+ /**
4503
+ * Text content within an output message of an OpenAI response.
4504
+ */
3938
4505
  export interface OpenAIResponseOutputMessageContentOutputTextInput {
3939
4506
  text: string;
3940
4507
 
@@ -3979,6 +4546,9 @@ export namespace ResponseCreateParams {
3979
4546
  type?: 'url_citation';
3980
4547
  }
3981
4548
 
4549
+ /**
4550
+ * Container file citation annotation referencing a file within a container.
4551
+ */
3982
4552
  export interface OpenAIResponseAnnotationContainerFileCitation {
3983
4553
  container_id: string;
3984
4554
 
@@ -3993,6 +4563,9 @@ export namespace ResponseCreateParams {
3993
4563
  type?: 'container_file_citation';
3994
4564
  }
3995
4565
 
4566
+ /**
4567
+ * File path annotation referencing a generated file in response content.
4568
+ */
3996
4569
  export interface OpenAIResponseAnnotationFilePath {
3997
4570
  file_id: string;
3998
4571
 
@@ -4181,6 +4754,68 @@ export namespace ResponseCreateParams {
4181
4754
  type?: 'mcp_approval_request';
4182
4755
  }
4183
4756
 
4757
+ /**
4758
+ * Reasoning output from the model, representing the model's thinking process.
4759
+ */
4760
+ export interface OpenAIResponseOutputMessageReasoningItem {
4761
+ /**
4762
+ * Unique identifier for the reasoning output item.
4763
+ */
4764
+ id: string;
4765
+
4766
+ /**
4767
+ * Summary of the reasoning output.
4768
+ */
4769
+ summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
4770
+
4771
+ /**
4772
+ * The reasoning content from the model.
4773
+ */
4774
+ content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
4775
+
4776
+ /**
4777
+ * The status of the reasoning output.
4778
+ */
4779
+ status?: 'in_progress' | 'completed' | 'incomplete' | null;
4780
+
4781
+ /**
4782
+ * The type identifier, always 'reasoning'.
4783
+ */
4784
+ type?: 'reasoning';
4785
+ }
4786
+
4787
+ export namespace OpenAIResponseOutputMessageReasoningItem {
4788
+ /**
4789
+ * A summary of reasoning output from the model.
4790
+ */
4791
+ export interface Summary {
4792
+ /**
4793
+ * The summary text of the reasoning output.
4794
+ */
4795
+ text: string;
4796
+
4797
+ /**
4798
+ * The type identifier, always 'summary_text'.
4799
+ */
4800
+ type?: 'summary_text';
4801
+ }
4802
+
4803
+ /**
4804
+ * Reasoning text from the model.
4805
+ */
4806
+ export interface Content {
4807
+ /**
4808
+ * The reasoning text content from the model.
4809
+ */
4810
+ text: string;
4811
+
4812
+ /**
4813
+ * The type identifier, always 'reasoning_text'.
4814
+ */
4815
+ type?: 'reasoning_text';
4816
+ }
4817
+ }
4818
+
4184
4819
  /**
4185
4820
  * This represents the output of a function call that gets passed back to the
4186
4821
  * model.
@@ -4188,7 +4823,13 @@ export namespace ResponseCreateParams {
4188
4823
  export interface OpenAIResponseInputFunctionToolCallOutput {
4189
4824
  call_id: string;
4190
4825
 
4191
- output: string;
4826
+ output:
4827
+ | string
4828
+ | Array<
4829
+ | OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentText
4830
+ | OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentImage
4831
+ | OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentFile
4832
+ >;
4192
4833
 
4193
4834
  id?: string | null;
4194
4835
 
@@ -4197,6 +4838,45 @@ export namespace ResponseCreateParams {
4197
4838
  type?: 'function_call_output';
4198
4839
  }
4199
4840
 
4841
+ export namespace OpenAIResponseInputFunctionToolCallOutput {
4842
+ /**
4843
+ * Text content for input messages in OpenAI response format.
4844
+ */
4845
+ export interface OpenAIResponseInputMessageContentText {
4846
+ text: string;
4847
+
4848
+ type?: 'input_text';
4849
+ }
4850
+
4851
+ /**
4852
+ * Image content for input messages in OpenAI response format.
4853
+ */
4854
+ export interface OpenAIResponseInputMessageContentImage {
4855
+ detail?: 'low' | 'high' | 'auto';
4856
+
4857
+ file_id?: string | null;
4858
+
4859
+ image_url?: string | null;
4860
+
4861
+ type?: 'input_image';
4862
+ }
4863
+
4864
+ /**
4865
+ * File content for input messages in OpenAI response format.
4866
+ */
4867
+ export interface OpenAIResponseInputMessageContentFile {
4868
+ file_data?: string | null;
4869
+
4870
+ file_id?: string | null;
4871
+
4872
+ file_url?: string | null;
4873
+
4874
+ filename?: string | null;
4875
+
4876
+ type?: 'input_file';
4877
+ }
4878
+ }
4879
+
4200
4880
  /**
4201
4881
  * A response to an MCP approval request.
4202
4882
  */
@@ -4281,6 +4961,21 @@ export namespace ResponseCreateParams {
4281
4961
  */
4282
4962
  export interface Reasoning {
4283
4963
  effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | null;
4964
+
4965
+ /**
4966
+ * Summary mode for reasoning output. One of 'auto', 'concise', or 'detailed'.
4967
+ */
4968
+ summary?: 'auto' | 'concise' | 'detailed' | null;
4969
+ }
4970
+
4971
+ /**
4972
+ * Options that control streamed response behavior.
4973
+ */
4974
+ export interface StreamOptions {
4975
+ /**
4976
+ * Whether to obfuscate sensitive information in streamed output.
4977
+ */
4978
+ include_obfuscation?: boolean;
4284
4979
  }
4285
4980
 
4286
4981
  /**
@@ -4524,6 +5219,8 @@ export interface ResponseCreateParamsNonStreaming extends ResponseCreateParamsBa
4524
5219
  * Whether to stream the response.
4525
5220
  */
4526
5221
  stream?: false | null;
5222
+
5223
+ [k: string]: unknown;
4527
5224
  }
4528
5225
 
4529
5226
  export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase {
@@ -4531,6 +5228,8 @@ export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase
4531
5228
  * Whether to stream the response.
4532
5229
  */
4533
5230
  stream: true;
5231
+
5232
+ [k: string]: unknown;
4534
5233
  }
4535
5234
 
4536
5235
  export interface ResponseListParams extends OpenAICursorPageParams {
@@ -4540,7 +5239,7 @@ export interface ResponseListParams extends OpenAICursorPageParams {
4540
5239
  model?: string | null;
4541
5240
 
4542
5241
  /**
4543
- * Sort order for paginated responses.
5242
+ * The order to sort responses by when sorted by created_at ('asc' or 'desc').
4544
5243
  */
4545
5244
  order?: 'asc' | 'desc' | null;
4546
5245
  }