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.
- package/.github/workflows/ci.yml +16 -10
- package/.gitignore +1 -0
- package/.release-please-manifest.json +1 -1
- package/.stats.yml +4 -4
- package/CHANGELOG.md +80 -0
- package/CONTRIBUTING.md +2 -2
- package/README.md +22 -0
- package/api.md +1 -71
- package/dist/CHANGELOG.md +80 -0
- package/dist/README.md +22 -0
- package/dist/core.d.ts +1 -1
- package/dist/core.d.ts.map +1 -1
- package/dist/core.js +8 -17
- package/dist/core.js.map +1 -1
- package/dist/core.mjs +8 -17
- package/dist/core.mjs.map +1 -1
- package/dist/index.d.mts +51 -12
- package/dist/index.d.ts +51 -12
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +50 -11
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +50 -11
- package/dist/index.mjs.map +1 -1
- package/dist/internal/utils/query.d.ts +2 -0
- package/dist/internal/utils/query.d.ts.map +1 -0
- package/dist/{resources/alpha/post-training/post-training.js → internal/utils/query.js} +6 -24
- package/dist/internal/utils/query.js.map +1 -0
- package/dist/{resources/alpha/post-training.mjs → internal/utils/query.mjs} +5 -2
- package/dist/internal/utils/query.mjs.map +1 -0
- package/dist/package.json +1 -1
- package/dist/resources/alpha/alpha.d.ts +0 -4
- package/dist/resources/alpha/alpha.d.ts.map +1 -1
- package/dist/resources/alpha/alpha.js +0 -4
- package/dist/resources/alpha/alpha.js.map +1 -1
- package/dist/resources/alpha/alpha.mjs +0 -4
- package/dist/resources/alpha/alpha.mjs.map +1 -1
- package/dist/resources/alpha/eval/eval.d.ts +3 -0
- package/dist/resources/alpha/eval/eval.d.ts.map +1 -1
- package/dist/resources/alpha/eval/eval.js +3 -0
- package/dist/resources/alpha/eval/eval.js.map +1 -1
- package/dist/resources/alpha/eval/eval.mjs +3 -0
- package/dist/resources/alpha/eval/eval.mjs.map +1 -1
- package/dist/resources/alpha/eval/jobs.d.ts +3 -0
- package/dist/resources/alpha/eval/jobs.d.ts.map +1 -1
- package/dist/resources/alpha/eval/jobs.js +3 -0
- package/dist/resources/alpha/eval/jobs.js.map +1 -1
- package/dist/resources/alpha/eval/jobs.mjs +3 -0
- package/dist/resources/alpha/eval/jobs.mjs.map +1 -1
- package/dist/resources/alpha/index.d.ts +0 -1
- package/dist/resources/alpha/index.d.ts.map +1 -1
- package/dist/resources/alpha/index.js +1 -3
- package/dist/resources/alpha/index.js.map +1 -1
- package/dist/resources/alpha/index.mjs +0 -1
- package/dist/resources/alpha/index.mjs.map +1 -1
- package/dist/resources/alpha/inference.d.ts +8 -0
- package/dist/resources/alpha/inference.d.ts.map +1 -1
- package/dist/resources/alpha/inference.js +8 -0
- package/dist/resources/alpha/inference.js.map +1 -1
- package/dist/resources/alpha/inference.mjs +8 -0
- package/dist/resources/alpha/inference.mjs.map +1 -1
- package/dist/resources/batches.d.ts +8 -0
- package/dist/resources/batches.d.ts.map +1 -1
- package/dist/resources/batches.js +8 -0
- package/dist/resources/batches.js.map +1 -1
- package/dist/resources/batches.mjs +8 -0
- package/dist/resources/batches.mjs.map +1 -1
- package/dist/resources/beta/datasets.d.ts +4 -8
- package/dist/resources/beta/datasets.d.ts.map +1 -1
- package/dist/resources/chat/chat.d.ts +34 -32
- package/dist/resources/chat/chat.d.ts.map +1 -1
- package/dist/resources/chat/chat.js.map +1 -1
- package/dist/resources/chat/chat.mjs.map +1 -1
- package/dist/resources/chat/completions.d.ts +321 -713
- package/dist/resources/chat/completions.d.ts.map +1 -1
- package/dist/resources/chat/completions.js +8 -0
- package/dist/resources/chat/completions.js.map +1 -1
- package/dist/resources/chat/completions.mjs +8 -0
- package/dist/resources/chat/completions.mjs.map +1 -1
- package/dist/resources/completions.d.ts +10 -4
- package/dist/resources/completions.d.ts.map +1 -1
- package/dist/resources/completions.js +8 -0
- package/dist/resources/completions.js.map +1 -1
- package/dist/resources/completions.mjs +8 -0
- package/dist/resources/completions.mjs.map +1 -1
- package/dist/resources/conversations/conversations.d.ts +95 -2
- package/dist/resources/conversations/conversations.d.ts.map +1 -1
- package/dist/resources/conversations/conversations.js +3 -0
- package/dist/resources/conversations/conversations.js.map +1 -1
- package/dist/resources/conversations/conversations.mjs +3 -0
- package/dist/resources/conversations/conversations.mjs.map +1 -1
- package/dist/resources/conversations/items.d.ts +371 -8
- package/dist/resources/conversations/items.d.ts.map +1 -1
- package/dist/resources/conversations/items.js +3 -0
- package/dist/resources/conversations/items.js.map +1 -1
- package/dist/resources/conversations/items.mjs +3 -0
- package/dist/resources/conversations/items.mjs.map +1 -1
- package/dist/resources/embeddings.d.ts +8 -0
- package/dist/resources/embeddings.d.ts.map +1 -1
- package/dist/resources/embeddings.js +8 -0
- package/dist/resources/embeddings.js.map +1 -1
- package/dist/resources/embeddings.mjs +8 -0
- package/dist/resources/embeddings.mjs.map +1 -1
- package/dist/resources/files.d.ts +11 -8
- package/dist/resources/files.d.ts.map +1 -1
- package/dist/resources/files.js +3 -0
- package/dist/resources/files.js.map +1 -1
- package/dist/resources/files.mjs +3 -0
- package/dist/resources/files.mjs.map +1 -1
- package/dist/resources/index.d.ts +1 -4
- package/dist/resources/index.d.ts.map +1 -1
- package/dist/resources/index.js +1 -7
- package/dist/resources/index.js.map +1 -1
- package/dist/resources/index.mjs +0 -3
- package/dist/resources/index.mjs.map +1 -1
- package/dist/resources/inspect.d.ts +3 -0
- package/dist/resources/inspect.d.ts.map +1 -1
- package/dist/resources/inspect.js +3 -0
- package/dist/resources/inspect.js.map +1 -1
- package/dist/resources/inspect.mjs +3 -0
- package/dist/resources/inspect.mjs.map +1 -1
- package/dist/resources/models/index.d.ts +1 -1
- package/dist/resources/models/index.d.ts.map +1 -1
- package/dist/resources/models/index.js.map +1 -1
- package/dist/resources/models/index.mjs.map +1 -1
- package/dist/resources/models/models.d.ts +7 -65
- package/dist/resources/models/models.d.ts.map +1 -1
- package/dist/resources/models/models.js +0 -19
- package/dist/resources/models/models.js.map +1 -1
- package/dist/resources/models/models.mjs +0 -19
- package/dist/resources/models/models.mjs.map +1 -1
- package/dist/resources/moderations.d.ts +3 -0
- package/dist/resources/moderations.d.ts.map +1 -1
- package/dist/resources/moderations.js +3 -0
- package/dist/resources/moderations.js.map +1 -1
- package/dist/resources/moderations.mjs +3 -0
- package/dist/resources/moderations.mjs.map +1 -1
- package/dist/resources/prompts/prompts.d.ts +3 -0
- package/dist/resources/prompts/prompts.d.ts.map +1 -1
- package/dist/resources/prompts/prompts.js +3 -0
- package/dist/resources/prompts/prompts.js.map +1 -1
- package/dist/resources/prompts/prompts.mjs +3 -0
- package/dist/resources/prompts/prompts.mjs.map +1 -1
- package/dist/resources/prompts/versions.d.ts +3 -0
- package/dist/resources/prompts/versions.d.ts.map +1 -1
- package/dist/resources/prompts/versions.js +3 -0
- package/dist/resources/prompts/versions.js.map +1 -1
- package/dist/resources/prompts/versions.mjs +3 -0
- package/dist/resources/prompts/versions.mjs.map +1 -1
- package/dist/resources/providers.d.ts +3 -0
- package/dist/resources/providers.d.ts.map +1 -1
- package/dist/resources/providers.js +3 -0
- package/dist/resources/providers.js.map +1 -1
- package/dist/resources/providers.mjs +3 -0
- package/dist/resources/providers.mjs.map +1 -1
- package/dist/resources/responses/input-items.d.ts +102 -3
- package/dist/resources/responses/input-items.d.ts.map +1 -1
- package/dist/resources/responses/responses.d.ts +582 -11
- package/dist/resources/responses/responses.d.ts.map +1 -1
- package/dist/resources/responses/responses.js.map +1 -1
- package/dist/resources/responses/responses.mjs.map +1 -1
- package/dist/resources/routes.d.ts +3 -0
- package/dist/resources/routes.d.ts.map +1 -1
- package/dist/resources/routes.js +3 -0
- package/dist/resources/routes.js.map +1 -1
- package/dist/resources/routes.mjs +3 -0
- package/dist/resources/routes.mjs.map +1 -1
- package/dist/resources/safety.d.ts +14 -11
- package/dist/resources/safety.d.ts.map +1 -1
- package/dist/resources/safety.js +3 -0
- package/dist/resources/safety.js.map +1 -1
- package/dist/resources/safety.mjs +3 -0
- package/dist/resources/safety.mjs.map +1 -1
- package/dist/resources/vector-io.d.ts +4 -4
- package/dist/resources/vector-stores/file-batches.d.ts +49 -1
- package/dist/resources/vector-stores/file-batches.d.ts.map +1 -1
- package/dist/resources/vector-stores/file-batches.js.map +1 -1
- package/dist/resources/vector-stores/file-batches.mjs.map +1 -1
- package/dist/resources/vector-stores/files.d.ts +100 -4
- package/dist/resources/vector-stores/files.d.ts.map +1 -1
- package/dist/resources/vector-stores/files.js.map +1 -1
- package/dist/resources/vector-stores/files.mjs.map +1 -1
- package/dist/resources/vector-stores/vector-stores.d.ts +51 -3
- package/dist/resources/vector-stores/vector-stores.d.ts.map +1 -1
- package/dist/resources/vector-stores/vector-stores.js.map +1 -1
- package/dist/resources/vector-stores/vector-stores.mjs.map +1 -1
- package/dist/src/core.ts +10 -21
- package/dist/src/index.ts +51 -48
- package/{src/resources/alpha/post-training.ts → dist/src/internal/utils/query.ts} +5 -1
- package/dist/src/resources/alpha/alpha.ts +0 -20
- package/dist/src/resources/alpha/eval/eval.ts +3 -0
- package/dist/src/resources/alpha/eval/jobs.ts +3 -0
- package/dist/src/resources/alpha/index.ts +0 -8
- package/dist/src/resources/alpha/inference.ts +8 -0
- package/dist/src/resources/batches.ts +8 -0
- package/dist/src/resources/beta/datasets.ts +4 -9
- package/dist/src/resources/chat/chat.ts +36 -33
- package/dist/src/resources/chat/completions.ts +307 -811
- package/dist/src/resources/completions.ts +10 -4
- package/dist/src/resources/conversations/conversations.ts +121 -1
- package/dist/src/resources/conversations/items.ts +477 -6
- package/dist/src/resources/embeddings.ts +8 -0
- package/dist/src/resources/files.ts +12 -9
- package/dist/src/resources/index.ts +0 -18
- package/dist/src/resources/inspect.ts +3 -0
- package/dist/src/resources/models/index.ts +0 -2
- package/dist/src/resources/models/models.ts +7 -82
- package/dist/src/resources/moderations.ts +3 -0
- package/dist/src/resources/prompts/prompts.ts +3 -0
- package/dist/src/resources/prompts/versions.ts +3 -0
- package/dist/src/resources/providers.ts +3 -0
- package/dist/src/resources/responses/input-items.ts +128 -2
- package/dist/src/resources/responses/responses.ts +706 -7
- package/dist/src/resources/routes.ts +3 -0
- package/dist/src/resources/safety.ts +15 -12
- package/dist/src/resources/vector-io.ts +4 -4
- package/dist/src/resources/vector-stores/file-batches.ts +57 -0
- package/dist/src/resources/vector-stores/files.ts +117 -3
- package/dist/src/resources/vector-stores/vector-stores.ts +59 -2
- package/dist/src/streaming.ts +24 -6
- package/dist/src/version.ts +1 -1
- package/dist/streaming.d.ts.map +1 -1
- package/dist/streaming.js +21 -6
- package/dist/streaming.js.map +1 -1
- package/dist/streaming.mjs +21 -6
- package/dist/streaming.mjs.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/dist/version.mjs +1 -1
- package/package.json +1 -1
- package/scripts/mock +21 -10
- package/scripts/test +8 -8
- package/src/core.ts +10 -21
- package/src/index.ts +51 -48
- package/{dist/src/resources/alpha/post-training.ts → src/internal/utils/query.ts} +5 -1
- package/src/resources/alpha/alpha.ts +0 -20
- package/src/resources/alpha/eval/eval.ts +3 -0
- package/src/resources/alpha/eval/jobs.ts +3 -0
- package/src/resources/alpha/index.ts +0 -8
- package/src/resources/alpha/inference.ts +8 -0
- package/src/resources/batches.ts +8 -0
- package/src/resources/beta/datasets.ts +4 -9
- package/src/resources/chat/chat.ts +36 -33
- package/src/resources/chat/completions.ts +307 -811
- package/src/resources/completions.ts +10 -4
- package/src/resources/conversations/conversations.ts +121 -1
- package/src/resources/conversations/items.ts +477 -6
- package/src/resources/embeddings.ts +8 -0
- package/src/resources/files.ts +12 -9
- package/src/resources/index.ts +0 -18
- package/src/resources/inspect.ts +3 -0
- package/src/resources/models/index.ts +0 -2
- package/src/resources/models/models.ts +7 -82
- package/src/resources/moderations.ts +3 -0
- package/src/resources/prompts/prompts.ts +3 -0
- package/src/resources/prompts/versions.ts +3 -0
- package/src/resources/providers.ts +3 -0
- package/src/resources/responses/input-items.ts +128 -2
- package/src/resources/responses/responses.ts +706 -7
- package/src/resources/routes.ts +3 -0
- package/src/resources/safety.ts +15 -12
- package/src/resources/vector-io.ts +4 -4
- package/src/resources/vector-stores/file-batches.ts +57 -0
- package/src/resources/vector-stores/files.ts +117 -3
- package/src/resources/vector-stores/vector-stores.ts +59 -2
- package/src/streaming.ts +24 -6
- package/src/version.ts +1 -1
- package/tests/api-resources/beta/datasets.test.ts +4 -10
- package/tests/api-resources/chat/completions.test.ts +2 -0
- package/tests/api-resources/files.test.ts +2 -2
- package/tests/api-resources/models/models.test.ts +0 -39
- package/tests/api-resources/responses/responses.test.ts +10 -1
- package/tests/api-resources/vector-stores/file-batches.test.ts +1 -1
- package/tests/api-resources/vector-stores/files.test.ts +1 -1
- package/tests/api-resources/vector-stores/vector-stores.test.ts +1 -1
- package/tests/stringifyQuery.test.ts +2 -4
- package/dist/resources/alpha/post-training/index.d.ts +0 -3
- package/dist/resources/alpha/post-training/index.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/index.js +0 -15
- package/dist/resources/alpha/post-training/index.js.map +0 -1
- package/dist/resources/alpha/post-training/index.mjs +0 -10
- package/dist/resources/alpha/post-training/index.mjs.map +0 -1
- package/dist/resources/alpha/post-training/job.d.ts +0 -104
- package/dist/resources/alpha/post-training/job.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/job.js +0 -42
- package/dist/resources/alpha/post-training/job.js.map +0 -1
- package/dist/resources/alpha/post-training/job.mjs +0 -38
- package/dist/resources/alpha/post-training/job.mjs.map +0 -1
- package/dist/resources/alpha/post-training/post-training.d.ts +0 -269
- package/dist/resources/alpha/post-training/post-training.d.ts.map +0 -1
- package/dist/resources/alpha/post-training/post-training.js.map +0 -1
- package/dist/resources/alpha/post-training/post-training.mjs +0 -30
- package/dist/resources/alpha/post-training/post-training.mjs.map +0 -1
- package/dist/resources/alpha/post-training.d.ts +0 -2
- package/dist/resources/alpha/post-training.d.ts.map +0 -1
- package/dist/resources/alpha/post-training.js +0 -25
- package/dist/resources/alpha/post-training.js.map +0 -1
- package/dist/resources/alpha/post-training.mjs.map +0 -1
- package/dist/resources/tool-runtime.d.ts +0 -152
- package/dist/resources/tool-runtime.d.ts.map +0 -1
- package/dist/resources/tool-runtime.js +0 -30
- package/dist/resources/tool-runtime.js.map +0 -1
- package/dist/resources/tool-runtime.mjs +0 -26
- package/dist/resources/tool-runtime.mjs.map +0 -1
- package/dist/resources/toolgroups.d.ts +0 -91
- package/dist/resources/toolgroups.d.ts.map +0 -1
- package/dist/resources/toolgroups.js +0 -54
- package/dist/resources/toolgroups.js.map +0 -1
- package/dist/resources/toolgroups.mjs +0 -50
- package/dist/resources/toolgroups.mjs.map +0 -1
- package/dist/resources/tools.d.ts +0 -26
- package/dist/resources/tools.d.ts.map +0 -1
- package/dist/resources/tools.js +0 -30
- package/dist/resources/tools.js.map +0 -1
- package/dist/resources/tools.mjs +0 -26
- package/dist/resources/tools.mjs.map +0 -1
- package/dist/src/resources/alpha/post-training/index.ts +0 -17
- package/dist/src/resources/alpha/post-training/job.ts +0 -161
- package/dist/src/resources/alpha/post-training/post-training.ts +0 -385
- package/dist/src/resources/tool-runtime.ts +0 -217
- package/dist/src/resources/toolgroups.ts +0 -135
- package/dist/src/resources/tools.ts +0 -52
- package/src/resources/alpha/post-training/index.ts +0 -17
- package/src/resources/alpha/post-training/job.ts +0 -161
- package/src/resources/alpha/post-training/post-training.ts +0 -385
- package/src/resources/tool-runtime.ts +0 -217
- package/src/resources/toolgroups.ts +0 -135
- package/src/resources/tools.ts +0 -52
- package/tests/api-resources/alpha/post-training/job.test.ts +0 -86
- package/tests/api-resources/alpha/post-training/post-training.test.ts +0 -134
- package/tests/api-resources/tool-runtime.test.ts +0 -68
- package/tests/api-resources/toolgroups.test.ts +0 -91
- 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
|
-
*
|
|
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
|
-
*
|
|
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:
|
|
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:
|
|
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
|
-
*
|
|
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
|
}
|