llama-stack-client 0.2.9-rc1 → 0.2.10-rc2
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/index.d.mts +1 -1
- package/index.d.ts +1 -1
- package/index.d.ts.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -1
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/index.d.ts +1 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -1
- package/resources/responses/index.d.ts +3 -0
- package/resources/responses/index.d.ts.map +1 -0
- package/resources/responses/index.js +9 -0
- package/resources/responses/index.js.map +1 -0
- package/resources/responses/index.mjs +4 -0
- package/resources/responses/index.mjs.map +1 -0
- package/resources/responses/input-items.d.ts +93 -0
- package/resources/responses/input-items.d.ts.map +1 -0
- package/resources/responses/input-items.js +16 -0
- package/resources/responses/input-items.js.map +1 -0
- package/resources/responses/input-items.mjs +12 -0
- package/resources/responses/input-items.mjs.map +1 -0
- package/resources/responses/responses.d.ts +416 -0
- package/resources/responses/responses.d.ts.map +1 -0
- package/resources/responses/responses.js +59 -0
- package/resources/responses/responses.js.map +1 -0
- package/resources/responses/responses.mjs +32 -0
- package/resources/responses/responses.mjs.map +1 -0
- package/resources/responses.d.ts +1 -359
- package/resources/responses.d.ts.map +1 -1
- package/resources/responses.js +15 -25
- package/resources/responses.js.map +1 -1
- package/resources/responses.mjs +1 -23
- package/resources/responses.mjs.map +1 -1
- package/resources/tools.d.ts +0 -1
- package/resources/tools.d.ts.map +1 -1
- package/src/index.ts +10 -10
- package/src/resources/index.ts +1 -1
- package/src/resources/responses/index.ts +13 -0
- package/src/resources/responses/input-items.ts +158 -0
- package/src/resources/responses/responses.ts +727 -0
- package/src/resources/responses.ts +1 -622
- package/src/resources/tools.ts +0 -2
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.d.ts.map +1 -1
- package/version.js +1 -1
- package/version.js.map +1 -1
- package/version.mjs +1 -1
- package/version.mjs.map +1 -1
|
@@ -1,624 +1,3 @@
|
|
|
1
1
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
import { isRequestOptions } from '../core';
|
|
5
|
-
import { APIPromise } from '../core';
|
|
6
|
-
import * as Core from '../core';
|
|
7
|
-
import * as ResponsesAPI from './responses';
|
|
8
|
-
import { Stream } from '../streaming';
|
|
9
|
-
|
|
10
|
-
export class Responses extends APIResource {
|
|
11
|
-
/**
|
|
12
|
-
* Create a new OpenAI response.
|
|
13
|
-
*/
|
|
14
|
-
create(body: ResponseCreateParamsNonStreaming, options?: Core.RequestOptions): APIPromise<ResponseObject>;
|
|
15
|
-
create(
|
|
16
|
-
body: ResponseCreateParamsStreaming,
|
|
17
|
-
options?: Core.RequestOptions,
|
|
18
|
-
): APIPromise<Stream<ResponseObjectStream>>;
|
|
19
|
-
create(
|
|
20
|
-
body: ResponseCreateParamsBase,
|
|
21
|
-
options?: Core.RequestOptions,
|
|
22
|
-
): APIPromise<Stream<ResponseObjectStream> | ResponseObject>;
|
|
23
|
-
create(
|
|
24
|
-
body: ResponseCreateParams,
|
|
25
|
-
options?: Core.RequestOptions,
|
|
26
|
-
): APIPromise<ResponseObject> | APIPromise<Stream<ResponseObjectStream>> {
|
|
27
|
-
return this._client.post('/v1/openai/v1/responses', {
|
|
28
|
-
body,
|
|
29
|
-
...options,
|
|
30
|
-
stream: body.stream ?? false,
|
|
31
|
-
}) as APIPromise<ResponseObject> | APIPromise<Stream<ResponseObjectStream>>;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
/**
|
|
35
|
-
* Retrieve an OpenAI response by its ID.
|
|
36
|
-
*/
|
|
37
|
-
retrieve(responseId: string, options?: Core.RequestOptions): Core.APIPromise<ResponseObject> {
|
|
38
|
-
return this._client.get(`/v1/openai/v1/responses/${responseId}`, options);
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* List all OpenAI responses.
|
|
43
|
-
*/
|
|
44
|
-
list(query?: ResponseListParams, options?: Core.RequestOptions): Core.APIPromise<ResponseListResponse>;
|
|
45
|
-
list(options?: Core.RequestOptions): Core.APIPromise<ResponseListResponse>;
|
|
46
|
-
list(
|
|
47
|
-
query: ResponseListParams | Core.RequestOptions = {},
|
|
48
|
-
options?: Core.RequestOptions,
|
|
49
|
-
): Core.APIPromise<ResponseListResponse> {
|
|
50
|
-
if (isRequestOptions(query)) {
|
|
51
|
-
return this.list({}, query);
|
|
52
|
-
}
|
|
53
|
-
return this._client.get('/v1/openai/v1/responses', { query, ...options });
|
|
54
|
-
}
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
export interface ResponseObject {
|
|
58
|
-
id: string;
|
|
59
|
-
|
|
60
|
-
created_at: number;
|
|
61
|
-
|
|
62
|
-
model: string;
|
|
63
|
-
|
|
64
|
-
object: 'response';
|
|
65
|
-
|
|
66
|
-
output: Array<
|
|
67
|
-
| ResponseObject.OpenAIResponseMessage
|
|
68
|
-
| ResponseObject.OpenAIResponseOutputMessageWebSearchToolCall
|
|
69
|
-
| ResponseObject.OpenAIResponseOutputMessageFunctionToolCall
|
|
70
|
-
>;
|
|
71
|
-
|
|
72
|
-
parallel_tool_calls: boolean;
|
|
73
|
-
|
|
74
|
-
status: string;
|
|
75
|
-
|
|
76
|
-
error?: ResponseObject.Error;
|
|
77
|
-
|
|
78
|
-
previous_response_id?: string;
|
|
79
|
-
|
|
80
|
-
temperature?: number;
|
|
81
|
-
|
|
82
|
-
top_p?: number;
|
|
83
|
-
|
|
84
|
-
truncation?: string;
|
|
85
|
-
|
|
86
|
-
user?: string;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
export namespace ResponseObject {
|
|
90
|
-
/**
|
|
91
|
-
* Corresponds to the various Message types in the Responses API. They are all
|
|
92
|
-
* under one type because the Responses API gives them all the same "type" value,
|
|
93
|
-
* and there is no way to tell them apart in certain scenarios.
|
|
94
|
-
*/
|
|
95
|
-
export interface OpenAIResponseMessage {
|
|
96
|
-
content:
|
|
97
|
-
| string
|
|
98
|
-
| Array<
|
|
99
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
|
|
100
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
|
|
101
|
-
>
|
|
102
|
-
| Array<OpenAIResponseMessage.UnionMember2>;
|
|
103
|
-
|
|
104
|
-
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
105
|
-
|
|
106
|
-
type: 'message';
|
|
107
|
-
|
|
108
|
-
id?: string;
|
|
109
|
-
|
|
110
|
-
status?: string;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
export namespace OpenAIResponseMessage {
|
|
114
|
-
export interface OpenAIResponseInputMessageContentText {
|
|
115
|
-
text: string;
|
|
116
|
-
|
|
117
|
-
type: 'input_text';
|
|
118
|
-
}
|
|
119
|
-
|
|
120
|
-
export interface OpenAIResponseInputMessageContentImage {
|
|
121
|
-
detail: 'low' | 'high' | 'auto';
|
|
122
|
-
|
|
123
|
-
type: 'input_image';
|
|
124
|
-
|
|
125
|
-
image_url?: string;
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
export interface UnionMember2 {
|
|
129
|
-
text: string;
|
|
130
|
-
|
|
131
|
-
type: 'output_text';
|
|
132
|
-
}
|
|
133
|
-
}
|
|
134
|
-
|
|
135
|
-
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
136
|
-
id: string;
|
|
137
|
-
|
|
138
|
-
status: string;
|
|
139
|
-
|
|
140
|
-
type: 'web_search_call';
|
|
141
|
-
}
|
|
142
|
-
|
|
143
|
-
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
144
|
-
id: string;
|
|
145
|
-
|
|
146
|
-
arguments: string;
|
|
147
|
-
|
|
148
|
-
call_id: string;
|
|
149
|
-
|
|
150
|
-
name: string;
|
|
151
|
-
|
|
152
|
-
status: string;
|
|
153
|
-
|
|
154
|
-
type: 'function_call';
|
|
155
|
-
}
|
|
156
|
-
|
|
157
|
-
export interface Error {
|
|
158
|
-
code: string;
|
|
159
|
-
|
|
160
|
-
message: string;
|
|
161
|
-
}
|
|
162
|
-
}
|
|
163
|
-
|
|
164
|
-
export type ResponseObjectStream =
|
|
165
|
-
| ResponseObjectStream.OpenAIResponseObjectStreamResponseCreated
|
|
166
|
-
| ResponseObjectStream.OpenAIResponseObjectStreamResponseCompleted;
|
|
167
|
-
|
|
168
|
-
export namespace ResponseObjectStream {
|
|
169
|
-
export interface OpenAIResponseObjectStreamResponseCreated {
|
|
170
|
-
response: ResponsesAPI.ResponseObject;
|
|
171
|
-
|
|
172
|
-
type: 'response.created';
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
export interface OpenAIResponseObjectStreamResponseCompleted {
|
|
176
|
-
response: ResponsesAPI.ResponseObject;
|
|
177
|
-
|
|
178
|
-
type: 'response.completed';
|
|
179
|
-
}
|
|
180
|
-
}
|
|
181
|
-
|
|
182
|
-
export interface ResponseListResponse {
|
|
183
|
-
data: Array<ResponseListResponse.Data>;
|
|
184
|
-
|
|
185
|
-
first_id: string;
|
|
186
|
-
|
|
187
|
-
has_more: boolean;
|
|
188
|
-
|
|
189
|
-
last_id: string;
|
|
190
|
-
|
|
191
|
-
object: 'list';
|
|
192
|
-
}
|
|
193
|
-
|
|
194
|
-
export namespace ResponseListResponse {
|
|
195
|
-
export interface Data {
|
|
196
|
-
id: string;
|
|
197
|
-
|
|
198
|
-
created_at: number;
|
|
199
|
-
|
|
200
|
-
input: Array<
|
|
201
|
-
| Data.OpenAIResponseOutputMessageWebSearchToolCall
|
|
202
|
-
| Data.OpenAIResponseOutputMessageFunctionToolCall
|
|
203
|
-
| Data.OpenAIResponseInputFunctionToolCallOutput
|
|
204
|
-
| Data.OpenAIResponseMessage
|
|
205
|
-
>;
|
|
206
|
-
|
|
207
|
-
model: string;
|
|
208
|
-
|
|
209
|
-
object: 'response';
|
|
210
|
-
|
|
211
|
-
output: Array<
|
|
212
|
-
| Data.OpenAIResponseMessage
|
|
213
|
-
| Data.OpenAIResponseOutputMessageWebSearchToolCall
|
|
214
|
-
| Data.OpenAIResponseOutputMessageFunctionToolCall
|
|
215
|
-
>;
|
|
216
|
-
|
|
217
|
-
parallel_tool_calls: boolean;
|
|
218
|
-
|
|
219
|
-
status: string;
|
|
220
|
-
|
|
221
|
-
error?: Data.Error;
|
|
222
|
-
|
|
223
|
-
previous_response_id?: string;
|
|
224
|
-
|
|
225
|
-
temperature?: number;
|
|
226
|
-
|
|
227
|
-
top_p?: number;
|
|
228
|
-
|
|
229
|
-
truncation?: string;
|
|
230
|
-
|
|
231
|
-
user?: string;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
export namespace Data {
|
|
235
|
-
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
236
|
-
id: string;
|
|
237
|
-
|
|
238
|
-
status: string;
|
|
239
|
-
|
|
240
|
-
type: 'web_search_call';
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
244
|
-
id: string;
|
|
245
|
-
|
|
246
|
-
arguments: string;
|
|
247
|
-
|
|
248
|
-
call_id: string;
|
|
249
|
-
|
|
250
|
-
name: string;
|
|
251
|
-
|
|
252
|
-
status: string;
|
|
253
|
-
|
|
254
|
-
type: 'function_call';
|
|
255
|
-
}
|
|
256
|
-
|
|
257
|
-
/**
|
|
258
|
-
* This represents the output of a function call that gets passed back to the
|
|
259
|
-
* model.
|
|
260
|
-
*/
|
|
261
|
-
export interface OpenAIResponseInputFunctionToolCallOutput {
|
|
262
|
-
call_id: string;
|
|
263
|
-
|
|
264
|
-
output: string;
|
|
265
|
-
|
|
266
|
-
type: 'function_call_output';
|
|
267
|
-
|
|
268
|
-
id?: string;
|
|
269
|
-
|
|
270
|
-
status?: string;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
/**
|
|
274
|
-
* Corresponds to the various Message types in the Responses API. They are all
|
|
275
|
-
* under one type because the Responses API gives them all the same "type" value,
|
|
276
|
-
* and there is no way to tell them apart in certain scenarios.
|
|
277
|
-
*/
|
|
278
|
-
export interface OpenAIResponseMessage {
|
|
279
|
-
content:
|
|
280
|
-
| string
|
|
281
|
-
| Array<
|
|
282
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
|
|
283
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
|
|
284
|
-
>
|
|
285
|
-
| Array<OpenAIResponseMessage.UnionMember2>;
|
|
286
|
-
|
|
287
|
-
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
288
|
-
|
|
289
|
-
type: 'message';
|
|
290
|
-
|
|
291
|
-
id?: string;
|
|
292
|
-
|
|
293
|
-
status?: string;
|
|
294
|
-
}
|
|
295
|
-
|
|
296
|
-
export namespace OpenAIResponseMessage {
|
|
297
|
-
export interface OpenAIResponseInputMessageContentText {
|
|
298
|
-
text: string;
|
|
299
|
-
|
|
300
|
-
type: 'input_text';
|
|
301
|
-
}
|
|
302
|
-
|
|
303
|
-
export interface OpenAIResponseInputMessageContentImage {
|
|
304
|
-
detail: 'low' | 'high' | 'auto';
|
|
305
|
-
|
|
306
|
-
type: 'input_image';
|
|
307
|
-
|
|
308
|
-
image_url?: string;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
export interface UnionMember2 {
|
|
312
|
-
text: string;
|
|
313
|
-
|
|
314
|
-
type: 'output_text';
|
|
315
|
-
}
|
|
316
|
-
}
|
|
317
|
-
|
|
318
|
-
/**
|
|
319
|
-
* Corresponds to the various Message types in the Responses API. They are all
|
|
320
|
-
* under one type because the Responses API gives them all the same "type" value,
|
|
321
|
-
* and there is no way to tell them apart in certain scenarios.
|
|
322
|
-
*/
|
|
323
|
-
export interface OpenAIResponseMessage {
|
|
324
|
-
content:
|
|
325
|
-
| string
|
|
326
|
-
| Array<
|
|
327
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
|
|
328
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
|
|
329
|
-
>
|
|
330
|
-
| Array<OpenAIResponseMessage.UnionMember2>;
|
|
331
|
-
|
|
332
|
-
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
333
|
-
|
|
334
|
-
type: 'message';
|
|
335
|
-
|
|
336
|
-
id?: string;
|
|
337
|
-
|
|
338
|
-
status?: string;
|
|
339
|
-
}
|
|
340
|
-
|
|
341
|
-
export namespace OpenAIResponseMessage {
|
|
342
|
-
export interface OpenAIResponseInputMessageContentText {
|
|
343
|
-
text: string;
|
|
344
|
-
|
|
345
|
-
type: 'input_text';
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
export interface OpenAIResponseInputMessageContentImage {
|
|
349
|
-
detail: 'low' | 'high' | 'auto';
|
|
350
|
-
|
|
351
|
-
type: 'input_image';
|
|
352
|
-
|
|
353
|
-
image_url?: string;
|
|
354
|
-
}
|
|
355
|
-
|
|
356
|
-
export interface UnionMember2 {
|
|
357
|
-
text: string;
|
|
358
|
-
|
|
359
|
-
type: 'output_text';
|
|
360
|
-
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
364
|
-
id: string;
|
|
365
|
-
|
|
366
|
-
status: string;
|
|
367
|
-
|
|
368
|
-
type: 'web_search_call';
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
372
|
-
id: string;
|
|
373
|
-
|
|
374
|
-
arguments: string;
|
|
375
|
-
|
|
376
|
-
call_id: string;
|
|
377
|
-
|
|
378
|
-
name: string;
|
|
379
|
-
|
|
380
|
-
status: string;
|
|
381
|
-
|
|
382
|
-
type: 'function_call';
|
|
383
|
-
}
|
|
384
|
-
|
|
385
|
-
export interface Error {
|
|
386
|
-
code: string;
|
|
387
|
-
|
|
388
|
-
message: string;
|
|
389
|
-
}
|
|
390
|
-
}
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
export type ResponseCreateParams = ResponseCreateParamsNonStreaming | ResponseCreateParamsStreaming;
|
|
394
|
-
|
|
395
|
-
export interface ResponseCreateParamsBase {
|
|
396
|
-
/**
|
|
397
|
-
* Input message(s) to create the response.
|
|
398
|
-
*/
|
|
399
|
-
input:
|
|
400
|
-
| string
|
|
401
|
-
| Array<
|
|
402
|
-
| ResponseCreateParams.OpenAIResponseOutputMessageWebSearchToolCall
|
|
403
|
-
| ResponseCreateParams.OpenAIResponseOutputMessageFunctionToolCall
|
|
404
|
-
| ResponseCreateParams.OpenAIResponseInputFunctionToolCallOutput
|
|
405
|
-
| ResponseCreateParams.OpenAIResponseMessage
|
|
406
|
-
>;
|
|
407
|
-
|
|
408
|
-
/**
|
|
409
|
-
* The underlying LLM used for completions.
|
|
410
|
-
*/
|
|
411
|
-
model: string;
|
|
412
|
-
|
|
413
|
-
instructions?: string;
|
|
414
|
-
|
|
415
|
-
/**
|
|
416
|
-
* (Optional) if specified, the new response will be a continuation of the previous
|
|
417
|
-
* response. This can be used to easily fork-off new responses from existing
|
|
418
|
-
* responses.
|
|
419
|
-
*/
|
|
420
|
-
previous_response_id?: string;
|
|
421
|
-
|
|
422
|
-
store?: boolean;
|
|
423
|
-
|
|
424
|
-
stream?: boolean;
|
|
425
|
-
|
|
426
|
-
temperature?: number;
|
|
427
|
-
|
|
428
|
-
tools?: Array<
|
|
429
|
-
| ResponseCreateParams.OpenAIResponseInputToolWebSearch
|
|
430
|
-
| ResponseCreateParams.OpenAIResponseInputToolFileSearch
|
|
431
|
-
| ResponseCreateParams.OpenAIResponseInputToolFunction
|
|
432
|
-
| ResponseCreateParams.OpenAIResponseInputToolMcp
|
|
433
|
-
>;
|
|
434
|
-
}
|
|
435
|
-
|
|
436
|
-
export namespace ResponseCreateParams {
|
|
437
|
-
export interface OpenAIResponseOutputMessageWebSearchToolCall {
|
|
438
|
-
id: string;
|
|
439
|
-
|
|
440
|
-
status: string;
|
|
441
|
-
|
|
442
|
-
type: 'web_search_call';
|
|
443
|
-
}
|
|
444
|
-
|
|
445
|
-
export interface OpenAIResponseOutputMessageFunctionToolCall {
|
|
446
|
-
id: string;
|
|
447
|
-
|
|
448
|
-
arguments: string;
|
|
449
|
-
|
|
450
|
-
call_id: string;
|
|
451
|
-
|
|
452
|
-
name: string;
|
|
453
|
-
|
|
454
|
-
status: string;
|
|
455
|
-
|
|
456
|
-
type: 'function_call';
|
|
457
|
-
}
|
|
458
|
-
|
|
459
|
-
/**
|
|
460
|
-
* This represents the output of a function call that gets passed back to the
|
|
461
|
-
* model.
|
|
462
|
-
*/
|
|
463
|
-
export interface OpenAIResponseInputFunctionToolCallOutput {
|
|
464
|
-
call_id: string;
|
|
465
|
-
|
|
466
|
-
output: string;
|
|
467
|
-
|
|
468
|
-
type: 'function_call_output';
|
|
469
|
-
|
|
470
|
-
id?: string;
|
|
471
|
-
|
|
472
|
-
status?: string;
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
/**
|
|
476
|
-
* Corresponds to the various Message types in the Responses API. They are all
|
|
477
|
-
* under one type because the Responses API gives them all the same "type" value,
|
|
478
|
-
* and there is no way to tell them apart in certain scenarios.
|
|
479
|
-
*/
|
|
480
|
-
export interface OpenAIResponseMessage {
|
|
481
|
-
content:
|
|
482
|
-
| string
|
|
483
|
-
| Array<
|
|
484
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentText
|
|
485
|
-
| OpenAIResponseMessage.OpenAIResponseInputMessageContentImage
|
|
486
|
-
>
|
|
487
|
-
| Array<OpenAIResponseMessage.UnionMember2>;
|
|
488
|
-
|
|
489
|
-
role: 'system' | 'developer' | 'user' | 'assistant';
|
|
490
|
-
|
|
491
|
-
type: 'message';
|
|
492
|
-
|
|
493
|
-
id?: string;
|
|
494
|
-
|
|
495
|
-
status?: string;
|
|
496
|
-
}
|
|
497
|
-
|
|
498
|
-
export namespace OpenAIResponseMessage {
|
|
499
|
-
export interface OpenAIResponseInputMessageContentText {
|
|
500
|
-
text: string;
|
|
501
|
-
|
|
502
|
-
type: 'input_text';
|
|
503
|
-
}
|
|
504
|
-
|
|
505
|
-
export interface OpenAIResponseInputMessageContentImage {
|
|
506
|
-
detail: 'low' | 'high' | 'auto';
|
|
507
|
-
|
|
508
|
-
type: 'input_image';
|
|
509
|
-
|
|
510
|
-
image_url?: string;
|
|
511
|
-
}
|
|
512
|
-
|
|
513
|
-
export interface UnionMember2 {
|
|
514
|
-
text: string;
|
|
515
|
-
|
|
516
|
-
type: 'output_text';
|
|
517
|
-
}
|
|
518
|
-
}
|
|
519
|
-
|
|
520
|
-
export interface OpenAIResponseInputToolWebSearch {
|
|
521
|
-
type: 'web_search' | 'web_search_preview_2025_03_11';
|
|
522
|
-
|
|
523
|
-
search_context_size?: string;
|
|
524
|
-
}
|
|
525
|
-
|
|
526
|
-
export interface OpenAIResponseInputToolFileSearch {
|
|
527
|
-
type: 'file_search';
|
|
528
|
-
|
|
529
|
-
vector_store_id: Array<string>;
|
|
530
|
-
|
|
531
|
-
ranking_options?: OpenAIResponseInputToolFileSearch.RankingOptions;
|
|
532
|
-
}
|
|
533
|
-
|
|
534
|
-
export namespace OpenAIResponseInputToolFileSearch {
|
|
535
|
-
export interface RankingOptions {
|
|
536
|
-
ranker?: string;
|
|
537
|
-
|
|
538
|
-
score_threshold?: number;
|
|
539
|
-
}
|
|
540
|
-
}
|
|
541
|
-
|
|
542
|
-
export interface OpenAIResponseInputToolFunction {
|
|
543
|
-
name: string;
|
|
544
|
-
|
|
545
|
-
type: 'function';
|
|
546
|
-
|
|
547
|
-
description?: string;
|
|
548
|
-
|
|
549
|
-
parameters?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
550
|
-
|
|
551
|
-
strict?: boolean;
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
export interface OpenAIResponseInputToolMcp {
|
|
555
|
-
require_approval: 'always' | 'never' | OpenAIResponseInputToolMcp.ApprovalFilter;
|
|
556
|
-
|
|
557
|
-
server_label: string;
|
|
558
|
-
|
|
559
|
-
server_url: string;
|
|
560
|
-
|
|
561
|
-
type: 'mcp';
|
|
562
|
-
|
|
563
|
-
allowed_tools?: Array<string> | OpenAIResponseInputToolMcp.AllowedToolsFilter;
|
|
564
|
-
|
|
565
|
-
headers?: Record<string, boolean | number | string | Array<unknown> | unknown | null>;
|
|
566
|
-
}
|
|
567
|
-
|
|
568
|
-
export namespace OpenAIResponseInputToolMcp {
|
|
569
|
-
export interface ApprovalFilter {
|
|
570
|
-
always?: Array<string>;
|
|
571
|
-
|
|
572
|
-
never?: Array<string>;
|
|
573
|
-
}
|
|
574
|
-
|
|
575
|
-
export interface AllowedToolsFilter {
|
|
576
|
-
tool_names?: Array<string>;
|
|
577
|
-
}
|
|
578
|
-
}
|
|
579
|
-
|
|
580
|
-
export type ResponseCreateParamsNonStreaming = ResponsesAPI.ResponseCreateParamsNonStreaming;
|
|
581
|
-
export type ResponseCreateParamsStreaming = ResponsesAPI.ResponseCreateParamsStreaming;
|
|
582
|
-
}
|
|
583
|
-
|
|
584
|
-
export interface ResponseCreateParamsNonStreaming extends ResponseCreateParamsBase {
|
|
585
|
-
stream?: false;
|
|
586
|
-
}
|
|
587
|
-
|
|
588
|
-
export interface ResponseCreateParamsStreaming extends ResponseCreateParamsBase {
|
|
589
|
-
stream: true;
|
|
590
|
-
}
|
|
591
|
-
|
|
592
|
-
export interface ResponseListParams {
|
|
593
|
-
/**
|
|
594
|
-
* The ID of the last response to return.
|
|
595
|
-
*/
|
|
596
|
-
after?: string;
|
|
597
|
-
|
|
598
|
-
/**
|
|
599
|
-
* The number of responses to return.
|
|
600
|
-
*/
|
|
601
|
-
limit?: number;
|
|
602
|
-
|
|
603
|
-
/**
|
|
604
|
-
* The model to filter responses by.
|
|
605
|
-
*/
|
|
606
|
-
model?: string;
|
|
607
|
-
|
|
608
|
-
/**
|
|
609
|
-
* The order to sort responses by when sorted by created_at ('asc' or 'desc').
|
|
610
|
-
*/
|
|
611
|
-
order?: 'asc' | 'desc';
|
|
612
|
-
}
|
|
613
|
-
|
|
614
|
-
export declare namespace Responses {
|
|
615
|
-
export {
|
|
616
|
-
type ResponseObject as ResponseObject,
|
|
617
|
-
type ResponseObjectStream as ResponseObjectStream,
|
|
618
|
-
type ResponseListResponse as ResponseListResponse,
|
|
619
|
-
type ResponseCreateParams as ResponseCreateParams,
|
|
620
|
-
type ResponseCreateParamsNonStreaming as ResponseCreateParamsNonStreaming,
|
|
621
|
-
type ResponseCreateParamsStreaming as ResponseCreateParamsStreaming,
|
|
622
|
-
type ResponseListParams as ResponseListParams,
|
|
623
|
-
};
|
|
624
|
-
}
|
|
3
|
+
export * from './responses/index';
|
package/src/resources/tools.ts
CHANGED
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.10rc2';
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.2.
|
|
1
|
+
export declare const VERSION = "0.2.10rc2";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,
|
|
1
|
+
{"version":3,"file":"version.d.ts","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,OAAO,cAAc,CAAC"}
|
package/version.js
CHANGED
package/version.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.js","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":";;;AAAa,QAAA,OAAO,GAAG,WAAW,CAAC"}
|
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.2.
|
|
1
|
+
export const VERSION = '0.2.10rc2';
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|
package/version.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,
|
|
1
|
+
{"version":3,"file":"version.mjs","sourceRoot":"","sources":["src/version.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,OAAO,GAAG,WAAW,CAAC"}
|