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
|
@@ -11,6 +11,9 @@ import { isRequestOptions } from '../../core';
|
|
|
11
11
|
import * as Core from '../../core';
|
|
12
12
|
import { OpenAICursorPage, type OpenAICursorPageParams } from '../../pagination';
|
|
13
13
|
|
|
14
|
+
/**
|
|
15
|
+
* Protocol for conversation management operations.
|
|
16
|
+
*/
|
|
14
17
|
export class Items extends APIResource {
|
|
15
18
|
/**
|
|
16
19
|
* Create items in the conversation.
|
|
@@ -92,6 +95,7 @@ export interface ItemCreateResponse {
|
|
|
92
95
|
| ItemCreateResponse.OpenAIResponseMcpApprovalResponse
|
|
93
96
|
| ItemCreateResponse.OpenAIResponseOutputMessageMcpCall
|
|
94
97
|
| ItemCreateResponse.OpenAIResponseOutputMessageMcpListTools
|
|
98
|
+
| ItemCreateResponse.OpenAIResponseOutputMessageReasoningItem
|
|
95
99
|
>;
|
|
96
100
|
|
|
97
101
|
/**
|
|
@@ -181,6 +185,9 @@ export namespace ItemCreateResponse {
|
|
|
181
185
|
type?: 'input_file';
|
|
182
186
|
}
|
|
183
187
|
|
|
188
|
+
/**
|
|
189
|
+
* Text content within an output message of an OpenAI response.
|
|
190
|
+
*/
|
|
184
191
|
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
185
192
|
text: string;
|
|
186
193
|
|
|
@@ -225,6 +232,9 @@ export namespace ItemCreateResponse {
|
|
|
225
232
|
type?: 'url_citation';
|
|
226
233
|
}
|
|
227
234
|
|
|
235
|
+
/**
|
|
236
|
+
* Container file citation annotation referencing a file within a container.
|
|
237
|
+
*/
|
|
228
238
|
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
229
239
|
container_id: string;
|
|
230
240
|
|
|
@@ -239,6 +249,9 @@ export namespace ItemCreateResponse {
|
|
|
239
249
|
type?: 'container_file_citation';
|
|
240
250
|
}
|
|
241
251
|
|
|
252
|
+
/**
|
|
253
|
+
* File path annotation referencing a generated file in response content.
|
|
254
|
+
*/
|
|
242
255
|
export interface OpenAIResponseAnnotationFilePath {
|
|
243
256
|
file_id: string;
|
|
244
257
|
|
|
@@ -374,7 +387,13 @@ export namespace ItemCreateResponse {
|
|
|
374
387
|
export interface OpenAIResponseInputFunctionToolCallOutput {
|
|
375
388
|
call_id: string;
|
|
376
389
|
|
|
377
|
-
output:
|
|
390
|
+
output:
|
|
391
|
+
| string
|
|
392
|
+
| Array<
|
|
393
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentText
|
|
394
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentImage
|
|
395
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentFile
|
|
396
|
+
>;
|
|
378
397
|
|
|
379
398
|
id?: string | null;
|
|
380
399
|
|
|
@@ -383,6 +402,45 @@ export namespace ItemCreateResponse {
|
|
|
383
402
|
type?: 'function_call_output';
|
|
384
403
|
}
|
|
385
404
|
|
|
405
|
+
export namespace OpenAIResponseInputFunctionToolCallOutput {
|
|
406
|
+
/**
|
|
407
|
+
* Text content for input messages in OpenAI response format.
|
|
408
|
+
*/
|
|
409
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
410
|
+
text: string;
|
|
411
|
+
|
|
412
|
+
type?: 'input_text';
|
|
413
|
+
}
|
|
414
|
+
|
|
415
|
+
/**
|
|
416
|
+
* Image content for input messages in OpenAI response format.
|
|
417
|
+
*/
|
|
418
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
419
|
+
detail?: 'low' | 'high' | 'auto';
|
|
420
|
+
|
|
421
|
+
file_id?: string | null;
|
|
422
|
+
|
|
423
|
+
image_url?: string | null;
|
|
424
|
+
|
|
425
|
+
type?: 'input_image';
|
|
426
|
+
}
|
|
427
|
+
|
|
428
|
+
/**
|
|
429
|
+
* File content for input messages in OpenAI response format.
|
|
430
|
+
*/
|
|
431
|
+
export interface OpenAIResponseInputMessageContentFile {
|
|
432
|
+
file_data?: string | null;
|
|
433
|
+
|
|
434
|
+
file_id?: string | null;
|
|
435
|
+
|
|
436
|
+
file_url?: string | null;
|
|
437
|
+
|
|
438
|
+
filename?: string | null;
|
|
439
|
+
|
|
440
|
+
type?: 'input_file';
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
|
|
386
444
|
/**
|
|
387
445
|
* A request for human approval of a tool invocation.
|
|
388
446
|
*/
|
|
@@ -457,6 +515,68 @@ export namespace ItemCreateResponse {
|
|
|
457
515
|
description?: string | null;
|
|
458
516
|
}
|
|
459
517
|
}
|
|
518
|
+
|
|
519
|
+
/**
|
|
520
|
+
* Reasoning output from the model, representing the model's thinking process.
|
|
521
|
+
*/
|
|
522
|
+
export interface OpenAIResponseOutputMessageReasoningItem {
|
|
523
|
+
/**
|
|
524
|
+
* Unique identifier for the reasoning output item.
|
|
525
|
+
*/
|
|
526
|
+
id: string;
|
|
527
|
+
|
|
528
|
+
/**
|
|
529
|
+
* Summary of the reasoning output.
|
|
530
|
+
*/
|
|
531
|
+
summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The reasoning content from the model.
|
|
535
|
+
*/
|
|
536
|
+
content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
|
|
537
|
+
|
|
538
|
+
/**
|
|
539
|
+
* The status of the reasoning output.
|
|
540
|
+
*/
|
|
541
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
542
|
+
|
|
543
|
+
/**
|
|
544
|
+
* The type identifier, always 'reasoning'.
|
|
545
|
+
*/
|
|
546
|
+
type?: 'reasoning';
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
export namespace OpenAIResponseOutputMessageReasoningItem {
|
|
550
|
+
/**
|
|
551
|
+
* A summary of reasoning output from the model.
|
|
552
|
+
*/
|
|
553
|
+
export interface Summary {
|
|
554
|
+
/**
|
|
555
|
+
* The summary text of the reasoning output.
|
|
556
|
+
*/
|
|
557
|
+
text: string;
|
|
558
|
+
|
|
559
|
+
/**
|
|
560
|
+
* The type identifier, always 'summary_text'.
|
|
561
|
+
*/
|
|
562
|
+
type?: 'summary_text';
|
|
563
|
+
}
|
|
564
|
+
|
|
565
|
+
/**
|
|
566
|
+
* Reasoning text from the model.
|
|
567
|
+
*/
|
|
568
|
+
export interface Content {
|
|
569
|
+
/**
|
|
570
|
+
* The reasoning text content from the model.
|
|
571
|
+
*/
|
|
572
|
+
text: string;
|
|
573
|
+
|
|
574
|
+
/**
|
|
575
|
+
* The type identifier, always 'reasoning_text'.
|
|
576
|
+
*/
|
|
577
|
+
type?: 'reasoning_text';
|
|
578
|
+
}
|
|
579
|
+
}
|
|
460
580
|
}
|
|
461
581
|
|
|
462
582
|
/**
|
|
@@ -473,7 +593,8 @@ export type ItemListResponse =
|
|
|
473
593
|
| ItemListResponse.OpenAIResponseMcpApprovalRequest
|
|
474
594
|
| ItemListResponse.OpenAIResponseMcpApprovalResponse
|
|
475
595
|
| ItemListResponse.OpenAIResponseOutputMessageMcpCall
|
|
476
|
-
| ItemListResponse.OpenAIResponseOutputMessageMcpListTools
|
|
596
|
+
| ItemListResponse.OpenAIResponseOutputMessageMcpListTools
|
|
597
|
+
| ItemListResponse.OpenAIResponseOutputMessageReasoningItem;
|
|
477
598
|
|
|
478
599
|
export namespace ItemListResponse {
|
|
479
600
|
/**
|
|
@@ -541,6 +662,9 @@ export namespace ItemListResponse {
|
|
|
541
662
|
type?: 'input_file';
|
|
542
663
|
}
|
|
543
664
|
|
|
665
|
+
/**
|
|
666
|
+
* Text content within an output message of an OpenAI response.
|
|
667
|
+
*/
|
|
544
668
|
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
545
669
|
text: string;
|
|
546
670
|
|
|
@@ -585,6 +709,9 @@ export namespace ItemListResponse {
|
|
|
585
709
|
type?: 'url_citation';
|
|
586
710
|
}
|
|
587
711
|
|
|
712
|
+
/**
|
|
713
|
+
* Container file citation annotation referencing a file within a container.
|
|
714
|
+
*/
|
|
588
715
|
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
589
716
|
container_id: string;
|
|
590
717
|
|
|
@@ -599,6 +726,9 @@ export namespace ItemListResponse {
|
|
|
599
726
|
type?: 'container_file_citation';
|
|
600
727
|
}
|
|
601
728
|
|
|
729
|
+
/**
|
|
730
|
+
* File path annotation referencing a generated file in response content.
|
|
731
|
+
*/
|
|
602
732
|
export interface OpenAIResponseAnnotationFilePath {
|
|
603
733
|
file_id: string;
|
|
604
734
|
|
|
@@ -734,7 +864,13 @@ export namespace ItemListResponse {
|
|
|
734
864
|
export interface OpenAIResponseInputFunctionToolCallOutput {
|
|
735
865
|
call_id: string;
|
|
736
866
|
|
|
737
|
-
output:
|
|
867
|
+
output:
|
|
868
|
+
| string
|
|
869
|
+
| Array<
|
|
870
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentText
|
|
871
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentImage
|
|
872
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentFile
|
|
873
|
+
>;
|
|
738
874
|
|
|
739
875
|
id?: string | null;
|
|
740
876
|
|
|
@@ -743,6 +879,45 @@ export namespace ItemListResponse {
|
|
|
743
879
|
type?: 'function_call_output';
|
|
744
880
|
}
|
|
745
881
|
|
|
882
|
+
export namespace OpenAIResponseInputFunctionToolCallOutput {
|
|
883
|
+
/**
|
|
884
|
+
* Text content for input messages in OpenAI response format.
|
|
885
|
+
*/
|
|
886
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
887
|
+
text: string;
|
|
888
|
+
|
|
889
|
+
type?: 'input_text';
|
|
890
|
+
}
|
|
891
|
+
|
|
892
|
+
/**
|
|
893
|
+
* Image content for input messages in OpenAI response format.
|
|
894
|
+
*/
|
|
895
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
896
|
+
detail?: 'low' | 'high' | 'auto';
|
|
897
|
+
|
|
898
|
+
file_id?: string | null;
|
|
899
|
+
|
|
900
|
+
image_url?: string | null;
|
|
901
|
+
|
|
902
|
+
type?: 'input_image';
|
|
903
|
+
}
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* File content for input messages in OpenAI response format.
|
|
907
|
+
*/
|
|
908
|
+
export interface OpenAIResponseInputMessageContentFile {
|
|
909
|
+
file_data?: string | null;
|
|
910
|
+
|
|
911
|
+
file_id?: string | null;
|
|
912
|
+
|
|
913
|
+
file_url?: string | null;
|
|
914
|
+
|
|
915
|
+
filename?: string | null;
|
|
916
|
+
|
|
917
|
+
type?: 'input_file';
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
|
|
746
921
|
/**
|
|
747
922
|
* A request for human approval of a tool invocation.
|
|
748
923
|
*/
|
|
@@ -817,6 +992,68 @@ export namespace ItemListResponse {
|
|
|
817
992
|
description?: string | null;
|
|
818
993
|
}
|
|
819
994
|
}
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Reasoning output from the model, representing the model's thinking process.
|
|
998
|
+
*/
|
|
999
|
+
export interface OpenAIResponseOutputMessageReasoningItem {
|
|
1000
|
+
/**
|
|
1001
|
+
* Unique identifier for the reasoning output item.
|
|
1002
|
+
*/
|
|
1003
|
+
id: string;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Summary of the reasoning output.
|
|
1007
|
+
*/
|
|
1008
|
+
summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
|
|
1009
|
+
|
|
1010
|
+
/**
|
|
1011
|
+
* The reasoning content from the model.
|
|
1012
|
+
*/
|
|
1013
|
+
content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
|
|
1014
|
+
|
|
1015
|
+
/**
|
|
1016
|
+
* The status of the reasoning output.
|
|
1017
|
+
*/
|
|
1018
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
1019
|
+
|
|
1020
|
+
/**
|
|
1021
|
+
* The type identifier, always 'reasoning'.
|
|
1022
|
+
*/
|
|
1023
|
+
type?: 'reasoning';
|
|
1024
|
+
}
|
|
1025
|
+
|
|
1026
|
+
export namespace OpenAIResponseOutputMessageReasoningItem {
|
|
1027
|
+
/**
|
|
1028
|
+
* A summary of reasoning output from the model.
|
|
1029
|
+
*/
|
|
1030
|
+
export interface Summary {
|
|
1031
|
+
/**
|
|
1032
|
+
* The summary text of the reasoning output.
|
|
1033
|
+
*/
|
|
1034
|
+
text: string;
|
|
1035
|
+
|
|
1036
|
+
/**
|
|
1037
|
+
* The type identifier, always 'summary_text'.
|
|
1038
|
+
*/
|
|
1039
|
+
type?: 'summary_text';
|
|
1040
|
+
}
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* Reasoning text from the model.
|
|
1044
|
+
*/
|
|
1045
|
+
export interface Content {
|
|
1046
|
+
/**
|
|
1047
|
+
* The reasoning text content from the model.
|
|
1048
|
+
*/
|
|
1049
|
+
text: string;
|
|
1050
|
+
|
|
1051
|
+
/**
|
|
1052
|
+
* The type identifier, always 'reasoning_text'.
|
|
1053
|
+
*/
|
|
1054
|
+
type?: 'reasoning_text';
|
|
1055
|
+
}
|
|
1056
|
+
}
|
|
820
1057
|
}
|
|
821
1058
|
|
|
822
1059
|
/**
|
|
@@ -853,7 +1090,8 @@ export type ItemGetResponse =
|
|
|
853
1090
|
| ItemGetResponse.OpenAIResponseMcpApprovalRequest
|
|
854
1091
|
| ItemGetResponse.OpenAIResponseMcpApprovalResponse
|
|
855
1092
|
| ItemGetResponse.OpenAIResponseOutputMessageMcpCall
|
|
856
|
-
| ItemGetResponse.OpenAIResponseOutputMessageMcpListTools
|
|
1093
|
+
| ItemGetResponse.OpenAIResponseOutputMessageMcpListTools
|
|
1094
|
+
| ItemGetResponse.OpenAIResponseOutputMessageReasoningItem;
|
|
857
1095
|
|
|
858
1096
|
export namespace ItemGetResponse {
|
|
859
1097
|
/**
|
|
@@ -921,6 +1159,9 @@ export namespace ItemGetResponse {
|
|
|
921
1159
|
type?: 'input_file';
|
|
922
1160
|
}
|
|
923
1161
|
|
|
1162
|
+
/**
|
|
1163
|
+
* Text content within an output message of an OpenAI response.
|
|
1164
|
+
*/
|
|
924
1165
|
export interface OpenAIResponseOutputMessageContentOutputTextOutput {
|
|
925
1166
|
text: string;
|
|
926
1167
|
|
|
@@ -965,6 +1206,9 @@ export namespace ItemGetResponse {
|
|
|
965
1206
|
type?: 'url_citation';
|
|
966
1207
|
}
|
|
967
1208
|
|
|
1209
|
+
/**
|
|
1210
|
+
* Container file citation annotation referencing a file within a container.
|
|
1211
|
+
*/
|
|
968
1212
|
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
969
1213
|
container_id: string;
|
|
970
1214
|
|
|
@@ -979,6 +1223,9 @@ export namespace ItemGetResponse {
|
|
|
979
1223
|
type?: 'container_file_citation';
|
|
980
1224
|
}
|
|
981
1225
|
|
|
1226
|
+
/**
|
|
1227
|
+
* File path annotation referencing a generated file in response content.
|
|
1228
|
+
*/
|
|
982
1229
|
export interface OpenAIResponseAnnotationFilePath {
|
|
983
1230
|
file_id: string;
|
|
984
1231
|
|
|
@@ -1114,7 +1361,13 @@ export namespace ItemGetResponse {
|
|
|
1114
1361
|
export interface OpenAIResponseInputFunctionToolCallOutput {
|
|
1115
1362
|
call_id: string;
|
|
1116
1363
|
|
|
1117
|
-
output:
|
|
1364
|
+
output:
|
|
1365
|
+
| string
|
|
1366
|
+
| Array<
|
|
1367
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentText
|
|
1368
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentImage
|
|
1369
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentFile
|
|
1370
|
+
>;
|
|
1118
1371
|
|
|
1119
1372
|
id?: string | null;
|
|
1120
1373
|
|
|
@@ -1123,6 +1376,45 @@ export namespace ItemGetResponse {
|
|
|
1123
1376
|
type?: 'function_call_output';
|
|
1124
1377
|
}
|
|
1125
1378
|
|
|
1379
|
+
export namespace OpenAIResponseInputFunctionToolCallOutput {
|
|
1380
|
+
/**
|
|
1381
|
+
* Text content for input messages in OpenAI response format.
|
|
1382
|
+
*/
|
|
1383
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
1384
|
+
text: string;
|
|
1385
|
+
|
|
1386
|
+
type?: 'input_text';
|
|
1387
|
+
}
|
|
1388
|
+
|
|
1389
|
+
/**
|
|
1390
|
+
* Image content for input messages in OpenAI response format.
|
|
1391
|
+
*/
|
|
1392
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
1393
|
+
detail?: 'low' | 'high' | 'auto';
|
|
1394
|
+
|
|
1395
|
+
file_id?: string | null;
|
|
1396
|
+
|
|
1397
|
+
image_url?: string | null;
|
|
1398
|
+
|
|
1399
|
+
type?: 'input_image';
|
|
1400
|
+
}
|
|
1401
|
+
|
|
1402
|
+
/**
|
|
1403
|
+
* File content for input messages in OpenAI response format.
|
|
1404
|
+
*/
|
|
1405
|
+
export interface OpenAIResponseInputMessageContentFile {
|
|
1406
|
+
file_data?: string | null;
|
|
1407
|
+
|
|
1408
|
+
file_id?: string | null;
|
|
1409
|
+
|
|
1410
|
+
file_url?: string | null;
|
|
1411
|
+
|
|
1412
|
+
filename?: string | null;
|
|
1413
|
+
|
|
1414
|
+
type?: 'input_file';
|
|
1415
|
+
}
|
|
1416
|
+
}
|
|
1417
|
+
|
|
1126
1418
|
/**
|
|
1127
1419
|
* A request for human approval of a tool invocation.
|
|
1128
1420
|
*/
|
|
@@ -1197,6 +1489,68 @@ export namespace ItemGetResponse {
|
|
|
1197
1489
|
description?: string | null;
|
|
1198
1490
|
}
|
|
1199
1491
|
}
|
|
1492
|
+
|
|
1493
|
+
/**
|
|
1494
|
+
* Reasoning output from the model, representing the model's thinking process.
|
|
1495
|
+
*/
|
|
1496
|
+
export interface OpenAIResponseOutputMessageReasoningItem {
|
|
1497
|
+
/**
|
|
1498
|
+
* Unique identifier for the reasoning output item.
|
|
1499
|
+
*/
|
|
1500
|
+
id: string;
|
|
1501
|
+
|
|
1502
|
+
/**
|
|
1503
|
+
* Summary of the reasoning output.
|
|
1504
|
+
*/
|
|
1505
|
+
summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
|
|
1506
|
+
|
|
1507
|
+
/**
|
|
1508
|
+
* The reasoning content from the model.
|
|
1509
|
+
*/
|
|
1510
|
+
content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
|
|
1511
|
+
|
|
1512
|
+
/**
|
|
1513
|
+
* The status of the reasoning output.
|
|
1514
|
+
*/
|
|
1515
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
1516
|
+
|
|
1517
|
+
/**
|
|
1518
|
+
* The type identifier, always 'reasoning'.
|
|
1519
|
+
*/
|
|
1520
|
+
type?: 'reasoning';
|
|
1521
|
+
}
|
|
1522
|
+
|
|
1523
|
+
export namespace OpenAIResponseOutputMessageReasoningItem {
|
|
1524
|
+
/**
|
|
1525
|
+
* A summary of reasoning output from the model.
|
|
1526
|
+
*/
|
|
1527
|
+
export interface Summary {
|
|
1528
|
+
/**
|
|
1529
|
+
* The summary text of the reasoning output.
|
|
1530
|
+
*/
|
|
1531
|
+
text: string;
|
|
1532
|
+
|
|
1533
|
+
/**
|
|
1534
|
+
* The type identifier, always 'summary_text'.
|
|
1535
|
+
*/
|
|
1536
|
+
type?: 'summary_text';
|
|
1537
|
+
}
|
|
1538
|
+
|
|
1539
|
+
/**
|
|
1540
|
+
* Reasoning text from the model.
|
|
1541
|
+
*/
|
|
1542
|
+
export interface Content {
|
|
1543
|
+
/**
|
|
1544
|
+
* The reasoning text content from the model.
|
|
1545
|
+
*/
|
|
1546
|
+
text: string;
|
|
1547
|
+
|
|
1548
|
+
/**
|
|
1549
|
+
* The type identifier, always 'reasoning_text'.
|
|
1550
|
+
*/
|
|
1551
|
+
type?: 'reasoning_text';
|
|
1552
|
+
}
|
|
1553
|
+
}
|
|
1200
1554
|
}
|
|
1201
1555
|
|
|
1202
1556
|
export interface ItemCreateParams {
|
|
@@ -1214,6 +1568,7 @@ export interface ItemCreateParams {
|
|
|
1214
1568
|
| ItemCreateParams.OpenAIResponseMcpApprovalResponse
|
|
1215
1569
|
| ItemCreateParams.OpenAIResponseOutputMessageMcpCall
|
|
1216
1570
|
| ItemCreateParams.OpenAIResponseOutputMessageMcpListTools
|
|
1571
|
+
| ItemCreateParams.OpenAIResponseOutputMessageReasoningItem
|
|
1217
1572
|
>;
|
|
1218
1573
|
}
|
|
1219
1574
|
|
|
@@ -1283,6 +1638,9 @@ export namespace ItemCreateParams {
|
|
|
1283
1638
|
type?: 'input_file';
|
|
1284
1639
|
}
|
|
1285
1640
|
|
|
1641
|
+
/**
|
|
1642
|
+
* Text content within an output message of an OpenAI response.
|
|
1643
|
+
*/
|
|
1286
1644
|
export interface OpenAIResponseOutputMessageContentOutputTextInput {
|
|
1287
1645
|
text: string;
|
|
1288
1646
|
|
|
@@ -1327,6 +1685,9 @@ export namespace ItemCreateParams {
|
|
|
1327
1685
|
type?: 'url_citation';
|
|
1328
1686
|
}
|
|
1329
1687
|
|
|
1688
|
+
/**
|
|
1689
|
+
* Container file citation annotation referencing a file within a container.
|
|
1690
|
+
*/
|
|
1330
1691
|
export interface OpenAIResponseAnnotationContainerFileCitation {
|
|
1331
1692
|
container_id: string;
|
|
1332
1693
|
|
|
@@ -1341,6 +1702,9 @@ export namespace ItemCreateParams {
|
|
|
1341
1702
|
type?: 'container_file_citation';
|
|
1342
1703
|
}
|
|
1343
1704
|
|
|
1705
|
+
/**
|
|
1706
|
+
* File path annotation referencing a generated file in response content.
|
|
1707
|
+
*/
|
|
1344
1708
|
export interface OpenAIResponseAnnotationFilePath {
|
|
1345
1709
|
file_id: string;
|
|
1346
1710
|
|
|
@@ -1476,7 +1840,13 @@ export namespace ItemCreateParams {
|
|
|
1476
1840
|
export interface OpenAIResponseInputFunctionToolCallOutput {
|
|
1477
1841
|
call_id: string;
|
|
1478
1842
|
|
|
1479
|
-
output:
|
|
1843
|
+
output:
|
|
1844
|
+
| string
|
|
1845
|
+
| Array<
|
|
1846
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentText
|
|
1847
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentImage
|
|
1848
|
+
| OpenAIResponseInputFunctionToolCallOutput.OpenAIResponseInputMessageContentFile
|
|
1849
|
+
>;
|
|
1480
1850
|
|
|
1481
1851
|
id?: string | null;
|
|
1482
1852
|
|
|
@@ -1485,6 +1855,45 @@ export namespace ItemCreateParams {
|
|
|
1485
1855
|
type?: 'function_call_output';
|
|
1486
1856
|
}
|
|
1487
1857
|
|
|
1858
|
+
export namespace OpenAIResponseInputFunctionToolCallOutput {
|
|
1859
|
+
/**
|
|
1860
|
+
* Text content for input messages in OpenAI response format.
|
|
1861
|
+
*/
|
|
1862
|
+
export interface OpenAIResponseInputMessageContentText {
|
|
1863
|
+
text: string;
|
|
1864
|
+
|
|
1865
|
+
type?: 'input_text';
|
|
1866
|
+
}
|
|
1867
|
+
|
|
1868
|
+
/**
|
|
1869
|
+
* Image content for input messages in OpenAI response format.
|
|
1870
|
+
*/
|
|
1871
|
+
export interface OpenAIResponseInputMessageContentImage {
|
|
1872
|
+
detail?: 'low' | 'high' | 'auto';
|
|
1873
|
+
|
|
1874
|
+
file_id?: string | null;
|
|
1875
|
+
|
|
1876
|
+
image_url?: string | null;
|
|
1877
|
+
|
|
1878
|
+
type?: 'input_image';
|
|
1879
|
+
}
|
|
1880
|
+
|
|
1881
|
+
/**
|
|
1882
|
+
* File content for input messages in OpenAI response format.
|
|
1883
|
+
*/
|
|
1884
|
+
export interface OpenAIResponseInputMessageContentFile {
|
|
1885
|
+
file_data?: string | null;
|
|
1886
|
+
|
|
1887
|
+
file_id?: string | null;
|
|
1888
|
+
|
|
1889
|
+
file_url?: string | null;
|
|
1890
|
+
|
|
1891
|
+
filename?: string | null;
|
|
1892
|
+
|
|
1893
|
+
type?: 'input_file';
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
|
|
1488
1897
|
/**
|
|
1489
1898
|
* A request for human approval of a tool invocation.
|
|
1490
1899
|
*/
|
|
@@ -1559,6 +1968,68 @@ export namespace ItemCreateParams {
|
|
|
1559
1968
|
description?: string | null;
|
|
1560
1969
|
}
|
|
1561
1970
|
}
|
|
1971
|
+
|
|
1972
|
+
/**
|
|
1973
|
+
* Reasoning output from the model, representing the model's thinking process.
|
|
1974
|
+
*/
|
|
1975
|
+
export interface OpenAIResponseOutputMessageReasoningItem {
|
|
1976
|
+
/**
|
|
1977
|
+
* Unique identifier for the reasoning output item.
|
|
1978
|
+
*/
|
|
1979
|
+
id: string;
|
|
1980
|
+
|
|
1981
|
+
/**
|
|
1982
|
+
* Summary of the reasoning output.
|
|
1983
|
+
*/
|
|
1984
|
+
summary: Array<OpenAIResponseOutputMessageReasoningItem.Summary>;
|
|
1985
|
+
|
|
1986
|
+
/**
|
|
1987
|
+
* The reasoning content from the model.
|
|
1988
|
+
*/
|
|
1989
|
+
content?: Array<OpenAIResponseOutputMessageReasoningItem.Content> | null;
|
|
1990
|
+
|
|
1991
|
+
/**
|
|
1992
|
+
* The status of the reasoning output.
|
|
1993
|
+
*/
|
|
1994
|
+
status?: 'in_progress' | 'completed' | 'incomplete' | null;
|
|
1995
|
+
|
|
1996
|
+
/**
|
|
1997
|
+
* The type identifier, always 'reasoning'.
|
|
1998
|
+
*/
|
|
1999
|
+
type?: 'reasoning';
|
|
2000
|
+
}
|
|
2001
|
+
|
|
2002
|
+
export namespace OpenAIResponseOutputMessageReasoningItem {
|
|
2003
|
+
/**
|
|
2004
|
+
* A summary of reasoning output from the model.
|
|
2005
|
+
*/
|
|
2006
|
+
export interface Summary {
|
|
2007
|
+
/**
|
|
2008
|
+
* The summary text of the reasoning output.
|
|
2009
|
+
*/
|
|
2010
|
+
text: string;
|
|
2011
|
+
|
|
2012
|
+
/**
|
|
2013
|
+
* The type identifier, always 'summary_text'.
|
|
2014
|
+
*/
|
|
2015
|
+
type?: 'summary_text';
|
|
2016
|
+
}
|
|
2017
|
+
|
|
2018
|
+
/**
|
|
2019
|
+
* Reasoning text from the model.
|
|
2020
|
+
*/
|
|
2021
|
+
export interface Content {
|
|
2022
|
+
/**
|
|
2023
|
+
* The reasoning text content from the model.
|
|
2024
|
+
*/
|
|
2025
|
+
text: string;
|
|
2026
|
+
|
|
2027
|
+
/**
|
|
2028
|
+
* The type identifier, always 'reasoning_text'.
|
|
2029
|
+
*/
|
|
2030
|
+
type?: 'reasoning_text';
|
|
2031
|
+
}
|
|
2032
|
+
}
|
|
1562
2033
|
}
|
|
1563
2034
|
|
|
1564
2035
|
export interface ItemListParams extends OpenAICursorPageParams {
|
|
@@ -9,6 +9,14 @@
|
|
|
9
9
|
import { APIResource } from '../resource';
|
|
10
10
|
import * as Core from '../core';
|
|
11
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Llama Stack Inference API for generating completions, chat completions, and embeddings.
|
|
14
|
+
*
|
|
15
|
+
* This API provides the raw interface to the underlying models. Three kinds of models are supported:
|
|
16
|
+
* - LLM models: these models generate "raw" and "chat" (conversational) completions.
|
|
17
|
+
* - Embedding models: these models generate embeddings to be used for semantic search.
|
|
18
|
+
* - Rerank models: these models reorder the documents based on their relevance to a query.
|
|
19
|
+
*/
|
|
12
20
|
export class Embeddings extends APIResource {
|
|
13
21
|
/**
|
|
14
22
|
* Generate OpenAI-compatible embeddings for the given input using the specified
|