@effect/ai-openai 0.37.2 → 4.0.0-beta.0
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/dist/Generated.d.ts +70887 -0
- package/dist/Generated.d.ts.map +1 -0
- package/dist/Generated.js +4 -0
- package/dist/Generated.js.map +1 -0
- package/dist/OpenAiClient.d.ts +124 -0
- package/dist/OpenAiClient.d.ts.map +1 -0
- package/dist/OpenAiClient.js +128 -0
- package/dist/OpenAiClient.js.map +1 -0
- package/dist/{dts/OpenAiConfig.d.ts → OpenAiConfig.d.ts} +9 -9
- package/dist/OpenAiConfig.d.ts.map +1 -0
- package/dist/{esm/OpenAiConfig.js → OpenAiConfig.js} +8 -5
- package/dist/OpenAiConfig.js.map +1 -0
- package/dist/OpenAiError.d.ts +98 -0
- package/dist/OpenAiError.d.ts.map +1 -0
- package/dist/OpenAiError.js +10 -0
- package/dist/OpenAiError.js.map +1 -0
- package/dist/OpenAiLanguageModel.d.ts +318 -0
- package/dist/OpenAiLanguageModel.d.ts.map +1 -0
- package/dist/OpenAiLanguageModel.js +2207 -0
- package/dist/OpenAiLanguageModel.js.map +1 -0
- package/dist/{dts/OpenAiTelemetry.d.ts → OpenAiTelemetry.d.ts} +31 -13
- package/dist/OpenAiTelemetry.d.ts.map +1 -0
- package/dist/{esm/OpenAiTelemetry.js → OpenAiTelemetry.js} +11 -6
- package/dist/OpenAiTelemetry.js.map +1 -0
- package/dist/OpenAiTool.d.ts +479 -0
- package/dist/OpenAiTool.d.ts.map +1 -0
- package/dist/OpenAiTool.js +231 -0
- package/dist/OpenAiTool.js.map +1 -0
- package/dist/index.d.ts +58 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +59 -0
- package/dist/index.js.map +1 -0
- package/dist/internal/errors.d.ts +2 -0
- package/dist/internal/errors.d.ts.map +1 -0
- package/dist/internal/errors.js +316 -0
- package/dist/internal/errors.js.map +1 -0
- package/dist/{dts/internal → internal}/utilities.d.ts.map +1 -1
- package/dist/{esm/internal → internal}/utilities.js +4 -3
- package/dist/internal/utilities.js.map +1 -0
- package/package.json +45 -97
- package/src/Generated.ts +28521 -20036
- package/src/OpenAiClient.ts +220 -1816
- package/src/OpenAiConfig.ts +20 -34
- package/src/OpenAiError.ts +107 -0
- package/src/OpenAiLanguageModel.ts +1807 -638
- package/src/OpenAiTelemetry.ts +24 -19
- package/src/OpenAiTool.ts +216 -70
- package/src/index.ts +35 -8
- package/src/internal/errors.ts +347 -0
- package/src/internal/utilities.ts +7 -5
- package/Generated/package.json +0 -6
- package/OpenAiClient/package.json +0 -6
- package/OpenAiConfig/package.json +0 -6
- package/OpenAiEmbeddingModel/package.json +0 -6
- package/OpenAiLanguageModel/package.json +0 -6
- package/OpenAiTelemetry/package.json +0 -6
- package/OpenAiTokenizer/package.json +0 -6
- package/OpenAiTool/package.json +0 -6
- package/README.md +0 -5
- package/dist/cjs/Generated.js +0 -7150
- package/dist/cjs/Generated.js.map +0 -1
- package/dist/cjs/OpenAiClient.js +0 -1567
- package/dist/cjs/OpenAiClient.js.map +0 -1
- package/dist/cjs/OpenAiConfig.js +0 -30
- package/dist/cjs/OpenAiConfig.js.map +0 -1
- package/dist/cjs/OpenAiEmbeddingModel.js +0 -155
- package/dist/cjs/OpenAiEmbeddingModel.js.map +0 -1
- package/dist/cjs/OpenAiLanguageModel.js +0 -1147
- package/dist/cjs/OpenAiLanguageModel.js.map +0 -1
- package/dist/cjs/OpenAiTelemetry.js +0 -38
- package/dist/cjs/OpenAiTelemetry.js.map +0 -1
- package/dist/cjs/OpenAiTokenizer.js +0 -83
- package/dist/cjs/OpenAiTokenizer.js.map +0 -1
- package/dist/cjs/OpenAiTool.js +0 -93
- package/dist/cjs/OpenAiTool.js.map +0 -1
- package/dist/cjs/index.js +0 -24
- package/dist/cjs/index.js.map +0 -1
- package/dist/cjs/internal/utilities.js +0 -32
- package/dist/cjs/internal/utilities.js.map +0 -1
- package/dist/dts/Generated.d.ts +0 -40661
- package/dist/dts/Generated.d.ts.map +0 -1
- package/dist/dts/OpenAiClient.d.ts +0 -3120
- package/dist/dts/OpenAiClient.d.ts.map +0 -1
- package/dist/dts/OpenAiConfig.d.ts.map +0 -1
- package/dist/dts/OpenAiEmbeddingModel.d.ts +0 -109
- package/dist/dts/OpenAiEmbeddingModel.d.ts.map +0 -1
- package/dist/dts/OpenAiLanguageModel.d.ts +0 -235
- package/dist/dts/OpenAiLanguageModel.d.ts.map +0 -1
- package/dist/dts/OpenAiTelemetry.d.ts.map +0 -1
- package/dist/dts/OpenAiTokenizer.d.ts +0 -17
- package/dist/dts/OpenAiTokenizer.d.ts.map +0 -1
- package/dist/dts/OpenAiTool.d.ts +0 -200
- package/dist/dts/OpenAiTool.d.ts.map +0 -1
- package/dist/dts/index.d.ts +0 -33
- package/dist/dts/index.d.ts.map +0 -1
- package/dist/esm/Generated.js +0 -7150
- package/dist/esm/Generated.js.map +0 -1
- package/dist/esm/OpenAiClient.js +0 -1504
- package/dist/esm/OpenAiClient.js.map +0 -1
- package/dist/esm/OpenAiConfig.js.map +0 -1
- package/dist/esm/OpenAiEmbeddingModel.js +0 -143
- package/dist/esm/OpenAiEmbeddingModel.js.map +0 -1
- package/dist/esm/OpenAiLanguageModel.js +0 -1134
- package/dist/esm/OpenAiLanguageModel.js.map +0 -1
- package/dist/esm/OpenAiTelemetry.js.map +0 -1
- package/dist/esm/OpenAiTokenizer.js +0 -73
- package/dist/esm/OpenAiTokenizer.js.map +0 -1
- package/dist/esm/OpenAiTool.js +0 -84
- package/dist/esm/OpenAiTool.js.map +0 -1
- package/dist/esm/index.js +0 -33
- package/dist/esm/index.js.map +0 -1
- package/dist/esm/internal/utilities.js.map +0 -1
- package/dist/esm/package.json +0 -4
- package/index/package.json +0 -6
- package/src/OpenAiEmbeddingModel.ts +0 -243
- package/src/OpenAiTokenizer.ts +0 -70
- /package/dist/{dts/internal → internal}/utilities.d.ts +0 -0
|
@@ -1,3120 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @since 1.0.0
|
|
3
|
-
*/
|
|
4
|
-
import * as AiError from "@effect/ai/AiError";
|
|
5
|
-
import * as HttpClient from "@effect/platform/HttpClient";
|
|
6
|
-
import * as HttpClientRequest from "@effect/platform/HttpClientRequest";
|
|
7
|
-
import * as Config from "effect/Config";
|
|
8
|
-
import type { ConfigError } from "effect/ConfigError";
|
|
9
|
-
import * as Context from "effect/Context";
|
|
10
|
-
import * as Effect from "effect/Effect";
|
|
11
|
-
import * as Layer from "effect/Layer";
|
|
12
|
-
import * as Redacted from "effect/Redacted";
|
|
13
|
-
import * as Schema from "effect/Schema";
|
|
14
|
-
import type * as Scope from "effect/Scope";
|
|
15
|
-
import * as Stream from "effect/Stream";
|
|
16
|
-
import * as Generated from "./Generated.js";
|
|
17
|
-
declare const OpenAiClient_base: Context.TagClass<OpenAiClient, "@effect/ai-openai/OpenAiClient", Service>;
|
|
18
|
-
/**
|
|
19
|
-
* @since 1.0.0
|
|
20
|
-
* @category Context
|
|
21
|
-
*/
|
|
22
|
-
export declare class OpenAiClient extends OpenAiClient_base {
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* @since 1.0.0
|
|
26
|
-
* @category Models
|
|
27
|
-
*/
|
|
28
|
-
export interface Service {
|
|
29
|
-
readonly client: Generated.Client;
|
|
30
|
-
readonly streamRequest: <A, I, R>(request: HttpClientRequest.HttpClientRequest, schema: Schema.Schema<A, I, R>) => Stream.Stream<A, AiError.AiError, R>;
|
|
31
|
-
readonly createResponse: (options: typeof Generated.CreateResponse.Encoded) => Effect.Effect<Generated.Response, AiError.AiError>;
|
|
32
|
-
readonly createResponseStream: (options: Omit<typeof Generated.CreateResponse.Encoded, "stream">) => Stream.Stream<ResponseStreamEvent, AiError.AiError>;
|
|
33
|
-
readonly createEmbedding: (options: typeof Generated.CreateEmbeddingRequest.Encoded) => Effect.Effect<Generated.CreateEmbeddingResponse, AiError.AiError>;
|
|
34
|
-
}
|
|
35
|
-
/**
|
|
36
|
-
* @since 1.0.0
|
|
37
|
-
* @category Models
|
|
38
|
-
*/
|
|
39
|
-
export type StreamCompletionRequest = Omit<typeof Generated.CreateChatCompletionRequest.Encoded, "stream">;
|
|
40
|
-
/**
|
|
41
|
-
* @since 1.0.0
|
|
42
|
-
* @category Constructors
|
|
43
|
-
*/
|
|
44
|
-
export declare const make: (options: {
|
|
45
|
-
/**
|
|
46
|
-
* The API key to use to communicate with the OpenAi API.
|
|
47
|
-
*/
|
|
48
|
-
readonly apiKey?: Redacted.Redacted | undefined;
|
|
49
|
-
/**
|
|
50
|
-
* The URL to use to communicate with the OpenAi API.
|
|
51
|
-
*/
|
|
52
|
-
readonly apiUrl?: string | undefined;
|
|
53
|
-
/**
|
|
54
|
-
* The OpenAi organization identifier to use when communicating with the
|
|
55
|
-
* OpenAi API.
|
|
56
|
-
*/
|
|
57
|
-
readonly organizationId?: Redacted.Redacted | undefined;
|
|
58
|
-
/**
|
|
59
|
-
* The OpenAi project identifier to use when communicating with the OpenAi
|
|
60
|
-
* API.
|
|
61
|
-
*/
|
|
62
|
-
readonly projectId?: Redacted.Redacted | undefined;
|
|
63
|
-
/**
|
|
64
|
-
* A method which can be used to transform the underlying `HttpClient` which
|
|
65
|
-
* will be used to communicate with the OpenAi API.
|
|
66
|
-
*/
|
|
67
|
-
readonly transformClient?: ((client: HttpClient.HttpClient) => HttpClient.HttpClient) | undefined;
|
|
68
|
-
}) => Effect.Effect<Service, never, HttpClient.HttpClient | Scope.Scope>;
|
|
69
|
-
/**
|
|
70
|
-
* @since 1.0.0
|
|
71
|
-
* @category Layers
|
|
72
|
-
*/
|
|
73
|
-
export declare const layer: (options: {
|
|
74
|
-
readonly apiKey?: Redacted.Redacted | undefined;
|
|
75
|
-
readonly apiUrl?: string | undefined;
|
|
76
|
-
readonly organizationId?: Redacted.Redacted | undefined;
|
|
77
|
-
readonly projectId?: Redacted.Redacted | undefined;
|
|
78
|
-
readonly transformClient?: (client: HttpClient.HttpClient) => HttpClient.HttpClient;
|
|
79
|
-
}) => Layer.Layer<OpenAiClient, never, HttpClient.HttpClient>;
|
|
80
|
-
/**
|
|
81
|
-
* @since 1.0.0
|
|
82
|
-
* @category Layers
|
|
83
|
-
*/
|
|
84
|
-
export declare const layerConfig: (options: {
|
|
85
|
-
readonly apiKey?: Config.Config<Redacted.Redacted | undefined> | undefined;
|
|
86
|
-
readonly apiUrl?: Config.Config<string | undefined> | undefined;
|
|
87
|
-
readonly organizationId?: Config.Config<Redacted.Redacted | undefined> | undefined;
|
|
88
|
-
readonly projectId?: Config.Config<Redacted.Redacted | undefined> | undefined;
|
|
89
|
-
readonly transformClient?: (client: HttpClient.HttpClient) => HttpClient.HttpClient;
|
|
90
|
-
}) => Layer.Layer<OpenAiClient, ConfigError, HttpClient.HttpClient>;
|
|
91
|
-
declare const ResponseCreatedEvent_base: Schema.Class<ResponseCreatedEvent, {
|
|
92
|
-
/**
|
|
93
|
-
* The type of the event. Always `"response.created"`.
|
|
94
|
-
*/
|
|
95
|
-
type: Schema.Literal<["response.created"]>;
|
|
96
|
-
/**
|
|
97
|
-
* The sequence number for this event.
|
|
98
|
-
*/
|
|
99
|
-
sequence_number: typeof Schema.Int;
|
|
100
|
-
/**
|
|
101
|
-
* The response that was created.
|
|
102
|
-
*/
|
|
103
|
-
response: typeof Generated.Response;
|
|
104
|
-
}, Schema.Struct.Encoded<{
|
|
105
|
-
/**
|
|
106
|
-
* The type of the event. Always `"response.created"`.
|
|
107
|
-
*/
|
|
108
|
-
type: Schema.Literal<["response.created"]>;
|
|
109
|
-
/**
|
|
110
|
-
* The sequence number for this event.
|
|
111
|
-
*/
|
|
112
|
-
sequence_number: typeof Schema.Int;
|
|
113
|
-
/**
|
|
114
|
-
* The response that was created.
|
|
115
|
-
*/
|
|
116
|
-
response: typeof Generated.Response;
|
|
117
|
-
}>, never, {
|
|
118
|
-
readonly type: "response.created";
|
|
119
|
-
} & {
|
|
120
|
-
readonly response: Generated.Response;
|
|
121
|
-
} & {
|
|
122
|
-
readonly sequence_number: number;
|
|
123
|
-
}, {}, {}>;
|
|
124
|
-
/**
|
|
125
|
-
* An event that is emitted when a response is created.
|
|
126
|
-
*
|
|
127
|
-
* @since 1.0.0
|
|
128
|
-
* @category Schemas
|
|
129
|
-
*/
|
|
130
|
-
export declare class ResponseCreatedEvent extends ResponseCreatedEvent_base {
|
|
131
|
-
}
|
|
132
|
-
declare const ResponseQueuedEvent_base: Schema.Class<ResponseQueuedEvent, {
|
|
133
|
-
/**
|
|
134
|
-
* The type of the event. Always `"response.queued"`.
|
|
135
|
-
*/
|
|
136
|
-
type: Schema.Literal<["response.queued"]>;
|
|
137
|
-
/**
|
|
138
|
-
* The sequence number for this event.
|
|
139
|
-
*/
|
|
140
|
-
sequence_number: typeof Schema.Int;
|
|
141
|
-
/**
|
|
142
|
-
* The full response object that is queued.
|
|
143
|
-
*/
|
|
144
|
-
response: typeof Generated.Response;
|
|
145
|
-
}, Schema.Struct.Encoded<{
|
|
146
|
-
/**
|
|
147
|
-
* The type of the event. Always `"response.queued"`.
|
|
148
|
-
*/
|
|
149
|
-
type: Schema.Literal<["response.queued"]>;
|
|
150
|
-
/**
|
|
151
|
-
* The sequence number for this event.
|
|
152
|
-
*/
|
|
153
|
-
sequence_number: typeof Schema.Int;
|
|
154
|
-
/**
|
|
155
|
-
* The full response object that is queued.
|
|
156
|
-
*/
|
|
157
|
-
response: typeof Generated.Response;
|
|
158
|
-
}>, never, {
|
|
159
|
-
readonly type: "response.queued";
|
|
160
|
-
} & {
|
|
161
|
-
readonly response: Generated.Response;
|
|
162
|
-
} & {
|
|
163
|
-
readonly sequence_number: number;
|
|
164
|
-
}, {}, {}>;
|
|
165
|
-
/**
|
|
166
|
-
* Emitted when a response is queued and waiting to be processed.
|
|
167
|
-
*
|
|
168
|
-
* @since 1.0.0
|
|
169
|
-
* @category Schemas
|
|
170
|
-
*/
|
|
171
|
-
export declare class ResponseQueuedEvent extends ResponseQueuedEvent_base {
|
|
172
|
-
}
|
|
173
|
-
declare const ResponseInProgressEvent_base: Schema.Class<ResponseInProgressEvent, {
|
|
174
|
-
/**
|
|
175
|
-
* The type of the event. Always `"response.in_progress"`.
|
|
176
|
-
*/
|
|
177
|
-
type: Schema.Literal<["response.in_progress"]>;
|
|
178
|
-
/**
|
|
179
|
-
* The sequence number for this event.
|
|
180
|
-
*/
|
|
181
|
-
sequence_number: typeof Schema.Int;
|
|
182
|
-
/**
|
|
183
|
-
* The response that is in progress.
|
|
184
|
-
*/
|
|
185
|
-
response: typeof Generated.Response;
|
|
186
|
-
}, Schema.Struct.Encoded<{
|
|
187
|
-
/**
|
|
188
|
-
* The type of the event. Always `"response.in_progress"`.
|
|
189
|
-
*/
|
|
190
|
-
type: Schema.Literal<["response.in_progress"]>;
|
|
191
|
-
/**
|
|
192
|
-
* The sequence number for this event.
|
|
193
|
-
*/
|
|
194
|
-
sequence_number: typeof Schema.Int;
|
|
195
|
-
/**
|
|
196
|
-
* The response that is in progress.
|
|
197
|
-
*/
|
|
198
|
-
response: typeof Generated.Response;
|
|
199
|
-
}>, never, {
|
|
200
|
-
readonly type: "response.in_progress";
|
|
201
|
-
} & {
|
|
202
|
-
readonly response: Generated.Response;
|
|
203
|
-
} & {
|
|
204
|
-
readonly sequence_number: number;
|
|
205
|
-
}, {}, {}>;
|
|
206
|
-
/**
|
|
207
|
-
* Emitted when the response is in progress.
|
|
208
|
-
*
|
|
209
|
-
* @since 1.0.0
|
|
210
|
-
* @category Schemas
|
|
211
|
-
*/
|
|
212
|
-
export declare class ResponseInProgressEvent extends ResponseInProgressEvent_base {
|
|
213
|
-
}
|
|
214
|
-
declare const ResponseCompletedEvent_base: Schema.Class<ResponseCompletedEvent, {
|
|
215
|
-
/**
|
|
216
|
-
* The type of the event. Always `"response.completed"`.
|
|
217
|
-
*/
|
|
218
|
-
type: Schema.Literal<["response.completed"]>;
|
|
219
|
-
/**
|
|
220
|
-
* The sequence number for this event.
|
|
221
|
-
*/
|
|
222
|
-
sequence_number: typeof Schema.Int;
|
|
223
|
-
/**
|
|
224
|
-
* Properties of the completed response.
|
|
225
|
-
*/
|
|
226
|
-
response: typeof Generated.Response;
|
|
227
|
-
}, Schema.Struct.Encoded<{
|
|
228
|
-
/**
|
|
229
|
-
* The type of the event. Always `"response.completed"`.
|
|
230
|
-
*/
|
|
231
|
-
type: Schema.Literal<["response.completed"]>;
|
|
232
|
-
/**
|
|
233
|
-
* The sequence number for this event.
|
|
234
|
-
*/
|
|
235
|
-
sequence_number: typeof Schema.Int;
|
|
236
|
-
/**
|
|
237
|
-
* Properties of the completed response.
|
|
238
|
-
*/
|
|
239
|
-
response: typeof Generated.Response;
|
|
240
|
-
}>, never, {
|
|
241
|
-
readonly type: "response.completed";
|
|
242
|
-
} & {
|
|
243
|
-
readonly response: Generated.Response;
|
|
244
|
-
} & {
|
|
245
|
-
readonly sequence_number: number;
|
|
246
|
-
}, {}, {}>;
|
|
247
|
-
/**
|
|
248
|
-
* Emitted when the model response is complete.
|
|
249
|
-
*
|
|
250
|
-
* @since 1.0.0
|
|
251
|
-
* @category Schemas
|
|
252
|
-
*/
|
|
253
|
-
export declare class ResponseCompletedEvent extends ResponseCompletedEvent_base {
|
|
254
|
-
}
|
|
255
|
-
declare const ResponseIncompleteEvent_base: Schema.Class<ResponseIncompleteEvent, {
|
|
256
|
-
/**
|
|
257
|
-
* The type of the event. Always `"response.incomplete"`.
|
|
258
|
-
*/
|
|
259
|
-
type: Schema.Literal<["response.incomplete"]>;
|
|
260
|
-
/**
|
|
261
|
-
* The sequence number for this event.
|
|
262
|
-
*/
|
|
263
|
-
sequence_number: typeof Schema.Int;
|
|
264
|
-
/**
|
|
265
|
-
* The response that was incomplete.
|
|
266
|
-
*/
|
|
267
|
-
response: typeof Generated.Response;
|
|
268
|
-
}, Schema.Struct.Encoded<{
|
|
269
|
-
/**
|
|
270
|
-
* The type of the event. Always `"response.incomplete"`.
|
|
271
|
-
*/
|
|
272
|
-
type: Schema.Literal<["response.incomplete"]>;
|
|
273
|
-
/**
|
|
274
|
-
* The sequence number for this event.
|
|
275
|
-
*/
|
|
276
|
-
sequence_number: typeof Schema.Int;
|
|
277
|
-
/**
|
|
278
|
-
* The response that was incomplete.
|
|
279
|
-
*/
|
|
280
|
-
response: typeof Generated.Response;
|
|
281
|
-
}>, never, {
|
|
282
|
-
readonly type: "response.incomplete";
|
|
283
|
-
} & {
|
|
284
|
-
readonly response: Generated.Response;
|
|
285
|
-
} & {
|
|
286
|
-
readonly sequence_number: number;
|
|
287
|
-
}, {}, {}>;
|
|
288
|
-
/**
|
|
289
|
-
* An event that is emitted when a response finishes as incomplete.
|
|
290
|
-
*
|
|
291
|
-
* @since 1.0.0
|
|
292
|
-
* @category Schemas
|
|
293
|
-
*/
|
|
294
|
-
export declare class ResponseIncompleteEvent extends ResponseIncompleteEvent_base {
|
|
295
|
-
}
|
|
296
|
-
declare const ResponseFailedEvent_base: Schema.Class<ResponseFailedEvent, {
|
|
297
|
-
/**
|
|
298
|
-
* The type of the event. Always `"response.failed"`.
|
|
299
|
-
*/
|
|
300
|
-
type: Schema.Literal<["response.failed"]>;
|
|
301
|
-
/**
|
|
302
|
-
* The sequence number for this event.
|
|
303
|
-
*/
|
|
304
|
-
sequence_number: typeof Schema.Int;
|
|
305
|
-
/**
|
|
306
|
-
* The response that failed.
|
|
307
|
-
*/
|
|
308
|
-
response: typeof Generated.Response;
|
|
309
|
-
}, Schema.Struct.Encoded<{
|
|
310
|
-
/**
|
|
311
|
-
* The type of the event. Always `"response.failed"`.
|
|
312
|
-
*/
|
|
313
|
-
type: Schema.Literal<["response.failed"]>;
|
|
314
|
-
/**
|
|
315
|
-
* The sequence number for this event.
|
|
316
|
-
*/
|
|
317
|
-
sequence_number: typeof Schema.Int;
|
|
318
|
-
/**
|
|
319
|
-
* The response that failed.
|
|
320
|
-
*/
|
|
321
|
-
response: typeof Generated.Response;
|
|
322
|
-
}>, never, {
|
|
323
|
-
readonly type: "response.failed";
|
|
324
|
-
} & {
|
|
325
|
-
readonly response: Generated.Response;
|
|
326
|
-
} & {
|
|
327
|
-
readonly sequence_number: number;
|
|
328
|
-
}, {}, {}>;
|
|
329
|
-
/**
|
|
330
|
-
* An event that is emitted when a response fails.
|
|
331
|
-
*
|
|
332
|
-
* @since 1.0.0
|
|
333
|
-
* @category Schemas
|
|
334
|
-
*/
|
|
335
|
-
export declare class ResponseFailedEvent extends ResponseFailedEvent_base {
|
|
336
|
-
}
|
|
337
|
-
declare const ResponseOutputItemAddedEvent_base: Schema.Class<ResponseOutputItemAddedEvent, {
|
|
338
|
-
/**
|
|
339
|
-
* The type of the event. Always `"response.output_item.added"`.
|
|
340
|
-
*/
|
|
341
|
-
type: Schema.Literal<["response.output_item.added"]>;
|
|
342
|
-
/**
|
|
343
|
-
* The sequence number for this event.
|
|
344
|
-
*/
|
|
345
|
-
sequence_number: typeof Schema.Int;
|
|
346
|
-
/**
|
|
347
|
-
* The index of the output item that was added.
|
|
348
|
-
*/
|
|
349
|
-
output_index: typeof Schema.Int;
|
|
350
|
-
/**
|
|
351
|
-
* The output item that was added.
|
|
352
|
-
*/
|
|
353
|
-
item: Schema.Union<[typeof Generated.OutputItem, Schema.Schema<{
|
|
354
|
-
readonly type: "web_search_call";
|
|
355
|
-
readonly id: string;
|
|
356
|
-
readonly status: "failed" | "in_progress" | "completed" | "searching";
|
|
357
|
-
}, {
|
|
358
|
-
readonly type: "web_search_call";
|
|
359
|
-
readonly id: string;
|
|
360
|
-
readonly status: "failed" | "in_progress" | "completed" | "searching";
|
|
361
|
-
}, never>]>;
|
|
362
|
-
}, Schema.Struct.Encoded<{
|
|
363
|
-
/**
|
|
364
|
-
* The type of the event. Always `"response.output_item.added"`.
|
|
365
|
-
*/
|
|
366
|
-
type: Schema.Literal<["response.output_item.added"]>;
|
|
367
|
-
/**
|
|
368
|
-
* The sequence number for this event.
|
|
369
|
-
*/
|
|
370
|
-
sequence_number: typeof Schema.Int;
|
|
371
|
-
/**
|
|
372
|
-
* The index of the output item that was added.
|
|
373
|
-
*/
|
|
374
|
-
output_index: typeof Schema.Int;
|
|
375
|
-
/**
|
|
376
|
-
* The output item that was added.
|
|
377
|
-
*/
|
|
378
|
-
item: Schema.Union<[typeof Generated.OutputItem, Schema.Schema<{
|
|
379
|
-
readonly type: "web_search_call";
|
|
380
|
-
readonly id: string;
|
|
381
|
-
readonly status: "failed" | "in_progress" | "completed" | "searching";
|
|
382
|
-
}, {
|
|
383
|
-
readonly type: "web_search_call";
|
|
384
|
-
readonly id: string;
|
|
385
|
-
readonly status: "failed" | "in_progress" | "completed" | "searching";
|
|
386
|
-
}, never>]>;
|
|
387
|
-
}>, never, {
|
|
388
|
-
readonly type: "response.output_item.added";
|
|
389
|
-
} & {
|
|
390
|
-
readonly item: Generated.FileSearchToolCall | Generated.WebSearchToolCall | Generated.ImageGenToolCall | Generated.ComputerToolCall | Generated.ReasoningItem | Generated.CodeInterpreterToolCall | Generated.LocalShellToolCall | Generated.FunctionShellCall | Generated.FunctionShellCallOutput | Generated.ApplyPatchToolCall | Generated.ApplyPatchToolCallOutput | Generated.MCPListTools | Generated.MCPApprovalRequest | Generated.MCPToolCall | Generated.CustomToolCall | Generated.OutputMessage | Generated.FunctionToolCall | {
|
|
391
|
-
readonly type: "web_search_call";
|
|
392
|
-
readonly id: string;
|
|
393
|
-
readonly status: "failed" | "in_progress" | "completed" | "searching";
|
|
394
|
-
};
|
|
395
|
-
} & {
|
|
396
|
-
readonly sequence_number: number;
|
|
397
|
-
} & {
|
|
398
|
-
readonly output_index: number;
|
|
399
|
-
}, {}, {}>;
|
|
400
|
-
/**
|
|
401
|
-
* Emitted when a new output item is added.
|
|
402
|
-
*
|
|
403
|
-
* @since 1.0.0
|
|
404
|
-
* @category Schemas
|
|
405
|
-
*/
|
|
406
|
-
export declare class ResponseOutputItemAddedEvent extends ResponseOutputItemAddedEvent_base {
|
|
407
|
-
}
|
|
408
|
-
declare const ResponseOutputItemDoneEvent_base: Schema.Class<ResponseOutputItemDoneEvent, {
|
|
409
|
-
/**
|
|
410
|
-
* The type of the event. Always `"response.output_item.done"`.
|
|
411
|
-
*/
|
|
412
|
-
type: Schema.Literal<["response.output_item.done"]>;
|
|
413
|
-
/**
|
|
414
|
-
* The sequence number for this event.
|
|
415
|
-
*/
|
|
416
|
-
sequence_number: typeof Schema.Int;
|
|
417
|
-
/**
|
|
418
|
-
* The index of the output item that was marked done.
|
|
419
|
-
*/
|
|
420
|
-
output_index: typeof Schema.Int;
|
|
421
|
-
/**
|
|
422
|
-
* The output item that was marked done.
|
|
423
|
-
*/
|
|
424
|
-
item: typeof Generated.OutputItem;
|
|
425
|
-
}, Schema.Struct.Encoded<{
|
|
426
|
-
/**
|
|
427
|
-
* The type of the event. Always `"response.output_item.done"`.
|
|
428
|
-
*/
|
|
429
|
-
type: Schema.Literal<["response.output_item.done"]>;
|
|
430
|
-
/**
|
|
431
|
-
* The sequence number for this event.
|
|
432
|
-
*/
|
|
433
|
-
sequence_number: typeof Schema.Int;
|
|
434
|
-
/**
|
|
435
|
-
* The index of the output item that was marked done.
|
|
436
|
-
*/
|
|
437
|
-
output_index: typeof Schema.Int;
|
|
438
|
-
/**
|
|
439
|
-
* The output item that was marked done.
|
|
440
|
-
*/
|
|
441
|
-
item: typeof Generated.OutputItem;
|
|
442
|
-
}>, never, {
|
|
443
|
-
readonly type: "response.output_item.done";
|
|
444
|
-
} & {
|
|
445
|
-
readonly item: Generated.FileSearchToolCall | Generated.WebSearchToolCall | Generated.ImageGenToolCall | Generated.ComputerToolCall | Generated.ReasoningItem | Generated.CodeInterpreterToolCall | Generated.LocalShellToolCall | Generated.FunctionShellCall | Generated.FunctionShellCallOutput | Generated.ApplyPatchToolCall | Generated.ApplyPatchToolCallOutput | Generated.MCPListTools | Generated.MCPApprovalRequest | Generated.MCPToolCall | Generated.CustomToolCall | Generated.OutputMessage | Generated.FunctionToolCall;
|
|
446
|
-
} & {
|
|
447
|
-
readonly sequence_number: number;
|
|
448
|
-
} & {
|
|
449
|
-
readonly output_index: number;
|
|
450
|
-
}, {}, {}>;
|
|
451
|
-
/**
|
|
452
|
-
* Emitted when an output item is marked done.
|
|
453
|
-
*
|
|
454
|
-
* @since 1.0.0
|
|
455
|
-
* @category Schemas
|
|
456
|
-
*/
|
|
457
|
-
export declare class ResponseOutputItemDoneEvent extends ResponseOutputItemDoneEvent_base {
|
|
458
|
-
}
|
|
459
|
-
declare const ResponseContentPartAddedEvent_base: Schema.Class<ResponseContentPartAddedEvent, {
|
|
460
|
-
/**
|
|
461
|
-
* The type of the event. Always `"response.content_part.added"`.
|
|
462
|
-
*/
|
|
463
|
-
type: Schema.Literal<["response.content_part.added"]>;
|
|
464
|
-
/**
|
|
465
|
-
* The sequence number for this event.
|
|
466
|
-
*/
|
|
467
|
-
sequence_number: typeof Schema.Int;
|
|
468
|
-
/**
|
|
469
|
-
* The index of the output item that the content part was added to.
|
|
470
|
-
*/
|
|
471
|
-
output_index: typeof Schema.Int;
|
|
472
|
-
/**
|
|
473
|
-
* The index of the content part that was added.
|
|
474
|
-
*/
|
|
475
|
-
content_index: typeof Schema.Int;
|
|
476
|
-
/**
|
|
477
|
-
* The ID of the output item that the content part was added to.
|
|
478
|
-
*/
|
|
479
|
-
item_id: typeof Schema.String;
|
|
480
|
-
/**
|
|
481
|
-
* The content part that was added.
|
|
482
|
-
*/
|
|
483
|
-
part: Schema.Union<[typeof Generated.OutputTextContent, typeof Generated.RefusalContent, typeof Generated.ReasoningTextContent]>;
|
|
484
|
-
}, Schema.Struct.Encoded<{
|
|
485
|
-
/**
|
|
486
|
-
* The type of the event. Always `"response.content_part.added"`.
|
|
487
|
-
*/
|
|
488
|
-
type: Schema.Literal<["response.content_part.added"]>;
|
|
489
|
-
/**
|
|
490
|
-
* The sequence number for this event.
|
|
491
|
-
*/
|
|
492
|
-
sequence_number: typeof Schema.Int;
|
|
493
|
-
/**
|
|
494
|
-
* The index of the output item that the content part was added to.
|
|
495
|
-
*/
|
|
496
|
-
output_index: typeof Schema.Int;
|
|
497
|
-
/**
|
|
498
|
-
* The index of the content part that was added.
|
|
499
|
-
*/
|
|
500
|
-
content_index: typeof Schema.Int;
|
|
501
|
-
/**
|
|
502
|
-
* The ID of the output item that the content part was added to.
|
|
503
|
-
*/
|
|
504
|
-
item_id: typeof Schema.String;
|
|
505
|
-
/**
|
|
506
|
-
* The content part that was added.
|
|
507
|
-
*/
|
|
508
|
-
part: Schema.Union<[typeof Generated.OutputTextContent, typeof Generated.RefusalContent, typeof Generated.ReasoningTextContent]>;
|
|
509
|
-
}>, never, {
|
|
510
|
-
readonly type: "response.content_part.added";
|
|
511
|
-
} & {
|
|
512
|
-
readonly sequence_number: number;
|
|
513
|
-
} & {
|
|
514
|
-
readonly output_index: number;
|
|
515
|
-
} & {
|
|
516
|
-
readonly content_index: number;
|
|
517
|
-
} & {
|
|
518
|
-
readonly item_id: string;
|
|
519
|
-
} & {
|
|
520
|
-
readonly part: Generated.OutputTextContent | Generated.ReasoningTextContent | Generated.RefusalContent;
|
|
521
|
-
}, {}, {}>;
|
|
522
|
-
/**
|
|
523
|
-
* Emitted when a new content part is added.
|
|
524
|
-
*
|
|
525
|
-
* @since 1.0.0
|
|
526
|
-
* @category Schemas
|
|
527
|
-
*/
|
|
528
|
-
export declare class ResponseContentPartAddedEvent extends ResponseContentPartAddedEvent_base {
|
|
529
|
-
}
|
|
530
|
-
declare const ResponseContentPartDoneEvent_base: Schema.Class<ResponseContentPartDoneEvent, {
|
|
531
|
-
/**
|
|
532
|
-
* The type of the event. Always `"response.content_part.done"`.
|
|
533
|
-
*/
|
|
534
|
-
type: Schema.Literal<["response.content_part.done"]>;
|
|
535
|
-
/**
|
|
536
|
-
* The sequence number for this event.
|
|
537
|
-
*/
|
|
538
|
-
sequence_number: typeof Schema.Int;
|
|
539
|
-
/**
|
|
540
|
-
* The index of the output item that the content part was added to.
|
|
541
|
-
*/
|
|
542
|
-
output_index: typeof Schema.Int;
|
|
543
|
-
/**
|
|
544
|
-
* The index of the content part that is done.
|
|
545
|
-
*/
|
|
546
|
-
content_index: typeof Schema.Int;
|
|
547
|
-
/**
|
|
548
|
-
* The ID of the output item that the content part was added to.
|
|
549
|
-
*/
|
|
550
|
-
item_id: typeof Schema.String;
|
|
551
|
-
/**
|
|
552
|
-
* The content part that was added.
|
|
553
|
-
*/
|
|
554
|
-
part: Schema.Union<[typeof Generated.OutputTextContent, typeof Generated.RefusalContent, typeof Generated.ReasoningTextContent]>;
|
|
555
|
-
}, Schema.Struct.Encoded<{
|
|
556
|
-
/**
|
|
557
|
-
* The type of the event. Always `"response.content_part.done"`.
|
|
558
|
-
*/
|
|
559
|
-
type: Schema.Literal<["response.content_part.done"]>;
|
|
560
|
-
/**
|
|
561
|
-
* The sequence number for this event.
|
|
562
|
-
*/
|
|
563
|
-
sequence_number: typeof Schema.Int;
|
|
564
|
-
/**
|
|
565
|
-
* The index of the output item that the content part was added to.
|
|
566
|
-
*/
|
|
567
|
-
output_index: typeof Schema.Int;
|
|
568
|
-
/**
|
|
569
|
-
* The index of the content part that is done.
|
|
570
|
-
*/
|
|
571
|
-
content_index: typeof Schema.Int;
|
|
572
|
-
/**
|
|
573
|
-
* The ID of the output item that the content part was added to.
|
|
574
|
-
*/
|
|
575
|
-
item_id: typeof Schema.String;
|
|
576
|
-
/**
|
|
577
|
-
* The content part that was added.
|
|
578
|
-
*/
|
|
579
|
-
part: Schema.Union<[typeof Generated.OutputTextContent, typeof Generated.RefusalContent, typeof Generated.ReasoningTextContent]>;
|
|
580
|
-
}>, never, {
|
|
581
|
-
readonly type: "response.content_part.done";
|
|
582
|
-
} & {
|
|
583
|
-
readonly sequence_number: number;
|
|
584
|
-
} & {
|
|
585
|
-
readonly output_index: number;
|
|
586
|
-
} & {
|
|
587
|
-
readonly content_index: number;
|
|
588
|
-
} & {
|
|
589
|
-
readonly item_id: string;
|
|
590
|
-
} & {
|
|
591
|
-
readonly part: Generated.OutputTextContent | Generated.ReasoningTextContent | Generated.RefusalContent;
|
|
592
|
-
}, {}, {}>;
|
|
593
|
-
/**
|
|
594
|
-
* Emitted when a content part is done.
|
|
595
|
-
*
|
|
596
|
-
* @since 1.0.0
|
|
597
|
-
* @category Schemas
|
|
598
|
-
*/
|
|
599
|
-
export declare class ResponseContentPartDoneEvent extends ResponseContentPartDoneEvent_base {
|
|
600
|
-
}
|
|
601
|
-
declare const LogProbs_base: Schema.Class<LogProbs, {
|
|
602
|
-
/**
|
|
603
|
-
* The log probability of this token.
|
|
604
|
-
*/
|
|
605
|
-
logprob: typeof Schema.Number;
|
|
606
|
-
/**
|
|
607
|
-
* A possible text token.
|
|
608
|
-
*/
|
|
609
|
-
token: typeof Schema.String;
|
|
610
|
-
/**
|
|
611
|
-
* The log probability of the top 20 most likely tokens.
|
|
612
|
-
*/
|
|
613
|
-
top_logprobs: Schema.Array$<Schema.Struct<{
|
|
614
|
-
/**
|
|
615
|
-
* The log probability of this token.
|
|
616
|
-
*/
|
|
617
|
-
logprob: typeof Schema.Number;
|
|
618
|
-
/**
|
|
619
|
-
* A possible text token.
|
|
620
|
-
*/
|
|
621
|
-
token: typeof Schema.String;
|
|
622
|
-
}>>;
|
|
623
|
-
}, Schema.Struct.Encoded<{
|
|
624
|
-
/**
|
|
625
|
-
* The log probability of this token.
|
|
626
|
-
*/
|
|
627
|
-
logprob: typeof Schema.Number;
|
|
628
|
-
/**
|
|
629
|
-
* A possible text token.
|
|
630
|
-
*/
|
|
631
|
-
token: typeof Schema.String;
|
|
632
|
-
/**
|
|
633
|
-
* The log probability of the top 20 most likely tokens.
|
|
634
|
-
*/
|
|
635
|
-
top_logprobs: Schema.Array$<Schema.Struct<{
|
|
636
|
-
/**
|
|
637
|
-
* The log probability of this token.
|
|
638
|
-
*/
|
|
639
|
-
logprob: typeof Schema.Number;
|
|
640
|
-
/**
|
|
641
|
-
* A possible text token.
|
|
642
|
-
*/
|
|
643
|
-
token: typeof Schema.String;
|
|
644
|
-
}>>;
|
|
645
|
-
}>, never, {
|
|
646
|
-
readonly token: string;
|
|
647
|
-
} & {
|
|
648
|
-
readonly logprob: number;
|
|
649
|
-
} & {
|
|
650
|
-
readonly top_logprobs: readonly {
|
|
651
|
-
readonly token: string;
|
|
652
|
-
readonly logprob: number;
|
|
653
|
-
}[];
|
|
654
|
-
}, {}, {}>;
|
|
655
|
-
/**
|
|
656
|
-
* @since 1.0.0
|
|
657
|
-
* @category Schemas
|
|
658
|
-
*/
|
|
659
|
-
export declare class LogProbs extends LogProbs_base {
|
|
660
|
-
}
|
|
661
|
-
declare const ResponseOutputTextDeltaEvent_base: Schema.Class<ResponseOutputTextDeltaEvent, {
|
|
662
|
-
/**
|
|
663
|
-
* The type of the event. Always `"response.output_text.delta"`.
|
|
664
|
-
*/
|
|
665
|
-
type: Schema.Literal<["response.output_text.delta"]>;
|
|
666
|
-
/**
|
|
667
|
-
* The sequence number for this event.
|
|
668
|
-
*/
|
|
669
|
-
sequence_number: typeof Schema.Int;
|
|
670
|
-
/**
|
|
671
|
-
* The index of the output item that the text delta was added to.
|
|
672
|
-
*/
|
|
673
|
-
output_index: typeof Schema.Int;
|
|
674
|
-
/**
|
|
675
|
-
* The index of the content part that the text delta was added to.
|
|
676
|
-
*/
|
|
677
|
-
content_index: typeof Schema.Int;
|
|
678
|
-
/**
|
|
679
|
-
* The ID of the output item that the text delta was added to.
|
|
680
|
-
*/
|
|
681
|
-
item_id: typeof Schema.String;
|
|
682
|
-
/**
|
|
683
|
-
* The text delta that was added.
|
|
684
|
-
*/
|
|
685
|
-
delta: typeof Schema.String;
|
|
686
|
-
/**
|
|
687
|
-
* The log probabilities of the tokens in the delta.
|
|
688
|
-
*/
|
|
689
|
-
logprobs: Schema.optional<Schema.NullOr<Schema.Array$<typeof LogProbs>>>;
|
|
690
|
-
}, Schema.Struct.Encoded<{
|
|
691
|
-
/**
|
|
692
|
-
* The type of the event. Always `"response.output_text.delta"`.
|
|
693
|
-
*/
|
|
694
|
-
type: Schema.Literal<["response.output_text.delta"]>;
|
|
695
|
-
/**
|
|
696
|
-
* The sequence number for this event.
|
|
697
|
-
*/
|
|
698
|
-
sequence_number: typeof Schema.Int;
|
|
699
|
-
/**
|
|
700
|
-
* The index of the output item that the text delta was added to.
|
|
701
|
-
*/
|
|
702
|
-
output_index: typeof Schema.Int;
|
|
703
|
-
/**
|
|
704
|
-
* The index of the content part that the text delta was added to.
|
|
705
|
-
*/
|
|
706
|
-
content_index: typeof Schema.Int;
|
|
707
|
-
/**
|
|
708
|
-
* The ID of the output item that the text delta was added to.
|
|
709
|
-
*/
|
|
710
|
-
item_id: typeof Schema.String;
|
|
711
|
-
/**
|
|
712
|
-
* The text delta that was added.
|
|
713
|
-
*/
|
|
714
|
-
delta: typeof Schema.String;
|
|
715
|
-
/**
|
|
716
|
-
* The log probabilities of the tokens in the delta.
|
|
717
|
-
*/
|
|
718
|
-
logprobs: Schema.optional<Schema.NullOr<Schema.Array$<typeof LogProbs>>>;
|
|
719
|
-
}>, never, {
|
|
720
|
-
readonly type: "response.output_text.delta";
|
|
721
|
-
} & {
|
|
722
|
-
readonly logprobs?: readonly LogProbs[] | null | undefined;
|
|
723
|
-
} & {
|
|
724
|
-
readonly sequence_number: number;
|
|
725
|
-
} & {
|
|
726
|
-
readonly output_index: number;
|
|
727
|
-
} & {
|
|
728
|
-
readonly content_index: number;
|
|
729
|
-
} & {
|
|
730
|
-
readonly item_id: string;
|
|
731
|
-
} & {
|
|
732
|
-
readonly delta: string;
|
|
733
|
-
}, {}, {}>;
|
|
734
|
-
/**
|
|
735
|
-
* Emitted when there is an additional text delta.
|
|
736
|
-
*
|
|
737
|
-
* @since 1.0.0
|
|
738
|
-
* @category Schemas
|
|
739
|
-
*/
|
|
740
|
-
export declare class ResponseOutputTextDeltaEvent extends ResponseOutputTextDeltaEvent_base {
|
|
741
|
-
}
|
|
742
|
-
declare const ResponseOutputTextDoneEvent_base: Schema.Class<ResponseOutputTextDoneEvent, {
|
|
743
|
-
/**
|
|
744
|
-
* The type of the event. Always `"response.output_text.done"`.
|
|
745
|
-
*/
|
|
746
|
-
type: Schema.Literal<["response.output_text.done"]>;
|
|
747
|
-
/**
|
|
748
|
-
* The sequence number for this event.
|
|
749
|
-
*/
|
|
750
|
-
sequence_number: typeof Schema.Int;
|
|
751
|
-
/**
|
|
752
|
-
* The index of the output item that the text content is finalized.
|
|
753
|
-
*/
|
|
754
|
-
output_index: typeof Schema.Int;
|
|
755
|
-
/**
|
|
756
|
-
* The index of the content part that the text content is finalized.
|
|
757
|
-
*/
|
|
758
|
-
content_index: typeof Schema.Int;
|
|
759
|
-
/**
|
|
760
|
-
* The ID of the output item that the text content is finalized.
|
|
761
|
-
*/
|
|
762
|
-
item_id: typeof Schema.String;
|
|
763
|
-
/**
|
|
764
|
-
* The text content that is finalized.
|
|
765
|
-
*/
|
|
766
|
-
text: typeof Schema.String;
|
|
767
|
-
/**
|
|
768
|
-
* The log probabilities of the tokens in the delta.
|
|
769
|
-
*/
|
|
770
|
-
logprobs: Schema.optional<Schema.NullOr<Schema.Array$<typeof LogProbs>>>;
|
|
771
|
-
}, Schema.Struct.Encoded<{
|
|
772
|
-
/**
|
|
773
|
-
* The type of the event. Always `"response.output_text.done"`.
|
|
774
|
-
*/
|
|
775
|
-
type: Schema.Literal<["response.output_text.done"]>;
|
|
776
|
-
/**
|
|
777
|
-
* The sequence number for this event.
|
|
778
|
-
*/
|
|
779
|
-
sequence_number: typeof Schema.Int;
|
|
780
|
-
/**
|
|
781
|
-
* The index of the output item that the text content is finalized.
|
|
782
|
-
*/
|
|
783
|
-
output_index: typeof Schema.Int;
|
|
784
|
-
/**
|
|
785
|
-
* The index of the content part that the text content is finalized.
|
|
786
|
-
*/
|
|
787
|
-
content_index: typeof Schema.Int;
|
|
788
|
-
/**
|
|
789
|
-
* The ID of the output item that the text content is finalized.
|
|
790
|
-
*/
|
|
791
|
-
item_id: typeof Schema.String;
|
|
792
|
-
/**
|
|
793
|
-
* The text content that is finalized.
|
|
794
|
-
*/
|
|
795
|
-
text: typeof Schema.String;
|
|
796
|
-
/**
|
|
797
|
-
* The log probabilities of the tokens in the delta.
|
|
798
|
-
*/
|
|
799
|
-
logprobs: Schema.optional<Schema.NullOr<Schema.Array$<typeof LogProbs>>>;
|
|
800
|
-
}>, never, {
|
|
801
|
-
readonly type: "response.output_text.done";
|
|
802
|
-
} & {
|
|
803
|
-
readonly text: string;
|
|
804
|
-
} & {
|
|
805
|
-
readonly logprobs?: readonly LogProbs[] | null | undefined;
|
|
806
|
-
} & {
|
|
807
|
-
readonly sequence_number: number;
|
|
808
|
-
} & {
|
|
809
|
-
readonly output_index: number;
|
|
810
|
-
} & {
|
|
811
|
-
readonly content_index: number;
|
|
812
|
-
} & {
|
|
813
|
-
readonly item_id: string;
|
|
814
|
-
}, {}, {}>;
|
|
815
|
-
/**
|
|
816
|
-
* Emitted when text content is finalized.
|
|
817
|
-
*
|
|
818
|
-
* @since 1.0.0
|
|
819
|
-
* @category Schemas
|
|
820
|
-
*/
|
|
821
|
-
export declare class ResponseOutputTextDoneEvent extends ResponseOutputTextDoneEvent_base {
|
|
822
|
-
}
|
|
823
|
-
declare const ResponseOutputTextAnnotationAddedEvent_base: Schema.Class<ResponseOutputTextAnnotationAddedEvent, {
|
|
824
|
-
/**
|
|
825
|
-
* The type of the event. Always `"response.output_text.annotation.added"`.
|
|
826
|
-
*/
|
|
827
|
-
type: Schema.Literal<["response.output_text.annotation.added"]>;
|
|
828
|
-
/**
|
|
829
|
-
* The sequence number for this event.
|
|
830
|
-
*/
|
|
831
|
-
sequence_number: typeof Schema.Int;
|
|
832
|
-
/**
|
|
833
|
-
* The index of the output item in the response's output array.
|
|
834
|
-
*/
|
|
835
|
-
output_index: typeof Schema.Int;
|
|
836
|
-
/**
|
|
837
|
-
* The index of the content part within the output item.
|
|
838
|
-
*/
|
|
839
|
-
content_index: typeof Schema.Int;
|
|
840
|
-
/**
|
|
841
|
-
* The index of the annotation within the content part.
|
|
842
|
-
*/
|
|
843
|
-
annotation_index: typeof Schema.Int;
|
|
844
|
-
/**
|
|
845
|
-
* The unique identifier of the item to which the annotation is being added.
|
|
846
|
-
*/
|
|
847
|
-
item_id: typeof Schema.String;
|
|
848
|
-
/**
|
|
849
|
-
* The annotation object being added. (See annotation schema for details.)
|
|
850
|
-
*/
|
|
851
|
-
annotation: typeof Generated.Annotation;
|
|
852
|
-
}, Schema.Struct.Encoded<{
|
|
853
|
-
/**
|
|
854
|
-
* The type of the event. Always `"response.output_text.annotation.added"`.
|
|
855
|
-
*/
|
|
856
|
-
type: Schema.Literal<["response.output_text.annotation.added"]>;
|
|
857
|
-
/**
|
|
858
|
-
* The sequence number for this event.
|
|
859
|
-
*/
|
|
860
|
-
sequence_number: typeof Schema.Int;
|
|
861
|
-
/**
|
|
862
|
-
* The index of the output item in the response's output array.
|
|
863
|
-
*/
|
|
864
|
-
output_index: typeof Schema.Int;
|
|
865
|
-
/**
|
|
866
|
-
* The index of the content part within the output item.
|
|
867
|
-
*/
|
|
868
|
-
content_index: typeof Schema.Int;
|
|
869
|
-
/**
|
|
870
|
-
* The index of the annotation within the content part.
|
|
871
|
-
*/
|
|
872
|
-
annotation_index: typeof Schema.Int;
|
|
873
|
-
/**
|
|
874
|
-
* The unique identifier of the item to which the annotation is being added.
|
|
875
|
-
*/
|
|
876
|
-
item_id: typeof Schema.String;
|
|
877
|
-
/**
|
|
878
|
-
* The annotation object being added. (See annotation schema for details.)
|
|
879
|
-
*/
|
|
880
|
-
annotation: typeof Generated.Annotation;
|
|
881
|
-
}>, never, {
|
|
882
|
-
readonly type: "response.output_text.annotation.added";
|
|
883
|
-
} & {
|
|
884
|
-
readonly sequence_number: number;
|
|
885
|
-
} & {
|
|
886
|
-
readonly output_index: number;
|
|
887
|
-
} & {
|
|
888
|
-
readonly content_index: number;
|
|
889
|
-
} & {
|
|
890
|
-
readonly item_id: string;
|
|
891
|
-
} & {
|
|
892
|
-
readonly annotation_index: number;
|
|
893
|
-
} & {
|
|
894
|
-
readonly annotation: Generated.FileCitationBody | Generated.UrlCitationBody | Generated.ContainerFileCitationBody | Generated.FilePath;
|
|
895
|
-
}, {}, {}>;
|
|
896
|
-
/**
|
|
897
|
-
* Emitted when an annotation is added to output text content.
|
|
898
|
-
*
|
|
899
|
-
* @since 1.0.0
|
|
900
|
-
* @category Schemas
|
|
901
|
-
*/
|
|
902
|
-
export declare class ResponseOutputTextAnnotationAddedEvent extends ResponseOutputTextAnnotationAddedEvent_base {
|
|
903
|
-
}
|
|
904
|
-
declare const ResponseRefusalDeltaEvent_base: Schema.Class<ResponseRefusalDeltaEvent, {
|
|
905
|
-
/**
|
|
906
|
-
* The type of the event. Always `"response.refusal.delta"`.
|
|
907
|
-
*/
|
|
908
|
-
type: Schema.Literal<["response.refusal.delta"]>;
|
|
909
|
-
/**
|
|
910
|
-
* The sequence number for this event.
|
|
911
|
-
*/
|
|
912
|
-
sequence_number: typeof Schema.Int;
|
|
913
|
-
/**
|
|
914
|
-
* The index of the output item that the refusal text is added to.
|
|
915
|
-
*/
|
|
916
|
-
output_index: typeof Schema.Int;
|
|
917
|
-
/**
|
|
918
|
-
* The index of the content part that the refusal text is added to.
|
|
919
|
-
*/
|
|
920
|
-
content_index: typeof Schema.Int;
|
|
921
|
-
/**
|
|
922
|
-
* The ID of the output item that the refusal text is added to.
|
|
923
|
-
*/
|
|
924
|
-
item_id: typeof Schema.String;
|
|
925
|
-
/**
|
|
926
|
-
* The refusal text that is added.
|
|
927
|
-
*/
|
|
928
|
-
delta: typeof Schema.String;
|
|
929
|
-
}, Schema.Struct.Encoded<{
|
|
930
|
-
/**
|
|
931
|
-
* The type of the event. Always `"response.refusal.delta"`.
|
|
932
|
-
*/
|
|
933
|
-
type: Schema.Literal<["response.refusal.delta"]>;
|
|
934
|
-
/**
|
|
935
|
-
* The sequence number for this event.
|
|
936
|
-
*/
|
|
937
|
-
sequence_number: typeof Schema.Int;
|
|
938
|
-
/**
|
|
939
|
-
* The index of the output item that the refusal text is added to.
|
|
940
|
-
*/
|
|
941
|
-
output_index: typeof Schema.Int;
|
|
942
|
-
/**
|
|
943
|
-
* The index of the content part that the refusal text is added to.
|
|
944
|
-
*/
|
|
945
|
-
content_index: typeof Schema.Int;
|
|
946
|
-
/**
|
|
947
|
-
* The ID of the output item that the refusal text is added to.
|
|
948
|
-
*/
|
|
949
|
-
item_id: typeof Schema.String;
|
|
950
|
-
/**
|
|
951
|
-
* The refusal text that is added.
|
|
952
|
-
*/
|
|
953
|
-
delta: typeof Schema.String;
|
|
954
|
-
}>, never, {
|
|
955
|
-
readonly type: "response.refusal.delta";
|
|
956
|
-
} & {
|
|
957
|
-
readonly sequence_number: number;
|
|
958
|
-
} & {
|
|
959
|
-
readonly output_index: number;
|
|
960
|
-
} & {
|
|
961
|
-
readonly content_index: number;
|
|
962
|
-
} & {
|
|
963
|
-
readonly item_id: string;
|
|
964
|
-
} & {
|
|
965
|
-
readonly delta: string;
|
|
966
|
-
}, {}, {}>;
|
|
967
|
-
/**
|
|
968
|
-
* Emitted when there is a partial refusal text.
|
|
969
|
-
*
|
|
970
|
-
* @since 1.0.0
|
|
971
|
-
* @category Schemas
|
|
972
|
-
*/
|
|
973
|
-
export declare class ResponseRefusalDeltaEvent extends ResponseRefusalDeltaEvent_base {
|
|
974
|
-
}
|
|
975
|
-
declare const ResponseRefusalDoneEvent_base: Schema.Class<ResponseRefusalDoneEvent, {
|
|
976
|
-
/**
|
|
977
|
-
* The type of the event. Always `"response.refusal.done"`.
|
|
978
|
-
*/
|
|
979
|
-
type: Schema.Literal<["response.refusal.done"]>;
|
|
980
|
-
/**
|
|
981
|
-
* The sequence number for this event.
|
|
982
|
-
*/
|
|
983
|
-
sequence_number: typeof Schema.Int;
|
|
984
|
-
/**
|
|
985
|
-
* The index of the output item that the refusal text is finalized.
|
|
986
|
-
*/
|
|
987
|
-
output_index: typeof Schema.Int;
|
|
988
|
-
/**
|
|
989
|
-
* The index of the content part that the refusal text is finalized.
|
|
990
|
-
*/
|
|
991
|
-
content_index: typeof Schema.Int;
|
|
992
|
-
/**
|
|
993
|
-
* The index of the output item that the refusal text is added to.
|
|
994
|
-
*/
|
|
995
|
-
item_id: typeof Schema.String;
|
|
996
|
-
/**
|
|
997
|
-
* The refusal text that is finalized.
|
|
998
|
-
*/
|
|
999
|
-
refusal: typeof Schema.String;
|
|
1000
|
-
}, Schema.Struct.Encoded<{
|
|
1001
|
-
/**
|
|
1002
|
-
* The type of the event. Always `"response.refusal.done"`.
|
|
1003
|
-
*/
|
|
1004
|
-
type: Schema.Literal<["response.refusal.done"]>;
|
|
1005
|
-
/**
|
|
1006
|
-
* The sequence number for this event.
|
|
1007
|
-
*/
|
|
1008
|
-
sequence_number: typeof Schema.Int;
|
|
1009
|
-
/**
|
|
1010
|
-
* The index of the output item that the refusal text is finalized.
|
|
1011
|
-
*/
|
|
1012
|
-
output_index: typeof Schema.Int;
|
|
1013
|
-
/**
|
|
1014
|
-
* The index of the content part that the refusal text is finalized.
|
|
1015
|
-
*/
|
|
1016
|
-
content_index: typeof Schema.Int;
|
|
1017
|
-
/**
|
|
1018
|
-
* The index of the output item that the refusal text is added to.
|
|
1019
|
-
*/
|
|
1020
|
-
item_id: typeof Schema.String;
|
|
1021
|
-
/**
|
|
1022
|
-
* The refusal text that is finalized.
|
|
1023
|
-
*/
|
|
1024
|
-
refusal: typeof Schema.String;
|
|
1025
|
-
}>, never, {
|
|
1026
|
-
readonly type: "response.refusal.done";
|
|
1027
|
-
} & {
|
|
1028
|
-
readonly refusal: string;
|
|
1029
|
-
} & {
|
|
1030
|
-
readonly sequence_number: number;
|
|
1031
|
-
} & {
|
|
1032
|
-
readonly output_index: number;
|
|
1033
|
-
} & {
|
|
1034
|
-
readonly content_index: number;
|
|
1035
|
-
} & {
|
|
1036
|
-
readonly item_id: string;
|
|
1037
|
-
}, {}, {}>;
|
|
1038
|
-
/**
|
|
1039
|
-
* Emitted when refusal text is finalized.
|
|
1040
|
-
*
|
|
1041
|
-
* @since 1.0.0
|
|
1042
|
-
* @category Schemas
|
|
1043
|
-
*/
|
|
1044
|
-
export declare class ResponseRefusalDoneEvent extends ResponseRefusalDoneEvent_base {
|
|
1045
|
-
}
|
|
1046
|
-
declare const ResponseFunctionCallArgumentsDeltaEvent_base: Schema.Class<ResponseFunctionCallArgumentsDeltaEvent, {
|
|
1047
|
-
/**
|
|
1048
|
-
* The type of the event. Always `"response.function_call_arguments.delta"`.
|
|
1049
|
-
*/
|
|
1050
|
-
type: Schema.Literal<["response.function_call_arguments.delta"]>;
|
|
1051
|
-
/**
|
|
1052
|
-
* The sequence number for this event.
|
|
1053
|
-
*/
|
|
1054
|
-
sequence_number: typeof Schema.Int;
|
|
1055
|
-
/**
|
|
1056
|
-
* The index of the output item that the function-call arguments delta is added to.
|
|
1057
|
-
*/
|
|
1058
|
-
output_index: typeof Schema.Int;
|
|
1059
|
-
/**
|
|
1060
|
-
* The ID of the output item that the function-call arguments delta is added to.
|
|
1061
|
-
*/
|
|
1062
|
-
item_id: typeof Schema.String;
|
|
1063
|
-
/**
|
|
1064
|
-
* The function-call arguments delta that is added.
|
|
1065
|
-
*/
|
|
1066
|
-
delta: typeof Schema.String;
|
|
1067
|
-
}, Schema.Struct.Encoded<{
|
|
1068
|
-
/**
|
|
1069
|
-
* The type of the event. Always `"response.function_call_arguments.delta"`.
|
|
1070
|
-
*/
|
|
1071
|
-
type: Schema.Literal<["response.function_call_arguments.delta"]>;
|
|
1072
|
-
/**
|
|
1073
|
-
* The sequence number for this event.
|
|
1074
|
-
*/
|
|
1075
|
-
sequence_number: typeof Schema.Int;
|
|
1076
|
-
/**
|
|
1077
|
-
* The index of the output item that the function-call arguments delta is added to.
|
|
1078
|
-
*/
|
|
1079
|
-
output_index: typeof Schema.Int;
|
|
1080
|
-
/**
|
|
1081
|
-
* The ID of the output item that the function-call arguments delta is added to.
|
|
1082
|
-
*/
|
|
1083
|
-
item_id: typeof Schema.String;
|
|
1084
|
-
/**
|
|
1085
|
-
* The function-call arguments delta that is added.
|
|
1086
|
-
*/
|
|
1087
|
-
delta: typeof Schema.String;
|
|
1088
|
-
}>, never, {
|
|
1089
|
-
readonly type: "response.function_call_arguments.delta";
|
|
1090
|
-
} & {
|
|
1091
|
-
readonly sequence_number: number;
|
|
1092
|
-
} & {
|
|
1093
|
-
readonly output_index: number;
|
|
1094
|
-
} & {
|
|
1095
|
-
readonly item_id: string;
|
|
1096
|
-
} & {
|
|
1097
|
-
readonly delta: string;
|
|
1098
|
-
}, {}, {}>;
|
|
1099
|
-
/**
|
|
1100
|
-
* Emitted when there is a partial function-call arguments delta.
|
|
1101
|
-
*
|
|
1102
|
-
* @since 1.0.0
|
|
1103
|
-
* @category Schemas
|
|
1104
|
-
*/
|
|
1105
|
-
export declare class ResponseFunctionCallArgumentsDeltaEvent extends ResponseFunctionCallArgumentsDeltaEvent_base {
|
|
1106
|
-
}
|
|
1107
|
-
declare const ResponseFunctionCallArgumentsDoneEvent_base: Schema.Class<ResponseFunctionCallArgumentsDoneEvent, {
|
|
1108
|
-
/**
|
|
1109
|
-
* The type of the event. Always `"response.function_call_arguments.done"`.
|
|
1110
|
-
*/
|
|
1111
|
-
type: Schema.Literal<["response.function_call_arguments.done"]>;
|
|
1112
|
-
/**
|
|
1113
|
-
* The sequence number for this event.
|
|
1114
|
-
*/
|
|
1115
|
-
sequence_number: typeof Schema.Int;
|
|
1116
|
-
/**
|
|
1117
|
-
* The index of the output item.
|
|
1118
|
-
*/
|
|
1119
|
-
output_index: typeof Schema.Int;
|
|
1120
|
-
/**
|
|
1121
|
-
* The ID of the item.
|
|
1122
|
-
*/
|
|
1123
|
-
item_id: typeof Schema.String;
|
|
1124
|
-
/**
|
|
1125
|
-
* The function-call arguments.
|
|
1126
|
-
*/
|
|
1127
|
-
arguments: typeof Schema.String;
|
|
1128
|
-
}, Schema.Struct.Encoded<{
|
|
1129
|
-
/**
|
|
1130
|
-
* The type of the event. Always `"response.function_call_arguments.done"`.
|
|
1131
|
-
*/
|
|
1132
|
-
type: Schema.Literal<["response.function_call_arguments.done"]>;
|
|
1133
|
-
/**
|
|
1134
|
-
* The sequence number for this event.
|
|
1135
|
-
*/
|
|
1136
|
-
sequence_number: typeof Schema.Int;
|
|
1137
|
-
/**
|
|
1138
|
-
* The index of the output item.
|
|
1139
|
-
*/
|
|
1140
|
-
output_index: typeof Schema.Int;
|
|
1141
|
-
/**
|
|
1142
|
-
* The ID of the item.
|
|
1143
|
-
*/
|
|
1144
|
-
item_id: typeof Schema.String;
|
|
1145
|
-
/**
|
|
1146
|
-
* The function-call arguments.
|
|
1147
|
-
*/
|
|
1148
|
-
arguments: typeof Schema.String;
|
|
1149
|
-
}>, never, {
|
|
1150
|
-
readonly type: "response.function_call_arguments.done";
|
|
1151
|
-
} & {
|
|
1152
|
-
readonly arguments: string;
|
|
1153
|
-
} & {
|
|
1154
|
-
readonly sequence_number: number;
|
|
1155
|
-
} & {
|
|
1156
|
-
readonly output_index: number;
|
|
1157
|
-
} & {
|
|
1158
|
-
readonly item_id: string;
|
|
1159
|
-
}, {}, {}>;
|
|
1160
|
-
/**
|
|
1161
|
-
* Emitted when function-call arguments are finalized.
|
|
1162
|
-
*
|
|
1163
|
-
* @since 1.0.0
|
|
1164
|
-
* @category Schemas
|
|
1165
|
-
*/
|
|
1166
|
-
export declare class ResponseFunctionCallArgumentsDoneEvent extends ResponseFunctionCallArgumentsDoneEvent_base {
|
|
1167
|
-
}
|
|
1168
|
-
declare const ResponseFileSearchCallInProgressEvent_base: Schema.Class<ResponseFileSearchCallInProgressEvent, {
|
|
1169
|
-
/**
|
|
1170
|
-
* The type of the event. Always `"response.file_search_call.in_progress"`.
|
|
1171
|
-
*/
|
|
1172
|
-
type: Schema.Literal<["response.file_search_call.in_progress"]>;
|
|
1173
|
-
/**
|
|
1174
|
-
* The sequence number for this event.
|
|
1175
|
-
*/
|
|
1176
|
-
sequence_number: typeof Schema.Int;
|
|
1177
|
-
/**
|
|
1178
|
-
* The index of the output item that the file search call is initiated.
|
|
1179
|
-
*/
|
|
1180
|
-
output_index: typeof Schema.Int;
|
|
1181
|
-
/**
|
|
1182
|
-
* The ID of the output item that the file search call is initiated.
|
|
1183
|
-
*/
|
|
1184
|
-
item_id: typeof Schema.String;
|
|
1185
|
-
}, Schema.Struct.Encoded<{
|
|
1186
|
-
/**
|
|
1187
|
-
* The type of the event. Always `"response.file_search_call.in_progress"`.
|
|
1188
|
-
*/
|
|
1189
|
-
type: Schema.Literal<["response.file_search_call.in_progress"]>;
|
|
1190
|
-
/**
|
|
1191
|
-
* The sequence number for this event.
|
|
1192
|
-
*/
|
|
1193
|
-
sequence_number: typeof Schema.Int;
|
|
1194
|
-
/**
|
|
1195
|
-
* The index of the output item that the file search call is initiated.
|
|
1196
|
-
*/
|
|
1197
|
-
output_index: typeof Schema.Int;
|
|
1198
|
-
/**
|
|
1199
|
-
* The ID of the output item that the file search call is initiated.
|
|
1200
|
-
*/
|
|
1201
|
-
item_id: typeof Schema.String;
|
|
1202
|
-
}>, never, {
|
|
1203
|
-
readonly type: "response.file_search_call.in_progress";
|
|
1204
|
-
} & {
|
|
1205
|
-
readonly sequence_number: number;
|
|
1206
|
-
} & {
|
|
1207
|
-
readonly output_index: number;
|
|
1208
|
-
} & {
|
|
1209
|
-
readonly item_id: string;
|
|
1210
|
-
}, {}, {}>;
|
|
1211
|
-
/**
|
|
1212
|
-
* Emitted when a file search call is initiated.
|
|
1213
|
-
*
|
|
1214
|
-
* @since 1.0.0
|
|
1215
|
-
* @category Schemas
|
|
1216
|
-
*/
|
|
1217
|
-
export declare class ResponseFileSearchCallInProgressEvent extends ResponseFileSearchCallInProgressEvent_base {
|
|
1218
|
-
}
|
|
1219
|
-
declare const ResponseFileSearchCallSearchingEvent_base: Schema.Class<ResponseFileSearchCallSearchingEvent, {
|
|
1220
|
-
/**
|
|
1221
|
-
* The type of the event. Always `"response.file_search_call.searching"`.
|
|
1222
|
-
*/
|
|
1223
|
-
type: Schema.Literal<["response.file_search_call.searching"]>;
|
|
1224
|
-
/**
|
|
1225
|
-
* The sequence number for this event.
|
|
1226
|
-
*/
|
|
1227
|
-
sequence_number: typeof Schema.Int;
|
|
1228
|
-
/**
|
|
1229
|
-
* The index of the output item that the file search call is searching.
|
|
1230
|
-
*/
|
|
1231
|
-
output_index: typeof Schema.Int;
|
|
1232
|
-
/**
|
|
1233
|
-
* The ID of the output item that the file search call is initiated.
|
|
1234
|
-
*/
|
|
1235
|
-
item_id: typeof Schema.String;
|
|
1236
|
-
}, Schema.Struct.Encoded<{
|
|
1237
|
-
/**
|
|
1238
|
-
* The type of the event. Always `"response.file_search_call.searching"`.
|
|
1239
|
-
*/
|
|
1240
|
-
type: Schema.Literal<["response.file_search_call.searching"]>;
|
|
1241
|
-
/**
|
|
1242
|
-
* The sequence number for this event.
|
|
1243
|
-
*/
|
|
1244
|
-
sequence_number: typeof Schema.Int;
|
|
1245
|
-
/**
|
|
1246
|
-
* The index of the output item that the file search call is searching.
|
|
1247
|
-
*/
|
|
1248
|
-
output_index: typeof Schema.Int;
|
|
1249
|
-
/**
|
|
1250
|
-
* The ID of the output item that the file search call is initiated.
|
|
1251
|
-
*/
|
|
1252
|
-
item_id: typeof Schema.String;
|
|
1253
|
-
}>, never, {
|
|
1254
|
-
readonly type: "response.file_search_call.searching";
|
|
1255
|
-
} & {
|
|
1256
|
-
readonly sequence_number: number;
|
|
1257
|
-
} & {
|
|
1258
|
-
readonly output_index: number;
|
|
1259
|
-
} & {
|
|
1260
|
-
readonly item_id: string;
|
|
1261
|
-
}, {}, {}>;
|
|
1262
|
-
/**
|
|
1263
|
-
* Emitted when a file search is currently searching.
|
|
1264
|
-
*
|
|
1265
|
-
* @since 1.0.0
|
|
1266
|
-
* @category Schemas
|
|
1267
|
-
*/
|
|
1268
|
-
export declare class ResponseFileSearchCallSearchingEvent extends ResponseFileSearchCallSearchingEvent_base {
|
|
1269
|
-
}
|
|
1270
|
-
declare const ResponseFileSearchCallCompletedEvent_base: Schema.Class<ResponseFileSearchCallCompletedEvent, {
|
|
1271
|
-
/**
|
|
1272
|
-
* The type of the event. Always `"response.file_search_call.completed"`.
|
|
1273
|
-
*/
|
|
1274
|
-
type: Schema.Literal<["response.file_search_call.completed"]>;
|
|
1275
|
-
/**
|
|
1276
|
-
* The sequence number for this event.
|
|
1277
|
-
*/
|
|
1278
|
-
sequence_number: typeof Schema.Int;
|
|
1279
|
-
/**
|
|
1280
|
-
* The index of the output item that the file search call is initiated.
|
|
1281
|
-
*/
|
|
1282
|
-
output_index: typeof Schema.Int;
|
|
1283
|
-
/**
|
|
1284
|
-
* The ID of the output item that the file search call is initiated.
|
|
1285
|
-
*/
|
|
1286
|
-
item_id: typeof Schema.String;
|
|
1287
|
-
}, Schema.Struct.Encoded<{
|
|
1288
|
-
/**
|
|
1289
|
-
* The type of the event. Always `"response.file_search_call.completed"`.
|
|
1290
|
-
*/
|
|
1291
|
-
type: Schema.Literal<["response.file_search_call.completed"]>;
|
|
1292
|
-
/**
|
|
1293
|
-
* The sequence number for this event.
|
|
1294
|
-
*/
|
|
1295
|
-
sequence_number: typeof Schema.Int;
|
|
1296
|
-
/**
|
|
1297
|
-
* The index of the output item that the file search call is initiated.
|
|
1298
|
-
*/
|
|
1299
|
-
output_index: typeof Schema.Int;
|
|
1300
|
-
/**
|
|
1301
|
-
* The ID of the output item that the file search call is initiated.
|
|
1302
|
-
*/
|
|
1303
|
-
item_id: typeof Schema.String;
|
|
1304
|
-
}>, never, {
|
|
1305
|
-
readonly type: "response.file_search_call.completed";
|
|
1306
|
-
} & {
|
|
1307
|
-
readonly sequence_number: number;
|
|
1308
|
-
} & {
|
|
1309
|
-
readonly output_index: number;
|
|
1310
|
-
} & {
|
|
1311
|
-
readonly item_id: string;
|
|
1312
|
-
}, {}, {}>;
|
|
1313
|
-
/**
|
|
1314
|
-
* Emitted when a file search call is completed (results found).
|
|
1315
|
-
*
|
|
1316
|
-
* @since 1.0.0
|
|
1317
|
-
* @category Schemas
|
|
1318
|
-
*/
|
|
1319
|
-
export declare class ResponseFileSearchCallCompletedEvent extends ResponseFileSearchCallCompletedEvent_base {
|
|
1320
|
-
}
|
|
1321
|
-
declare const ResponseWebSearchCallInProgressEvent_base: Schema.Class<ResponseWebSearchCallInProgressEvent, {
|
|
1322
|
-
/**
|
|
1323
|
-
* The type of the event. Always `"response.web_search_call.in_progress"`.
|
|
1324
|
-
*/
|
|
1325
|
-
type: Schema.Literal<["response.web_search_call.in_progress"]>;
|
|
1326
|
-
/**
|
|
1327
|
-
* The sequence number for this event.
|
|
1328
|
-
*/
|
|
1329
|
-
sequence_number: typeof Schema.Int;
|
|
1330
|
-
/**
|
|
1331
|
-
* The index of the output item that the web search call is associated with.
|
|
1332
|
-
*/
|
|
1333
|
-
output_index: typeof Schema.Int;
|
|
1334
|
-
/**
|
|
1335
|
-
* Unique ID for the output item associated with the web search call.
|
|
1336
|
-
*/
|
|
1337
|
-
item_id: typeof Schema.String;
|
|
1338
|
-
}, Schema.Struct.Encoded<{
|
|
1339
|
-
/**
|
|
1340
|
-
* The type of the event. Always `"response.web_search_call.in_progress"`.
|
|
1341
|
-
*/
|
|
1342
|
-
type: Schema.Literal<["response.web_search_call.in_progress"]>;
|
|
1343
|
-
/**
|
|
1344
|
-
* The sequence number for this event.
|
|
1345
|
-
*/
|
|
1346
|
-
sequence_number: typeof Schema.Int;
|
|
1347
|
-
/**
|
|
1348
|
-
* The index of the output item that the web search call is associated with.
|
|
1349
|
-
*/
|
|
1350
|
-
output_index: typeof Schema.Int;
|
|
1351
|
-
/**
|
|
1352
|
-
* Unique ID for the output item associated with the web search call.
|
|
1353
|
-
*/
|
|
1354
|
-
item_id: typeof Schema.String;
|
|
1355
|
-
}>, never, {
|
|
1356
|
-
readonly type: "response.web_search_call.in_progress";
|
|
1357
|
-
} & {
|
|
1358
|
-
readonly sequence_number: number;
|
|
1359
|
-
} & {
|
|
1360
|
-
readonly output_index: number;
|
|
1361
|
-
} & {
|
|
1362
|
-
readonly item_id: string;
|
|
1363
|
-
}, {}, {}>;
|
|
1364
|
-
/**
|
|
1365
|
-
* Emitted when a web search call is initiated.
|
|
1366
|
-
*
|
|
1367
|
-
* @since 1.0.0
|
|
1368
|
-
* @category Schemas
|
|
1369
|
-
*/
|
|
1370
|
-
export declare class ResponseWebSearchCallInProgressEvent extends ResponseWebSearchCallInProgressEvent_base {
|
|
1371
|
-
}
|
|
1372
|
-
declare const ResponseWebSearchCallSearchingEvent_base: Schema.Class<ResponseWebSearchCallSearchingEvent, {
|
|
1373
|
-
/**
|
|
1374
|
-
* The type of the event. Always `"response.web_search_call.searching"`.
|
|
1375
|
-
*/
|
|
1376
|
-
type: Schema.Literal<["response.web_search_call.searching"]>;
|
|
1377
|
-
/**
|
|
1378
|
-
* The sequence number for this event.
|
|
1379
|
-
*/
|
|
1380
|
-
sequence_number: typeof Schema.Int;
|
|
1381
|
-
/**
|
|
1382
|
-
* The index of the output item that the web search call is associated with.
|
|
1383
|
-
*/
|
|
1384
|
-
output_index: typeof Schema.Int;
|
|
1385
|
-
/**
|
|
1386
|
-
* Unique ID for the output item associated with the web search call.
|
|
1387
|
-
*/
|
|
1388
|
-
item_id: typeof Schema.String;
|
|
1389
|
-
}, Schema.Struct.Encoded<{
|
|
1390
|
-
/**
|
|
1391
|
-
* The type of the event. Always `"response.web_search_call.searching"`.
|
|
1392
|
-
*/
|
|
1393
|
-
type: Schema.Literal<["response.web_search_call.searching"]>;
|
|
1394
|
-
/**
|
|
1395
|
-
* The sequence number for this event.
|
|
1396
|
-
*/
|
|
1397
|
-
sequence_number: typeof Schema.Int;
|
|
1398
|
-
/**
|
|
1399
|
-
* The index of the output item that the web search call is associated with.
|
|
1400
|
-
*/
|
|
1401
|
-
output_index: typeof Schema.Int;
|
|
1402
|
-
/**
|
|
1403
|
-
* Unique ID for the output item associated with the web search call.
|
|
1404
|
-
*/
|
|
1405
|
-
item_id: typeof Schema.String;
|
|
1406
|
-
}>, never, {
|
|
1407
|
-
readonly type: "response.web_search_call.searching";
|
|
1408
|
-
} & {
|
|
1409
|
-
readonly sequence_number: number;
|
|
1410
|
-
} & {
|
|
1411
|
-
readonly output_index: number;
|
|
1412
|
-
} & {
|
|
1413
|
-
readonly item_id: string;
|
|
1414
|
-
}, {}, {}>;
|
|
1415
|
-
/**
|
|
1416
|
-
* Emitted when a web search call is executing.
|
|
1417
|
-
*
|
|
1418
|
-
* @since 1.0.0
|
|
1419
|
-
* @category Schemas
|
|
1420
|
-
*/
|
|
1421
|
-
export declare class ResponseWebSearchCallSearchingEvent extends ResponseWebSearchCallSearchingEvent_base {
|
|
1422
|
-
}
|
|
1423
|
-
declare const ResponseWebSearchCallCompletedEvent_base: Schema.Class<ResponseWebSearchCallCompletedEvent, {
|
|
1424
|
-
/**
|
|
1425
|
-
* The type of the event. Always `"response.web_search_call.completed"`.
|
|
1426
|
-
*/
|
|
1427
|
-
type: Schema.Literal<["response.web_search_call.completed"]>;
|
|
1428
|
-
/**
|
|
1429
|
-
* The sequence number for this event.
|
|
1430
|
-
*/
|
|
1431
|
-
sequence_number: typeof Schema.Int;
|
|
1432
|
-
/**
|
|
1433
|
-
* The index of the output item that the web search call is associated with.
|
|
1434
|
-
*/
|
|
1435
|
-
output_index: typeof Schema.Int;
|
|
1436
|
-
/**
|
|
1437
|
-
* Unique ID for the output item associated with the web search call.
|
|
1438
|
-
*/
|
|
1439
|
-
item_id: typeof Schema.String;
|
|
1440
|
-
}, Schema.Struct.Encoded<{
|
|
1441
|
-
/**
|
|
1442
|
-
* The type of the event. Always `"response.web_search_call.completed"`.
|
|
1443
|
-
*/
|
|
1444
|
-
type: Schema.Literal<["response.web_search_call.completed"]>;
|
|
1445
|
-
/**
|
|
1446
|
-
* The sequence number for this event.
|
|
1447
|
-
*/
|
|
1448
|
-
sequence_number: typeof Schema.Int;
|
|
1449
|
-
/**
|
|
1450
|
-
* The index of the output item that the web search call is associated with.
|
|
1451
|
-
*/
|
|
1452
|
-
output_index: typeof Schema.Int;
|
|
1453
|
-
/**
|
|
1454
|
-
* Unique ID for the output item associated with the web search call.
|
|
1455
|
-
*/
|
|
1456
|
-
item_id: typeof Schema.String;
|
|
1457
|
-
}>, never, {
|
|
1458
|
-
readonly type: "response.web_search_call.completed";
|
|
1459
|
-
} & {
|
|
1460
|
-
readonly sequence_number: number;
|
|
1461
|
-
} & {
|
|
1462
|
-
readonly output_index: number;
|
|
1463
|
-
} & {
|
|
1464
|
-
readonly item_id: string;
|
|
1465
|
-
}, {}, {}>;
|
|
1466
|
-
/**
|
|
1467
|
-
* Emitted when a web search call is completed.
|
|
1468
|
-
*
|
|
1469
|
-
* @since 1.0.0
|
|
1470
|
-
* @category Schemas
|
|
1471
|
-
*/
|
|
1472
|
-
export declare class ResponseWebSearchCallCompletedEvent extends ResponseWebSearchCallCompletedEvent_base {
|
|
1473
|
-
}
|
|
1474
|
-
declare const SummaryPart_base: Schema.Class<SummaryPart, {
|
|
1475
|
-
/**
|
|
1476
|
-
* The type of the summary part. Always `"summary_text"`.
|
|
1477
|
-
*/
|
|
1478
|
-
type: Schema.Literal<["summary_text"]>;
|
|
1479
|
-
/**
|
|
1480
|
-
* The text of the summary part.
|
|
1481
|
-
*/
|
|
1482
|
-
text: typeof Schema.String;
|
|
1483
|
-
}, Schema.Struct.Encoded<{
|
|
1484
|
-
/**
|
|
1485
|
-
* The type of the summary part. Always `"summary_text"`.
|
|
1486
|
-
*/
|
|
1487
|
-
type: Schema.Literal<["summary_text"]>;
|
|
1488
|
-
/**
|
|
1489
|
-
* The text of the summary part.
|
|
1490
|
-
*/
|
|
1491
|
-
text: typeof Schema.String;
|
|
1492
|
-
}>, never, {
|
|
1493
|
-
readonly type: "summary_text";
|
|
1494
|
-
} & {
|
|
1495
|
-
readonly text: string;
|
|
1496
|
-
}, {}, {}>;
|
|
1497
|
-
/**
|
|
1498
|
-
* @since 1.0.0
|
|
1499
|
-
* @category Schemas
|
|
1500
|
-
*/
|
|
1501
|
-
export declare class SummaryPart extends SummaryPart_base {
|
|
1502
|
-
}
|
|
1503
|
-
declare const ResponseReasoningSummaryPartAddedEvent_base: Schema.Class<ResponseReasoningSummaryPartAddedEvent, {
|
|
1504
|
-
/**
|
|
1505
|
-
* The type of the event. Always `"response.reasoning_summary_part.added"`.
|
|
1506
|
-
*/
|
|
1507
|
-
type: Schema.Literal<["response.reasoning_summary_part.added"]>;
|
|
1508
|
-
/**
|
|
1509
|
-
* The sequence number for this event.
|
|
1510
|
-
*/
|
|
1511
|
-
sequence_number: typeof Schema.Int;
|
|
1512
|
-
/**
|
|
1513
|
-
* The index of the summary part within the reasoning summary.
|
|
1514
|
-
*/
|
|
1515
|
-
summary_index: typeof Schema.Int;
|
|
1516
|
-
/**
|
|
1517
|
-
* The index of the output item this summary part is associated with.
|
|
1518
|
-
*/
|
|
1519
|
-
output_index: typeof Schema.Int;
|
|
1520
|
-
/**
|
|
1521
|
-
* The ID of the item this summary part is associated with.
|
|
1522
|
-
*/
|
|
1523
|
-
item_id: typeof Schema.String;
|
|
1524
|
-
/**
|
|
1525
|
-
* The summary part that was added.
|
|
1526
|
-
*/
|
|
1527
|
-
part: typeof SummaryPart;
|
|
1528
|
-
}, Schema.Struct.Encoded<{
|
|
1529
|
-
/**
|
|
1530
|
-
* The type of the event. Always `"response.reasoning_summary_part.added"`.
|
|
1531
|
-
*/
|
|
1532
|
-
type: Schema.Literal<["response.reasoning_summary_part.added"]>;
|
|
1533
|
-
/**
|
|
1534
|
-
* The sequence number for this event.
|
|
1535
|
-
*/
|
|
1536
|
-
sequence_number: typeof Schema.Int;
|
|
1537
|
-
/**
|
|
1538
|
-
* The index of the summary part within the reasoning summary.
|
|
1539
|
-
*/
|
|
1540
|
-
summary_index: typeof Schema.Int;
|
|
1541
|
-
/**
|
|
1542
|
-
* The index of the output item this summary part is associated with.
|
|
1543
|
-
*/
|
|
1544
|
-
output_index: typeof Schema.Int;
|
|
1545
|
-
/**
|
|
1546
|
-
* The ID of the item this summary part is associated with.
|
|
1547
|
-
*/
|
|
1548
|
-
item_id: typeof Schema.String;
|
|
1549
|
-
/**
|
|
1550
|
-
* The summary part that was added.
|
|
1551
|
-
*/
|
|
1552
|
-
part: typeof SummaryPart;
|
|
1553
|
-
}>, never, {
|
|
1554
|
-
readonly type: "response.reasoning_summary_part.added";
|
|
1555
|
-
} & {
|
|
1556
|
-
readonly sequence_number: number;
|
|
1557
|
-
} & {
|
|
1558
|
-
readonly output_index: number;
|
|
1559
|
-
} & {
|
|
1560
|
-
readonly item_id: string;
|
|
1561
|
-
} & {
|
|
1562
|
-
readonly part: SummaryPart;
|
|
1563
|
-
} & {
|
|
1564
|
-
readonly summary_index: number;
|
|
1565
|
-
}, {}, {}>;
|
|
1566
|
-
/**
|
|
1567
|
-
* Emitted when a reasoning summary part is completed.
|
|
1568
|
-
*
|
|
1569
|
-
* @since 1.0.0
|
|
1570
|
-
* @category Schemas
|
|
1571
|
-
*/
|
|
1572
|
-
export declare class ResponseReasoningSummaryPartAddedEvent extends ResponseReasoningSummaryPartAddedEvent_base {
|
|
1573
|
-
}
|
|
1574
|
-
declare const ResponseReasoningSummaryPartDoneEvent_base: Schema.Class<ResponseReasoningSummaryPartDoneEvent, {
|
|
1575
|
-
/**
|
|
1576
|
-
* The type of the event. Always `"response.reasoning_summary_part.done"`.
|
|
1577
|
-
*/
|
|
1578
|
-
type: Schema.Literal<["response.reasoning_summary_part.done"]>;
|
|
1579
|
-
/**
|
|
1580
|
-
* The sequence number for this event.
|
|
1581
|
-
*/
|
|
1582
|
-
sequence_number: typeof Schema.Int;
|
|
1583
|
-
/**
|
|
1584
|
-
* The index of the summary part within the reasoning summary.
|
|
1585
|
-
*/
|
|
1586
|
-
summary_index: typeof Schema.Int;
|
|
1587
|
-
/**
|
|
1588
|
-
* The index of the output item this summary part is associated with.
|
|
1589
|
-
*/
|
|
1590
|
-
output_index: typeof Schema.Int;
|
|
1591
|
-
/**
|
|
1592
|
-
* The ID of the item this summary part is associated with.
|
|
1593
|
-
*/
|
|
1594
|
-
item_id: typeof Schema.String;
|
|
1595
|
-
/**
|
|
1596
|
-
* The completed summary part.
|
|
1597
|
-
*/
|
|
1598
|
-
part: typeof SummaryPart;
|
|
1599
|
-
}, Schema.Struct.Encoded<{
|
|
1600
|
-
/**
|
|
1601
|
-
* The type of the event. Always `"response.reasoning_summary_part.done"`.
|
|
1602
|
-
*/
|
|
1603
|
-
type: Schema.Literal<["response.reasoning_summary_part.done"]>;
|
|
1604
|
-
/**
|
|
1605
|
-
* The sequence number for this event.
|
|
1606
|
-
*/
|
|
1607
|
-
sequence_number: typeof Schema.Int;
|
|
1608
|
-
/**
|
|
1609
|
-
* The index of the summary part within the reasoning summary.
|
|
1610
|
-
*/
|
|
1611
|
-
summary_index: typeof Schema.Int;
|
|
1612
|
-
/**
|
|
1613
|
-
* The index of the output item this summary part is associated with.
|
|
1614
|
-
*/
|
|
1615
|
-
output_index: typeof Schema.Int;
|
|
1616
|
-
/**
|
|
1617
|
-
* The ID of the item this summary part is associated with.
|
|
1618
|
-
*/
|
|
1619
|
-
item_id: typeof Schema.String;
|
|
1620
|
-
/**
|
|
1621
|
-
* The completed summary part.
|
|
1622
|
-
*/
|
|
1623
|
-
part: typeof SummaryPart;
|
|
1624
|
-
}>, never, {
|
|
1625
|
-
readonly type: "response.reasoning_summary_part.done";
|
|
1626
|
-
} & {
|
|
1627
|
-
readonly sequence_number: number;
|
|
1628
|
-
} & {
|
|
1629
|
-
readonly output_index: number;
|
|
1630
|
-
} & {
|
|
1631
|
-
readonly item_id: string;
|
|
1632
|
-
} & {
|
|
1633
|
-
readonly part: SummaryPart;
|
|
1634
|
-
} & {
|
|
1635
|
-
readonly summary_index: number;
|
|
1636
|
-
}, {}, {}>;
|
|
1637
|
-
/**
|
|
1638
|
-
* Emitted when a new reasoning summary part is added.
|
|
1639
|
-
*
|
|
1640
|
-
* @since 1.0.0
|
|
1641
|
-
* @category Schemas
|
|
1642
|
-
*/
|
|
1643
|
-
export declare class ResponseReasoningSummaryPartDoneEvent extends ResponseReasoningSummaryPartDoneEvent_base {
|
|
1644
|
-
}
|
|
1645
|
-
declare const ResponseReasoningSummaryTextDeltaEvent_base: Schema.Class<ResponseReasoningSummaryTextDeltaEvent, {
|
|
1646
|
-
/**
|
|
1647
|
-
* The type of the event. Always `"response.reasoning_summary_text.delta"`.
|
|
1648
|
-
*/
|
|
1649
|
-
type: Schema.Literal<["response.reasoning_summary_text.delta"]>;
|
|
1650
|
-
/**
|
|
1651
|
-
* The sequence number for this event.
|
|
1652
|
-
*/
|
|
1653
|
-
sequence_number: typeof Schema.Int;
|
|
1654
|
-
/**
|
|
1655
|
-
* The index of the summary part within the reasoning summary.
|
|
1656
|
-
*/
|
|
1657
|
-
summary_index: typeof Schema.Int;
|
|
1658
|
-
/**
|
|
1659
|
-
* The index of the output item this summary text delta is associated with.
|
|
1660
|
-
*/
|
|
1661
|
-
output_index: typeof Schema.Int;
|
|
1662
|
-
/**
|
|
1663
|
-
* The ID of the item this summary text delta is associated with.
|
|
1664
|
-
*/
|
|
1665
|
-
item_id: typeof Schema.String;
|
|
1666
|
-
/**
|
|
1667
|
-
* The text delta that was added to the summary.
|
|
1668
|
-
*/
|
|
1669
|
-
delta: typeof Schema.String;
|
|
1670
|
-
}, Schema.Struct.Encoded<{
|
|
1671
|
-
/**
|
|
1672
|
-
* The type of the event. Always `"response.reasoning_summary_text.delta"`.
|
|
1673
|
-
*/
|
|
1674
|
-
type: Schema.Literal<["response.reasoning_summary_text.delta"]>;
|
|
1675
|
-
/**
|
|
1676
|
-
* The sequence number for this event.
|
|
1677
|
-
*/
|
|
1678
|
-
sequence_number: typeof Schema.Int;
|
|
1679
|
-
/**
|
|
1680
|
-
* The index of the summary part within the reasoning summary.
|
|
1681
|
-
*/
|
|
1682
|
-
summary_index: typeof Schema.Int;
|
|
1683
|
-
/**
|
|
1684
|
-
* The index of the output item this summary text delta is associated with.
|
|
1685
|
-
*/
|
|
1686
|
-
output_index: typeof Schema.Int;
|
|
1687
|
-
/**
|
|
1688
|
-
* The ID of the item this summary text delta is associated with.
|
|
1689
|
-
*/
|
|
1690
|
-
item_id: typeof Schema.String;
|
|
1691
|
-
/**
|
|
1692
|
-
* The text delta that was added to the summary.
|
|
1693
|
-
*/
|
|
1694
|
-
delta: typeof Schema.String;
|
|
1695
|
-
}>, never, {
|
|
1696
|
-
readonly type: "response.reasoning_summary_text.delta";
|
|
1697
|
-
} & {
|
|
1698
|
-
readonly sequence_number: number;
|
|
1699
|
-
} & {
|
|
1700
|
-
readonly output_index: number;
|
|
1701
|
-
} & {
|
|
1702
|
-
readonly item_id: string;
|
|
1703
|
-
} & {
|
|
1704
|
-
readonly delta: string;
|
|
1705
|
-
} & {
|
|
1706
|
-
readonly summary_index: number;
|
|
1707
|
-
}, {}, {}>;
|
|
1708
|
-
/**
|
|
1709
|
-
* Emitted when a delta is added to a reasoning summary text.
|
|
1710
|
-
*
|
|
1711
|
-
* @since 1.0.0
|
|
1712
|
-
* @category Schemas
|
|
1713
|
-
*/
|
|
1714
|
-
export declare class ResponseReasoningSummaryTextDeltaEvent extends ResponseReasoningSummaryTextDeltaEvent_base {
|
|
1715
|
-
}
|
|
1716
|
-
declare const ResponseReasoningSummaryTextDoneEvent_base: Schema.Class<ResponseReasoningSummaryTextDoneEvent, {
|
|
1717
|
-
/**
|
|
1718
|
-
* The type of the event. Always `"response.reasoning_summary_text.done"`.
|
|
1719
|
-
*/
|
|
1720
|
-
type: Schema.Literal<["response.reasoning_summary_text.done"]>;
|
|
1721
|
-
/**
|
|
1722
|
-
* The sequence number for this event.
|
|
1723
|
-
*/
|
|
1724
|
-
sequence_number: typeof Schema.Int;
|
|
1725
|
-
/**
|
|
1726
|
-
* The index of the summary part within the reasoning summary.
|
|
1727
|
-
*/
|
|
1728
|
-
summary_index: typeof Schema.Int;
|
|
1729
|
-
/**
|
|
1730
|
-
* The index of the output item this summary text is associated with.
|
|
1731
|
-
*/
|
|
1732
|
-
output_index: typeof Schema.Int;
|
|
1733
|
-
/**
|
|
1734
|
-
* The ID of the item this summary text is associated with.
|
|
1735
|
-
*/
|
|
1736
|
-
item_id: typeof Schema.String;
|
|
1737
|
-
/**
|
|
1738
|
-
* The full text of the completed reasoning summary.
|
|
1739
|
-
*/
|
|
1740
|
-
text: typeof Schema.String;
|
|
1741
|
-
}, Schema.Struct.Encoded<{
|
|
1742
|
-
/**
|
|
1743
|
-
* The type of the event. Always `"response.reasoning_summary_text.done"`.
|
|
1744
|
-
*/
|
|
1745
|
-
type: Schema.Literal<["response.reasoning_summary_text.done"]>;
|
|
1746
|
-
/**
|
|
1747
|
-
* The sequence number for this event.
|
|
1748
|
-
*/
|
|
1749
|
-
sequence_number: typeof Schema.Int;
|
|
1750
|
-
/**
|
|
1751
|
-
* The index of the summary part within the reasoning summary.
|
|
1752
|
-
*/
|
|
1753
|
-
summary_index: typeof Schema.Int;
|
|
1754
|
-
/**
|
|
1755
|
-
* The index of the output item this summary text is associated with.
|
|
1756
|
-
*/
|
|
1757
|
-
output_index: typeof Schema.Int;
|
|
1758
|
-
/**
|
|
1759
|
-
* The ID of the item this summary text is associated with.
|
|
1760
|
-
*/
|
|
1761
|
-
item_id: typeof Schema.String;
|
|
1762
|
-
/**
|
|
1763
|
-
* The full text of the completed reasoning summary.
|
|
1764
|
-
*/
|
|
1765
|
-
text: typeof Schema.String;
|
|
1766
|
-
}>, never, {
|
|
1767
|
-
readonly type: "response.reasoning_summary_text.done";
|
|
1768
|
-
} & {
|
|
1769
|
-
readonly text: string;
|
|
1770
|
-
} & {
|
|
1771
|
-
readonly sequence_number: number;
|
|
1772
|
-
} & {
|
|
1773
|
-
readonly output_index: number;
|
|
1774
|
-
} & {
|
|
1775
|
-
readonly item_id: string;
|
|
1776
|
-
} & {
|
|
1777
|
-
readonly summary_index: number;
|
|
1778
|
-
}, {}, {}>;
|
|
1779
|
-
/**
|
|
1780
|
-
* Emitted when a reasoning summary text is completed.
|
|
1781
|
-
*
|
|
1782
|
-
* @since 1.0.0
|
|
1783
|
-
* @category Schemas
|
|
1784
|
-
*/
|
|
1785
|
-
export declare class ResponseReasoningSummaryTextDoneEvent extends ResponseReasoningSummaryTextDoneEvent_base {
|
|
1786
|
-
}
|
|
1787
|
-
declare const ResponseReasoningTextDeltaEvent_base: Schema.Class<ResponseReasoningTextDeltaEvent, {
|
|
1788
|
-
/**
|
|
1789
|
-
* The type of the event. Always `"response.reasoning_text.delta"`.
|
|
1790
|
-
*/
|
|
1791
|
-
type: Schema.Literal<["response.reasoning_text.delta"]>;
|
|
1792
|
-
/**
|
|
1793
|
-
* The sequence number for this event.
|
|
1794
|
-
*/
|
|
1795
|
-
sequence_number: typeof Schema.Int;
|
|
1796
|
-
/**
|
|
1797
|
-
* The index of the reasoning content part this delta is associated with.
|
|
1798
|
-
*/
|
|
1799
|
-
content_index: typeof Schema.Int;
|
|
1800
|
-
/**
|
|
1801
|
-
* The index of the output item this reasoning text delta is associated with.
|
|
1802
|
-
*/
|
|
1803
|
-
output_index: typeof Schema.Int;
|
|
1804
|
-
/**
|
|
1805
|
-
* The ID of the item this reasoning text delta is associated with.
|
|
1806
|
-
*/
|
|
1807
|
-
item_id: typeof Schema.String;
|
|
1808
|
-
/**
|
|
1809
|
-
* The text delta that was added to the reasoning content.
|
|
1810
|
-
*/
|
|
1811
|
-
delta: typeof Schema.String;
|
|
1812
|
-
}, Schema.Struct.Encoded<{
|
|
1813
|
-
/**
|
|
1814
|
-
* The type of the event. Always `"response.reasoning_text.delta"`.
|
|
1815
|
-
*/
|
|
1816
|
-
type: Schema.Literal<["response.reasoning_text.delta"]>;
|
|
1817
|
-
/**
|
|
1818
|
-
* The sequence number for this event.
|
|
1819
|
-
*/
|
|
1820
|
-
sequence_number: typeof Schema.Int;
|
|
1821
|
-
/**
|
|
1822
|
-
* The index of the reasoning content part this delta is associated with.
|
|
1823
|
-
*/
|
|
1824
|
-
content_index: typeof Schema.Int;
|
|
1825
|
-
/**
|
|
1826
|
-
* The index of the output item this reasoning text delta is associated with.
|
|
1827
|
-
*/
|
|
1828
|
-
output_index: typeof Schema.Int;
|
|
1829
|
-
/**
|
|
1830
|
-
* The ID of the item this reasoning text delta is associated with.
|
|
1831
|
-
*/
|
|
1832
|
-
item_id: typeof Schema.String;
|
|
1833
|
-
/**
|
|
1834
|
-
* The text delta that was added to the reasoning content.
|
|
1835
|
-
*/
|
|
1836
|
-
delta: typeof Schema.String;
|
|
1837
|
-
}>, never, {
|
|
1838
|
-
readonly type: "response.reasoning_text.delta";
|
|
1839
|
-
} & {
|
|
1840
|
-
readonly sequence_number: number;
|
|
1841
|
-
} & {
|
|
1842
|
-
readonly output_index: number;
|
|
1843
|
-
} & {
|
|
1844
|
-
readonly content_index: number;
|
|
1845
|
-
} & {
|
|
1846
|
-
readonly item_id: string;
|
|
1847
|
-
} & {
|
|
1848
|
-
readonly delta: string;
|
|
1849
|
-
}, {}, {}>;
|
|
1850
|
-
/**
|
|
1851
|
-
* Emitted when a delta is added to a reasoning text.
|
|
1852
|
-
*
|
|
1853
|
-
* @since 1.0.0
|
|
1854
|
-
* @category Schemas
|
|
1855
|
-
*/
|
|
1856
|
-
export declare class ResponseReasoningTextDeltaEvent extends ResponseReasoningTextDeltaEvent_base {
|
|
1857
|
-
}
|
|
1858
|
-
declare const ResponseReasoningTextDoneEvent_base: Schema.Class<ResponseReasoningTextDoneEvent, {
|
|
1859
|
-
/**
|
|
1860
|
-
* The type of the event. Always `"response.reasoning_text.done"`.
|
|
1861
|
-
*/
|
|
1862
|
-
type: Schema.Literal<["response.reasoning_text.done"]>;
|
|
1863
|
-
/**
|
|
1864
|
-
* The sequence number for this event.
|
|
1865
|
-
*/
|
|
1866
|
-
sequence_number: typeof Schema.Int;
|
|
1867
|
-
/**
|
|
1868
|
-
* The index of the reasoning content part.
|
|
1869
|
-
*/
|
|
1870
|
-
content_index: typeof Schema.Int;
|
|
1871
|
-
/**
|
|
1872
|
-
* The index of the output item this reasoning text is associated with.
|
|
1873
|
-
*/
|
|
1874
|
-
output_index: typeof Schema.Int;
|
|
1875
|
-
/**
|
|
1876
|
-
* The ID of the item this reasoning text is associated with.
|
|
1877
|
-
*/
|
|
1878
|
-
item_id: typeof Schema.String;
|
|
1879
|
-
/**
|
|
1880
|
-
* The full text of the completed reasoning content.
|
|
1881
|
-
*/
|
|
1882
|
-
text: typeof Schema.String;
|
|
1883
|
-
}, Schema.Struct.Encoded<{
|
|
1884
|
-
/**
|
|
1885
|
-
* The type of the event. Always `"response.reasoning_text.done"`.
|
|
1886
|
-
*/
|
|
1887
|
-
type: Schema.Literal<["response.reasoning_text.done"]>;
|
|
1888
|
-
/**
|
|
1889
|
-
* The sequence number for this event.
|
|
1890
|
-
*/
|
|
1891
|
-
sequence_number: typeof Schema.Int;
|
|
1892
|
-
/**
|
|
1893
|
-
* The index of the reasoning content part.
|
|
1894
|
-
*/
|
|
1895
|
-
content_index: typeof Schema.Int;
|
|
1896
|
-
/**
|
|
1897
|
-
* The index of the output item this reasoning text is associated with.
|
|
1898
|
-
*/
|
|
1899
|
-
output_index: typeof Schema.Int;
|
|
1900
|
-
/**
|
|
1901
|
-
* The ID of the item this reasoning text is associated with.
|
|
1902
|
-
*/
|
|
1903
|
-
item_id: typeof Schema.String;
|
|
1904
|
-
/**
|
|
1905
|
-
* The full text of the completed reasoning content.
|
|
1906
|
-
*/
|
|
1907
|
-
text: typeof Schema.String;
|
|
1908
|
-
}>, never, {
|
|
1909
|
-
readonly type: "response.reasoning_text.done";
|
|
1910
|
-
} & {
|
|
1911
|
-
readonly text: string;
|
|
1912
|
-
} & {
|
|
1913
|
-
readonly sequence_number: number;
|
|
1914
|
-
} & {
|
|
1915
|
-
readonly output_index: number;
|
|
1916
|
-
} & {
|
|
1917
|
-
readonly content_index: number;
|
|
1918
|
-
} & {
|
|
1919
|
-
readonly item_id: string;
|
|
1920
|
-
}, {}, {}>;
|
|
1921
|
-
/**
|
|
1922
|
-
* Emitted when a reasoning text is completed.
|
|
1923
|
-
*
|
|
1924
|
-
* @since 1.0.0
|
|
1925
|
-
* @category Schemas
|
|
1926
|
-
*/
|
|
1927
|
-
export declare class ResponseReasoningTextDoneEvent extends ResponseReasoningTextDoneEvent_base {
|
|
1928
|
-
}
|
|
1929
|
-
declare const ResponseImageGenerationCallInProgressEvent_base: Schema.Class<ResponseImageGenerationCallInProgressEvent, {
|
|
1930
|
-
/**
|
|
1931
|
-
* The type of the event. Always `"response.image_generation_call.in_progress"`.
|
|
1932
|
-
*/
|
|
1933
|
-
type: Schema.Literal<["response.image_generation_call.in_progress"]>;
|
|
1934
|
-
/**
|
|
1935
|
-
* The sequence number for this event.
|
|
1936
|
-
*/
|
|
1937
|
-
sequence_number: typeof Schema.Int;
|
|
1938
|
-
/**
|
|
1939
|
-
* The index of the output item in the response's output array.
|
|
1940
|
-
*/
|
|
1941
|
-
output_index: typeof Schema.Int;
|
|
1942
|
-
/**
|
|
1943
|
-
* The unique identifier of the image generation item being processed.
|
|
1944
|
-
*/
|
|
1945
|
-
item_id: typeof Schema.String;
|
|
1946
|
-
}, Schema.Struct.Encoded<{
|
|
1947
|
-
/**
|
|
1948
|
-
* The type of the event. Always `"response.image_generation_call.in_progress"`.
|
|
1949
|
-
*/
|
|
1950
|
-
type: Schema.Literal<["response.image_generation_call.in_progress"]>;
|
|
1951
|
-
/**
|
|
1952
|
-
* The sequence number for this event.
|
|
1953
|
-
*/
|
|
1954
|
-
sequence_number: typeof Schema.Int;
|
|
1955
|
-
/**
|
|
1956
|
-
* The index of the output item in the response's output array.
|
|
1957
|
-
*/
|
|
1958
|
-
output_index: typeof Schema.Int;
|
|
1959
|
-
/**
|
|
1960
|
-
* The unique identifier of the image generation item being processed.
|
|
1961
|
-
*/
|
|
1962
|
-
item_id: typeof Schema.String;
|
|
1963
|
-
}>, never, {
|
|
1964
|
-
readonly type: "response.image_generation_call.in_progress";
|
|
1965
|
-
} & {
|
|
1966
|
-
readonly sequence_number: number;
|
|
1967
|
-
} & {
|
|
1968
|
-
readonly output_index: number;
|
|
1969
|
-
} & {
|
|
1970
|
-
readonly item_id: string;
|
|
1971
|
-
}, {}, {}>;
|
|
1972
|
-
/**
|
|
1973
|
-
* Emitted when an image generation tool call is in progress.
|
|
1974
|
-
*
|
|
1975
|
-
* @since 1.0.0
|
|
1976
|
-
* @category Schemas
|
|
1977
|
-
*/
|
|
1978
|
-
export declare class ResponseImageGenerationCallInProgressEvent extends ResponseImageGenerationCallInProgressEvent_base {
|
|
1979
|
-
}
|
|
1980
|
-
declare const ResponseImageGenerationCallGeneratingEvent_base: Schema.Class<ResponseImageGenerationCallGeneratingEvent, {
|
|
1981
|
-
/**
|
|
1982
|
-
* The type of the event. Always `"response.image_generation_call.generating"`.
|
|
1983
|
-
*/
|
|
1984
|
-
type: Schema.Literal<["response.image_generation_call.generating"]>;
|
|
1985
|
-
/**
|
|
1986
|
-
* The sequence number for this event.
|
|
1987
|
-
*/
|
|
1988
|
-
sequence_number: typeof Schema.Int;
|
|
1989
|
-
/**
|
|
1990
|
-
* The index of the output item in the response's output array.
|
|
1991
|
-
*/
|
|
1992
|
-
output_index: typeof Schema.Int;
|
|
1993
|
-
/**
|
|
1994
|
-
* The unique identifier of the image generation item being processed.
|
|
1995
|
-
*/
|
|
1996
|
-
item_id: typeof Schema.String;
|
|
1997
|
-
}, Schema.Struct.Encoded<{
|
|
1998
|
-
/**
|
|
1999
|
-
* The type of the event. Always `"response.image_generation_call.generating"`.
|
|
2000
|
-
*/
|
|
2001
|
-
type: Schema.Literal<["response.image_generation_call.generating"]>;
|
|
2002
|
-
/**
|
|
2003
|
-
* The sequence number for this event.
|
|
2004
|
-
*/
|
|
2005
|
-
sequence_number: typeof Schema.Int;
|
|
2006
|
-
/**
|
|
2007
|
-
* The index of the output item in the response's output array.
|
|
2008
|
-
*/
|
|
2009
|
-
output_index: typeof Schema.Int;
|
|
2010
|
-
/**
|
|
2011
|
-
* The unique identifier of the image generation item being processed.
|
|
2012
|
-
*/
|
|
2013
|
-
item_id: typeof Schema.String;
|
|
2014
|
-
}>, never, {
|
|
2015
|
-
readonly type: "response.image_generation_call.generating";
|
|
2016
|
-
} & {
|
|
2017
|
-
readonly sequence_number: number;
|
|
2018
|
-
} & {
|
|
2019
|
-
readonly output_index: number;
|
|
2020
|
-
} & {
|
|
2021
|
-
readonly item_id: string;
|
|
2022
|
-
}, {}, {}>;
|
|
2023
|
-
/**
|
|
2024
|
-
* Emitted when an image generation tool call is actively generating an image
|
|
2025
|
-
* (intermediate state).
|
|
2026
|
-
*
|
|
2027
|
-
* @since 1.0.0
|
|
2028
|
-
* @category Schemas
|
|
2029
|
-
*/
|
|
2030
|
-
export declare class ResponseImageGenerationCallGeneratingEvent extends ResponseImageGenerationCallGeneratingEvent_base {
|
|
2031
|
-
}
|
|
2032
|
-
declare const ResponseImageGenerationCallPartialImageEvent_base: Schema.Class<ResponseImageGenerationCallPartialImageEvent, {
|
|
2033
|
-
/**
|
|
2034
|
-
* The type of the event. Always `"response.image_generation_call.partial_image"`.
|
|
2035
|
-
*/
|
|
2036
|
-
type: Schema.Literal<["response.image_generation_call.partial_image"]>;
|
|
2037
|
-
/**
|
|
2038
|
-
* The sequence number for this event.
|
|
2039
|
-
*/
|
|
2040
|
-
sequence_number: typeof Schema.Int;
|
|
2041
|
-
/**
|
|
2042
|
-
* The index of the output item in the response's output array.
|
|
2043
|
-
*/
|
|
2044
|
-
output_index: typeof Schema.Int;
|
|
2045
|
-
/**
|
|
2046
|
-
* The unique identifier of the image generation item being processed.
|
|
2047
|
-
*/
|
|
2048
|
-
item_id: typeof Schema.String;
|
|
2049
|
-
/**
|
|
2050
|
-
* `0`-based index for the partial image (backend is `1`-based, but this is
|
|
2051
|
-
* `0`-based for the user).
|
|
2052
|
-
*/
|
|
2053
|
-
partial_image_index: typeof Schema.Int;
|
|
2054
|
-
/**
|
|
2055
|
-
* Base64-encoded partial image data, suitable for rendering as an image.
|
|
2056
|
-
*/
|
|
2057
|
-
partial_image_b64: typeof Schema.String;
|
|
2058
|
-
}, Schema.Struct.Encoded<{
|
|
2059
|
-
/**
|
|
2060
|
-
* The type of the event. Always `"response.image_generation_call.partial_image"`.
|
|
2061
|
-
*/
|
|
2062
|
-
type: Schema.Literal<["response.image_generation_call.partial_image"]>;
|
|
2063
|
-
/**
|
|
2064
|
-
* The sequence number for this event.
|
|
2065
|
-
*/
|
|
2066
|
-
sequence_number: typeof Schema.Int;
|
|
2067
|
-
/**
|
|
2068
|
-
* The index of the output item in the response's output array.
|
|
2069
|
-
*/
|
|
2070
|
-
output_index: typeof Schema.Int;
|
|
2071
|
-
/**
|
|
2072
|
-
* The unique identifier of the image generation item being processed.
|
|
2073
|
-
*/
|
|
2074
|
-
item_id: typeof Schema.String;
|
|
2075
|
-
/**
|
|
2076
|
-
* `0`-based index for the partial image (backend is `1`-based, but this is
|
|
2077
|
-
* `0`-based for the user).
|
|
2078
|
-
*/
|
|
2079
|
-
partial_image_index: typeof Schema.Int;
|
|
2080
|
-
/**
|
|
2081
|
-
* Base64-encoded partial image data, suitable for rendering as an image.
|
|
2082
|
-
*/
|
|
2083
|
-
partial_image_b64: typeof Schema.String;
|
|
2084
|
-
}>, never, {
|
|
2085
|
-
readonly type: "response.image_generation_call.partial_image";
|
|
2086
|
-
} & {
|
|
2087
|
-
readonly sequence_number: number;
|
|
2088
|
-
} & {
|
|
2089
|
-
readonly output_index: number;
|
|
2090
|
-
} & {
|
|
2091
|
-
readonly item_id: string;
|
|
2092
|
-
} & {
|
|
2093
|
-
readonly partial_image_index: number;
|
|
2094
|
-
} & {
|
|
2095
|
-
readonly partial_image_b64: string;
|
|
2096
|
-
}, {}, {}>;
|
|
2097
|
-
/**
|
|
2098
|
-
* Emitted when a partial image is available during image generation streaming.
|
|
2099
|
-
*
|
|
2100
|
-
* @since 1.0.0
|
|
2101
|
-
* @category Schemas
|
|
2102
|
-
*/
|
|
2103
|
-
export declare class ResponseImageGenerationCallPartialImageEvent extends ResponseImageGenerationCallPartialImageEvent_base {
|
|
2104
|
-
}
|
|
2105
|
-
declare const ResponseImageGenerationCallCompletedEvent_base: Schema.Class<ResponseImageGenerationCallCompletedEvent, {
|
|
2106
|
-
/**
|
|
2107
|
-
* The type of the event. Always `"response.image_generation_call.completed"`.
|
|
2108
|
-
*/
|
|
2109
|
-
type: Schema.Literal<["response.image_generation_call.completed"]>;
|
|
2110
|
-
/**
|
|
2111
|
-
* The sequence number for this event.
|
|
2112
|
-
*/
|
|
2113
|
-
sequence_number: typeof Schema.Int;
|
|
2114
|
-
/**
|
|
2115
|
-
* The index of the output item in the response's output array.
|
|
2116
|
-
*/
|
|
2117
|
-
output_index: typeof Schema.Int;
|
|
2118
|
-
/**
|
|
2119
|
-
* The unique identifier of the image generation item being processed.
|
|
2120
|
-
*/
|
|
2121
|
-
item_id: typeof Schema.String;
|
|
2122
|
-
}, Schema.Struct.Encoded<{
|
|
2123
|
-
/**
|
|
2124
|
-
* The type of the event. Always `"response.image_generation_call.completed"`.
|
|
2125
|
-
*/
|
|
2126
|
-
type: Schema.Literal<["response.image_generation_call.completed"]>;
|
|
2127
|
-
/**
|
|
2128
|
-
* The sequence number for this event.
|
|
2129
|
-
*/
|
|
2130
|
-
sequence_number: typeof Schema.Int;
|
|
2131
|
-
/**
|
|
2132
|
-
* The index of the output item in the response's output array.
|
|
2133
|
-
*/
|
|
2134
|
-
output_index: typeof Schema.Int;
|
|
2135
|
-
/**
|
|
2136
|
-
* The unique identifier of the image generation item being processed.
|
|
2137
|
-
*/
|
|
2138
|
-
item_id: typeof Schema.String;
|
|
2139
|
-
}>, never, {
|
|
2140
|
-
readonly type: "response.image_generation_call.completed";
|
|
2141
|
-
} & {
|
|
2142
|
-
readonly sequence_number: number;
|
|
2143
|
-
} & {
|
|
2144
|
-
readonly output_index: number;
|
|
2145
|
-
} & {
|
|
2146
|
-
readonly item_id: string;
|
|
2147
|
-
}, {}, {}>;
|
|
2148
|
-
/**
|
|
2149
|
-
* Emitted when an image generation tool call has completed and the final image
|
|
2150
|
-
* is available.
|
|
2151
|
-
*
|
|
2152
|
-
* @since 1.0.0
|
|
2153
|
-
* @category Schemas
|
|
2154
|
-
*/
|
|
2155
|
-
export declare class ResponseImageGenerationCallCompletedEvent extends ResponseImageGenerationCallCompletedEvent_base {
|
|
2156
|
-
}
|
|
2157
|
-
declare const ResponseMcpCallArgumentsDeltaEvent_base: Schema.Class<ResponseMcpCallArgumentsDeltaEvent, {
|
|
2158
|
-
/**
|
|
2159
|
-
* The type of the event. Always `"response.mcp_call_arguments.delta"`.
|
|
2160
|
-
*/
|
|
2161
|
-
type: Schema.Literal<["response.mcp_call_arguments.delta"]>;
|
|
2162
|
-
/**
|
|
2163
|
-
* The sequence number for this event.
|
|
2164
|
-
*/
|
|
2165
|
-
sequence_number: typeof Schema.Int;
|
|
2166
|
-
/**
|
|
2167
|
-
* The index of the output item in the response's output array.
|
|
2168
|
-
*/
|
|
2169
|
-
output_index: typeof Schema.Int;
|
|
2170
|
-
/**
|
|
2171
|
-
* The unique identifier of the MCP tool call item being processed.
|
|
2172
|
-
*/
|
|
2173
|
-
item_id: typeof Schema.String;
|
|
2174
|
-
/**
|
|
2175
|
-
* A JSON string containing the partial update to the arguments for the MCP
|
|
2176
|
-
* tool call.
|
|
2177
|
-
*/
|
|
2178
|
-
delta: typeof Schema.String;
|
|
2179
|
-
}, Schema.Struct.Encoded<{
|
|
2180
|
-
/**
|
|
2181
|
-
* The type of the event. Always `"response.mcp_call_arguments.delta"`.
|
|
2182
|
-
*/
|
|
2183
|
-
type: Schema.Literal<["response.mcp_call_arguments.delta"]>;
|
|
2184
|
-
/**
|
|
2185
|
-
* The sequence number for this event.
|
|
2186
|
-
*/
|
|
2187
|
-
sequence_number: typeof Schema.Int;
|
|
2188
|
-
/**
|
|
2189
|
-
* The index of the output item in the response's output array.
|
|
2190
|
-
*/
|
|
2191
|
-
output_index: typeof Schema.Int;
|
|
2192
|
-
/**
|
|
2193
|
-
* The unique identifier of the MCP tool call item being processed.
|
|
2194
|
-
*/
|
|
2195
|
-
item_id: typeof Schema.String;
|
|
2196
|
-
/**
|
|
2197
|
-
* A JSON string containing the partial update to the arguments for the MCP
|
|
2198
|
-
* tool call.
|
|
2199
|
-
*/
|
|
2200
|
-
delta: typeof Schema.String;
|
|
2201
|
-
}>, never, {
|
|
2202
|
-
readonly type: "response.mcp_call_arguments.delta";
|
|
2203
|
-
} & {
|
|
2204
|
-
readonly sequence_number: number;
|
|
2205
|
-
} & {
|
|
2206
|
-
readonly output_index: number;
|
|
2207
|
-
} & {
|
|
2208
|
-
readonly item_id: string;
|
|
2209
|
-
} & {
|
|
2210
|
-
readonly delta: string;
|
|
2211
|
-
}, {}, {}>;
|
|
2212
|
-
/**
|
|
2213
|
-
* Emitted when there is a delta (partial update) to the arguments of an MCP
|
|
2214
|
-
* tool call.
|
|
2215
|
-
*
|
|
2216
|
-
* @since 1.0.0
|
|
2217
|
-
* @category Schemas
|
|
2218
|
-
*/
|
|
2219
|
-
export declare class ResponseMcpCallArgumentsDeltaEvent extends ResponseMcpCallArgumentsDeltaEvent_base {
|
|
2220
|
-
}
|
|
2221
|
-
declare const ResponseMcpCallArgumentsDoneEvent_base: Schema.Class<ResponseMcpCallArgumentsDoneEvent, {
|
|
2222
|
-
/**
|
|
2223
|
-
* The type of the event. Always `"response.mcp_call_arguments.done"`.
|
|
2224
|
-
*/
|
|
2225
|
-
type: Schema.Literal<["response.mcp_call_arguments.done"]>;
|
|
2226
|
-
/**
|
|
2227
|
-
* The sequence number for this event.
|
|
2228
|
-
*/
|
|
2229
|
-
sequence_number: typeof Schema.Int;
|
|
2230
|
-
/**
|
|
2231
|
-
* The index of the output item in the response's output array.
|
|
2232
|
-
*/
|
|
2233
|
-
output_index: typeof Schema.Int;
|
|
2234
|
-
/**
|
|
2235
|
-
* The unique identifier of the MCP tool call item being processed.
|
|
2236
|
-
*/
|
|
2237
|
-
item_id: typeof Schema.String;
|
|
2238
|
-
/**
|
|
2239
|
-
* A JSON string containing the finalized arguments for the MCP tool call.
|
|
2240
|
-
*/
|
|
2241
|
-
arguments: typeof Schema.String;
|
|
2242
|
-
}, Schema.Struct.Encoded<{
|
|
2243
|
-
/**
|
|
2244
|
-
* The type of the event. Always `"response.mcp_call_arguments.done"`.
|
|
2245
|
-
*/
|
|
2246
|
-
type: Schema.Literal<["response.mcp_call_arguments.done"]>;
|
|
2247
|
-
/**
|
|
2248
|
-
* The sequence number for this event.
|
|
2249
|
-
*/
|
|
2250
|
-
sequence_number: typeof Schema.Int;
|
|
2251
|
-
/**
|
|
2252
|
-
* The index of the output item in the response's output array.
|
|
2253
|
-
*/
|
|
2254
|
-
output_index: typeof Schema.Int;
|
|
2255
|
-
/**
|
|
2256
|
-
* The unique identifier of the MCP tool call item being processed.
|
|
2257
|
-
*/
|
|
2258
|
-
item_id: typeof Schema.String;
|
|
2259
|
-
/**
|
|
2260
|
-
* A JSON string containing the finalized arguments for the MCP tool call.
|
|
2261
|
-
*/
|
|
2262
|
-
arguments: typeof Schema.String;
|
|
2263
|
-
}>, never, {
|
|
2264
|
-
readonly type: "response.mcp_call_arguments.done";
|
|
2265
|
-
} & {
|
|
2266
|
-
readonly arguments: string;
|
|
2267
|
-
} & {
|
|
2268
|
-
readonly sequence_number: number;
|
|
2269
|
-
} & {
|
|
2270
|
-
readonly output_index: number;
|
|
2271
|
-
} & {
|
|
2272
|
-
readonly item_id: string;
|
|
2273
|
-
}, {}, {}>;
|
|
2274
|
-
/**
|
|
2275
|
-
* Emitted when the arguments for an MCP tool call are finalized.
|
|
2276
|
-
*
|
|
2277
|
-
* @since 1.0.0
|
|
2278
|
-
* @category Schemas
|
|
2279
|
-
*/
|
|
2280
|
-
export declare class ResponseMcpCallArgumentsDoneEvent extends ResponseMcpCallArgumentsDoneEvent_base {
|
|
2281
|
-
}
|
|
2282
|
-
declare const ResponseMcpCallInProgressEvent_base: Schema.Class<ResponseMcpCallInProgressEvent, {
|
|
2283
|
-
/**
|
|
2284
|
-
* The type of the event. Always `"response.mcp_call.in_progress"`.
|
|
2285
|
-
*/
|
|
2286
|
-
type: Schema.Literal<["response.mcp_call.in_progress"]>;
|
|
2287
|
-
/**
|
|
2288
|
-
* The sequence number for this event.
|
|
2289
|
-
*/
|
|
2290
|
-
sequence_number: typeof Schema.Int;
|
|
2291
|
-
/**
|
|
2292
|
-
* The index of the output item in the response's output array.
|
|
2293
|
-
*/
|
|
2294
|
-
output_index: typeof Schema.Int;
|
|
2295
|
-
/**
|
|
2296
|
-
* The unique identifier of the MCP tool call item being processed.
|
|
2297
|
-
*/
|
|
2298
|
-
item_id: typeof Schema.String;
|
|
2299
|
-
}, Schema.Struct.Encoded<{
|
|
2300
|
-
/**
|
|
2301
|
-
* The type of the event. Always `"response.mcp_call.in_progress"`.
|
|
2302
|
-
*/
|
|
2303
|
-
type: Schema.Literal<["response.mcp_call.in_progress"]>;
|
|
2304
|
-
/**
|
|
2305
|
-
* The sequence number for this event.
|
|
2306
|
-
*/
|
|
2307
|
-
sequence_number: typeof Schema.Int;
|
|
2308
|
-
/**
|
|
2309
|
-
* The index of the output item in the response's output array.
|
|
2310
|
-
*/
|
|
2311
|
-
output_index: typeof Schema.Int;
|
|
2312
|
-
/**
|
|
2313
|
-
* The unique identifier of the MCP tool call item being processed.
|
|
2314
|
-
*/
|
|
2315
|
-
item_id: typeof Schema.String;
|
|
2316
|
-
}>, never, {
|
|
2317
|
-
readonly type: "response.mcp_call.in_progress";
|
|
2318
|
-
} & {
|
|
2319
|
-
readonly sequence_number: number;
|
|
2320
|
-
} & {
|
|
2321
|
-
readonly output_index: number;
|
|
2322
|
-
} & {
|
|
2323
|
-
readonly item_id: string;
|
|
2324
|
-
}, {}, {}>;
|
|
2325
|
-
/**
|
|
2326
|
-
* Emitted when an MCP tool call is in progress.
|
|
2327
|
-
*
|
|
2328
|
-
* @since 1.0.0
|
|
2329
|
-
* @category Schemas
|
|
2330
|
-
*/
|
|
2331
|
-
export declare class ResponseMcpCallInProgressEvent extends ResponseMcpCallInProgressEvent_base {
|
|
2332
|
-
}
|
|
2333
|
-
declare const ResponseMcpCallCompletedEvent_base: Schema.Class<ResponseMcpCallCompletedEvent, {
|
|
2334
|
-
/**
|
|
2335
|
-
* The type of the event. Always `"response.mcp_call.completed"`.
|
|
2336
|
-
*/
|
|
2337
|
-
type: Schema.Literal<["response.mcp_call.completed"]>;
|
|
2338
|
-
/**
|
|
2339
|
-
* The sequence number for this event.
|
|
2340
|
-
*/
|
|
2341
|
-
sequence_number: typeof Schema.Int;
|
|
2342
|
-
/**
|
|
2343
|
-
* The index of the output item that completed.
|
|
2344
|
-
*/
|
|
2345
|
-
output_index: typeof Schema.Int;
|
|
2346
|
-
/**
|
|
2347
|
-
* The ID of the MCP tool call item that completed.
|
|
2348
|
-
*/
|
|
2349
|
-
item_id: typeof Schema.String;
|
|
2350
|
-
}, Schema.Struct.Encoded<{
|
|
2351
|
-
/**
|
|
2352
|
-
* The type of the event. Always `"response.mcp_call.completed"`.
|
|
2353
|
-
*/
|
|
2354
|
-
type: Schema.Literal<["response.mcp_call.completed"]>;
|
|
2355
|
-
/**
|
|
2356
|
-
* The sequence number for this event.
|
|
2357
|
-
*/
|
|
2358
|
-
sequence_number: typeof Schema.Int;
|
|
2359
|
-
/**
|
|
2360
|
-
* The index of the output item that completed.
|
|
2361
|
-
*/
|
|
2362
|
-
output_index: typeof Schema.Int;
|
|
2363
|
-
/**
|
|
2364
|
-
* The ID of the MCP tool call item that completed.
|
|
2365
|
-
*/
|
|
2366
|
-
item_id: typeof Schema.String;
|
|
2367
|
-
}>, never, {
|
|
2368
|
-
readonly type: "response.mcp_call.completed";
|
|
2369
|
-
} & {
|
|
2370
|
-
readonly sequence_number: number;
|
|
2371
|
-
} & {
|
|
2372
|
-
readonly output_index: number;
|
|
2373
|
-
} & {
|
|
2374
|
-
readonly item_id: string;
|
|
2375
|
-
}, {}, {}>;
|
|
2376
|
-
/**
|
|
2377
|
-
* Emitted when an MCP tool call has completed successfully.
|
|
2378
|
-
*
|
|
2379
|
-
* @since 1.0.0
|
|
2380
|
-
* @category Schemas
|
|
2381
|
-
*/
|
|
2382
|
-
export declare class ResponseMcpCallCompletedEvent extends ResponseMcpCallCompletedEvent_base {
|
|
2383
|
-
}
|
|
2384
|
-
declare const ResponseMcpCallFailedEvent_base: Schema.Class<ResponseMcpCallFailedEvent, {
|
|
2385
|
-
/**
|
|
2386
|
-
* The type of the event. Always `"response.mcp_call.failed"`.
|
|
2387
|
-
*/
|
|
2388
|
-
type: Schema.Literal<["response.mcp_call.failed"]>;
|
|
2389
|
-
/**
|
|
2390
|
-
* The sequence number for this event.
|
|
2391
|
-
*/
|
|
2392
|
-
sequence_number: typeof Schema.Int;
|
|
2393
|
-
/**
|
|
2394
|
-
* The index of the output item that failed.
|
|
2395
|
-
*/
|
|
2396
|
-
output_index: typeof Schema.Int;
|
|
2397
|
-
/**
|
|
2398
|
-
* The ID of the MCP tool call item that failed.
|
|
2399
|
-
*/
|
|
2400
|
-
item_id: typeof Schema.String;
|
|
2401
|
-
}, Schema.Struct.Encoded<{
|
|
2402
|
-
/**
|
|
2403
|
-
* The type of the event. Always `"response.mcp_call.failed"`.
|
|
2404
|
-
*/
|
|
2405
|
-
type: Schema.Literal<["response.mcp_call.failed"]>;
|
|
2406
|
-
/**
|
|
2407
|
-
* The sequence number for this event.
|
|
2408
|
-
*/
|
|
2409
|
-
sequence_number: typeof Schema.Int;
|
|
2410
|
-
/**
|
|
2411
|
-
* The index of the output item that failed.
|
|
2412
|
-
*/
|
|
2413
|
-
output_index: typeof Schema.Int;
|
|
2414
|
-
/**
|
|
2415
|
-
* The ID of the MCP tool call item that failed.
|
|
2416
|
-
*/
|
|
2417
|
-
item_id: typeof Schema.String;
|
|
2418
|
-
}>, never, {
|
|
2419
|
-
readonly type: "response.mcp_call.failed";
|
|
2420
|
-
} & {
|
|
2421
|
-
readonly sequence_number: number;
|
|
2422
|
-
} & {
|
|
2423
|
-
readonly output_index: number;
|
|
2424
|
-
} & {
|
|
2425
|
-
readonly item_id: string;
|
|
2426
|
-
}, {}, {}>;
|
|
2427
|
-
/**
|
|
2428
|
-
* Emitted when an MCP tool call has failed.
|
|
2429
|
-
*
|
|
2430
|
-
* @since 1.0.0
|
|
2431
|
-
* @category Schemas
|
|
2432
|
-
*/
|
|
2433
|
-
export declare class ResponseMcpCallFailedEvent extends ResponseMcpCallFailedEvent_base {
|
|
2434
|
-
}
|
|
2435
|
-
declare const ResponseMcpListToolsInProgressEvent_base: Schema.Class<ResponseMcpListToolsInProgressEvent, {
|
|
2436
|
-
/**
|
|
2437
|
-
* The type of the event. Always `"response.mcp_list_tools.in_progress"`.
|
|
2438
|
-
*/
|
|
2439
|
-
type: Schema.Literal<["response.mcp_list_tools.in_progress"]>;
|
|
2440
|
-
/**
|
|
2441
|
-
* The sequence number for this event.
|
|
2442
|
-
*/
|
|
2443
|
-
sequence_number: typeof Schema.Int;
|
|
2444
|
-
/**
|
|
2445
|
-
* The index of the output item that is being processed.
|
|
2446
|
-
*/
|
|
2447
|
-
output_index: typeof Schema.Int;
|
|
2448
|
-
/**
|
|
2449
|
-
* The ID of the MCP tool call item that is being processed.
|
|
2450
|
-
*/
|
|
2451
|
-
item_id: typeof Schema.String;
|
|
2452
|
-
}, Schema.Struct.Encoded<{
|
|
2453
|
-
/**
|
|
2454
|
-
* The type of the event. Always `"response.mcp_list_tools.in_progress"`.
|
|
2455
|
-
*/
|
|
2456
|
-
type: Schema.Literal<["response.mcp_list_tools.in_progress"]>;
|
|
2457
|
-
/**
|
|
2458
|
-
* The sequence number for this event.
|
|
2459
|
-
*/
|
|
2460
|
-
sequence_number: typeof Schema.Int;
|
|
2461
|
-
/**
|
|
2462
|
-
* The index of the output item that is being processed.
|
|
2463
|
-
*/
|
|
2464
|
-
output_index: typeof Schema.Int;
|
|
2465
|
-
/**
|
|
2466
|
-
* The ID of the MCP tool call item that is being processed.
|
|
2467
|
-
*/
|
|
2468
|
-
item_id: typeof Schema.String;
|
|
2469
|
-
}>, never, {
|
|
2470
|
-
readonly type: "response.mcp_list_tools.in_progress";
|
|
2471
|
-
} & {
|
|
2472
|
-
readonly sequence_number: number;
|
|
2473
|
-
} & {
|
|
2474
|
-
readonly output_index: number;
|
|
2475
|
-
} & {
|
|
2476
|
-
readonly item_id: string;
|
|
2477
|
-
}, {}, {}>;
|
|
2478
|
-
/**
|
|
2479
|
-
* Emitted when the system is in the process of retrieving the list of available
|
|
2480
|
-
* MCP tools.
|
|
2481
|
-
*
|
|
2482
|
-
* @since 1.0.0
|
|
2483
|
-
* @category Schemas
|
|
2484
|
-
*/
|
|
2485
|
-
export declare class ResponseMcpListToolsInProgressEvent extends ResponseMcpListToolsInProgressEvent_base {
|
|
2486
|
-
}
|
|
2487
|
-
declare const ResponseMcpListToolsCompletedEvent_base: Schema.Class<ResponseMcpListToolsCompletedEvent, {
|
|
2488
|
-
/**
|
|
2489
|
-
* The type of the event. Always `"response.mcp_list_tools.completed"`.
|
|
2490
|
-
*/
|
|
2491
|
-
type: Schema.Literal<["response.mcp_list_tools.completed"]>;
|
|
2492
|
-
/**
|
|
2493
|
-
* The sequence number for this event.
|
|
2494
|
-
*/
|
|
2495
|
-
sequence_number: typeof Schema.Int;
|
|
2496
|
-
/**
|
|
2497
|
-
* The index of the output item that was processed.
|
|
2498
|
-
*/
|
|
2499
|
-
output_index: typeof Schema.Int;
|
|
2500
|
-
/**
|
|
2501
|
-
* The ID of the MCP tool call item that produced this output.
|
|
2502
|
-
*/
|
|
2503
|
-
item_id: typeof Schema.String;
|
|
2504
|
-
}, Schema.Struct.Encoded<{
|
|
2505
|
-
/**
|
|
2506
|
-
* The type of the event. Always `"response.mcp_list_tools.completed"`.
|
|
2507
|
-
*/
|
|
2508
|
-
type: Schema.Literal<["response.mcp_list_tools.completed"]>;
|
|
2509
|
-
/**
|
|
2510
|
-
* The sequence number for this event.
|
|
2511
|
-
*/
|
|
2512
|
-
sequence_number: typeof Schema.Int;
|
|
2513
|
-
/**
|
|
2514
|
-
* The index of the output item that was processed.
|
|
2515
|
-
*/
|
|
2516
|
-
output_index: typeof Schema.Int;
|
|
2517
|
-
/**
|
|
2518
|
-
* The ID of the MCP tool call item that produced this output.
|
|
2519
|
-
*/
|
|
2520
|
-
item_id: typeof Schema.String;
|
|
2521
|
-
}>, never, {
|
|
2522
|
-
readonly type: "response.mcp_list_tools.completed";
|
|
2523
|
-
} & {
|
|
2524
|
-
readonly sequence_number: number;
|
|
2525
|
-
} & {
|
|
2526
|
-
readonly output_index: number;
|
|
2527
|
-
} & {
|
|
2528
|
-
readonly item_id: string;
|
|
2529
|
-
}, {}, {}>;
|
|
2530
|
-
/**
|
|
2531
|
-
* Emitted when the list of available MCP tools has been successfully retrieved.
|
|
2532
|
-
*
|
|
2533
|
-
* @since 1.0.0
|
|
2534
|
-
* @category Schemas
|
|
2535
|
-
*/
|
|
2536
|
-
export declare class ResponseMcpListToolsCompletedEvent extends ResponseMcpListToolsCompletedEvent_base {
|
|
2537
|
-
}
|
|
2538
|
-
declare const ResponseMcpListToolsFailedEvent_base: Schema.Class<ResponseMcpListToolsFailedEvent, {
|
|
2539
|
-
/**
|
|
2540
|
-
* The type of the event. Always `"response.mcp_list_tools.failed"`.
|
|
2541
|
-
*/
|
|
2542
|
-
type: Schema.Literal<["response.mcp_list_tools.failed"]>;
|
|
2543
|
-
/**
|
|
2544
|
-
* The sequence number for this event.
|
|
2545
|
-
*/
|
|
2546
|
-
sequence_number: typeof Schema.Int;
|
|
2547
|
-
/**
|
|
2548
|
-
* The index of the output item that failed.
|
|
2549
|
-
*/
|
|
2550
|
-
output_index: typeof Schema.Int;
|
|
2551
|
-
/**
|
|
2552
|
-
* The ID of the MCP tool call item that failed.
|
|
2553
|
-
*/
|
|
2554
|
-
item_id: typeof Schema.String;
|
|
2555
|
-
}, Schema.Struct.Encoded<{
|
|
2556
|
-
/**
|
|
2557
|
-
* The type of the event. Always `"response.mcp_list_tools.failed"`.
|
|
2558
|
-
*/
|
|
2559
|
-
type: Schema.Literal<["response.mcp_list_tools.failed"]>;
|
|
2560
|
-
/**
|
|
2561
|
-
* The sequence number for this event.
|
|
2562
|
-
*/
|
|
2563
|
-
sequence_number: typeof Schema.Int;
|
|
2564
|
-
/**
|
|
2565
|
-
* The index of the output item that failed.
|
|
2566
|
-
*/
|
|
2567
|
-
output_index: typeof Schema.Int;
|
|
2568
|
-
/**
|
|
2569
|
-
* The ID of the MCP tool call item that failed.
|
|
2570
|
-
*/
|
|
2571
|
-
item_id: typeof Schema.String;
|
|
2572
|
-
}>, never, {
|
|
2573
|
-
readonly type: "response.mcp_list_tools.failed";
|
|
2574
|
-
} & {
|
|
2575
|
-
readonly sequence_number: number;
|
|
2576
|
-
} & {
|
|
2577
|
-
readonly output_index: number;
|
|
2578
|
-
} & {
|
|
2579
|
-
readonly item_id: string;
|
|
2580
|
-
}, {}, {}>;
|
|
2581
|
-
/**
|
|
2582
|
-
* Emitted when the attempt to list available MCP tools has failed.
|
|
2583
|
-
*
|
|
2584
|
-
* @since 1.0.0
|
|
2585
|
-
* @category Schemas
|
|
2586
|
-
*/
|
|
2587
|
-
export declare class ResponseMcpListToolsFailedEvent extends ResponseMcpListToolsFailedEvent_base {
|
|
2588
|
-
}
|
|
2589
|
-
declare const ResponseCodeInterpreterCallInProgressEvent_base: Schema.Class<ResponseCodeInterpreterCallInProgressEvent, {
|
|
2590
|
-
/**
|
|
2591
|
-
* The type of the event. Always `"response.code_interpreter_call.in_progress"`.
|
|
2592
|
-
*/
|
|
2593
|
-
type: Schema.Literal<["response.code_interpreter_call.in_progress"]>;
|
|
2594
|
-
/**
|
|
2595
|
-
* The sequence number for this event.
|
|
2596
|
-
*/
|
|
2597
|
-
sequence_number: typeof Schema.Int;
|
|
2598
|
-
/**
|
|
2599
|
-
* The index of the output item in the response for which the code interpreter
|
|
2600
|
-
* call is in progress.
|
|
2601
|
-
*/
|
|
2602
|
-
output_index: typeof Schema.Int;
|
|
2603
|
-
/**
|
|
2604
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2605
|
-
*/
|
|
2606
|
-
item_id: typeof Schema.String;
|
|
2607
|
-
}, Schema.Struct.Encoded<{
|
|
2608
|
-
/**
|
|
2609
|
-
* The type of the event. Always `"response.code_interpreter_call.in_progress"`.
|
|
2610
|
-
*/
|
|
2611
|
-
type: Schema.Literal<["response.code_interpreter_call.in_progress"]>;
|
|
2612
|
-
/**
|
|
2613
|
-
* The sequence number for this event.
|
|
2614
|
-
*/
|
|
2615
|
-
sequence_number: typeof Schema.Int;
|
|
2616
|
-
/**
|
|
2617
|
-
* The index of the output item in the response for which the code interpreter
|
|
2618
|
-
* call is in progress.
|
|
2619
|
-
*/
|
|
2620
|
-
output_index: typeof Schema.Int;
|
|
2621
|
-
/**
|
|
2622
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2623
|
-
*/
|
|
2624
|
-
item_id: typeof Schema.String;
|
|
2625
|
-
}>, never, {
|
|
2626
|
-
readonly type: "response.code_interpreter_call.in_progress";
|
|
2627
|
-
} & {
|
|
2628
|
-
readonly sequence_number: number;
|
|
2629
|
-
} & {
|
|
2630
|
-
readonly output_index: number;
|
|
2631
|
-
} & {
|
|
2632
|
-
readonly item_id: string;
|
|
2633
|
-
}, {}, {}>;
|
|
2634
|
-
/**
|
|
2635
|
-
* Emitted when a code interpreter call is in progress.
|
|
2636
|
-
*
|
|
2637
|
-
* @since 1.0.0
|
|
2638
|
-
* @category Schemas
|
|
2639
|
-
*/
|
|
2640
|
-
export declare class ResponseCodeInterpreterCallInProgressEvent extends ResponseCodeInterpreterCallInProgressEvent_base {
|
|
2641
|
-
}
|
|
2642
|
-
declare const ResponseCodeInterpreterCallInterpretingEvent_base: Schema.Class<ResponseCodeInterpreterCallInterpretingEvent, {
|
|
2643
|
-
/**
|
|
2644
|
-
* The type of the event. Always `"response.code_interpreter_call.interpreting"`.
|
|
2645
|
-
*/
|
|
2646
|
-
type: Schema.Literal<["response.code_interpreter_call.interpreting"]>;
|
|
2647
|
-
/**
|
|
2648
|
-
* The sequence number for this event.
|
|
2649
|
-
*/
|
|
2650
|
-
sequence_number: typeof Schema.Int;
|
|
2651
|
-
/**
|
|
2652
|
-
* The index of the output item in the response for which the code
|
|
2653
|
-
* interpreter is interpreting code.
|
|
2654
|
-
*/
|
|
2655
|
-
output_index: typeof Schema.Int;
|
|
2656
|
-
/**
|
|
2657
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2658
|
-
*/
|
|
2659
|
-
item_id: typeof Schema.String;
|
|
2660
|
-
}, Schema.Struct.Encoded<{
|
|
2661
|
-
/**
|
|
2662
|
-
* The type of the event. Always `"response.code_interpreter_call.interpreting"`.
|
|
2663
|
-
*/
|
|
2664
|
-
type: Schema.Literal<["response.code_interpreter_call.interpreting"]>;
|
|
2665
|
-
/**
|
|
2666
|
-
* The sequence number for this event.
|
|
2667
|
-
*/
|
|
2668
|
-
sequence_number: typeof Schema.Int;
|
|
2669
|
-
/**
|
|
2670
|
-
* The index of the output item in the response for which the code
|
|
2671
|
-
* interpreter is interpreting code.
|
|
2672
|
-
*/
|
|
2673
|
-
output_index: typeof Schema.Int;
|
|
2674
|
-
/**
|
|
2675
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2676
|
-
*/
|
|
2677
|
-
item_id: typeof Schema.String;
|
|
2678
|
-
}>, never, {
|
|
2679
|
-
readonly type: "response.code_interpreter_call.interpreting";
|
|
2680
|
-
} & {
|
|
2681
|
-
readonly sequence_number: number;
|
|
2682
|
-
} & {
|
|
2683
|
-
readonly output_index: number;
|
|
2684
|
-
} & {
|
|
2685
|
-
readonly item_id: string;
|
|
2686
|
-
}, {}, {}>;
|
|
2687
|
-
/**
|
|
2688
|
-
* Emitted when the code interpreter is actively interpreting the code snippet.
|
|
2689
|
-
*
|
|
2690
|
-
* @since 1.0.0
|
|
2691
|
-
* @category Schemas
|
|
2692
|
-
*/
|
|
2693
|
-
export declare class ResponseCodeInterpreterCallInterpretingEvent extends ResponseCodeInterpreterCallInterpretingEvent_base {
|
|
2694
|
-
}
|
|
2695
|
-
declare const ResponseCodeInterpreterCallCompletedEvent_base: Schema.Class<ResponseCodeInterpreterCallCompletedEvent, {
|
|
2696
|
-
/**
|
|
2697
|
-
* The type of the event. Always `"response.code_interpreter_call.completed"`.
|
|
2698
|
-
*/
|
|
2699
|
-
type: Schema.Literal<["response.code_interpreter_call.completed"]>;
|
|
2700
|
-
/**
|
|
2701
|
-
* The sequence number for this event.
|
|
2702
|
-
*/
|
|
2703
|
-
sequence_number: typeof Schema.Int;
|
|
2704
|
-
/**
|
|
2705
|
-
* The index of the output item in the response for which the code interpreter
|
|
2706
|
-
* call is completed.
|
|
2707
|
-
*/
|
|
2708
|
-
output_index: typeof Schema.Int;
|
|
2709
|
-
/**
|
|
2710
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2711
|
-
*/
|
|
2712
|
-
item_id: typeof Schema.String;
|
|
2713
|
-
}, Schema.Struct.Encoded<{
|
|
2714
|
-
/**
|
|
2715
|
-
* The type of the event. Always `"response.code_interpreter_call.completed"`.
|
|
2716
|
-
*/
|
|
2717
|
-
type: Schema.Literal<["response.code_interpreter_call.completed"]>;
|
|
2718
|
-
/**
|
|
2719
|
-
* The sequence number for this event.
|
|
2720
|
-
*/
|
|
2721
|
-
sequence_number: typeof Schema.Int;
|
|
2722
|
-
/**
|
|
2723
|
-
* The index of the output item in the response for which the code interpreter
|
|
2724
|
-
* call is completed.
|
|
2725
|
-
*/
|
|
2726
|
-
output_index: typeof Schema.Int;
|
|
2727
|
-
/**
|
|
2728
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2729
|
-
*/
|
|
2730
|
-
item_id: typeof Schema.String;
|
|
2731
|
-
}>, never, {
|
|
2732
|
-
readonly type: "response.code_interpreter_call.completed";
|
|
2733
|
-
} & {
|
|
2734
|
-
readonly sequence_number: number;
|
|
2735
|
-
} & {
|
|
2736
|
-
readonly output_index: number;
|
|
2737
|
-
} & {
|
|
2738
|
-
readonly item_id: string;
|
|
2739
|
-
}, {}, {}>;
|
|
2740
|
-
/**
|
|
2741
|
-
* Emitted when the code interpreter call is completed.
|
|
2742
|
-
*
|
|
2743
|
-
* @since 1.0.0
|
|
2744
|
-
* @category Schemas
|
|
2745
|
-
*/
|
|
2746
|
-
export declare class ResponseCodeInterpreterCallCompletedEvent extends ResponseCodeInterpreterCallCompletedEvent_base {
|
|
2747
|
-
}
|
|
2748
|
-
declare const ResponseCodeInterpreterCallCodeDeltaEvent_base: Schema.Class<ResponseCodeInterpreterCallCodeDeltaEvent, {
|
|
2749
|
-
/**
|
|
2750
|
-
* The type of the event. Always `"response.code_interpreter_call_code.delta"`.
|
|
2751
|
-
*/
|
|
2752
|
-
type: Schema.Literal<["response.code_interpreter_call_code.delta"]>;
|
|
2753
|
-
/**
|
|
2754
|
-
* The sequence number for this event.
|
|
2755
|
-
*/
|
|
2756
|
-
sequence_number: typeof Schema.Int;
|
|
2757
|
-
/**
|
|
2758
|
-
* The index of the output item in the response for which the code is being
|
|
2759
|
-
* streamed.
|
|
2760
|
-
*/
|
|
2761
|
-
output_index: typeof Schema.Int;
|
|
2762
|
-
/**
|
|
2763
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2764
|
-
*/
|
|
2765
|
-
item_id: typeof Schema.String;
|
|
2766
|
-
/**
|
|
2767
|
-
* The partial code snippet being streamed by the code interpreter.
|
|
2768
|
-
*/
|
|
2769
|
-
delta: typeof Schema.String;
|
|
2770
|
-
}, Schema.Struct.Encoded<{
|
|
2771
|
-
/**
|
|
2772
|
-
* The type of the event. Always `"response.code_interpreter_call_code.delta"`.
|
|
2773
|
-
*/
|
|
2774
|
-
type: Schema.Literal<["response.code_interpreter_call_code.delta"]>;
|
|
2775
|
-
/**
|
|
2776
|
-
* The sequence number for this event.
|
|
2777
|
-
*/
|
|
2778
|
-
sequence_number: typeof Schema.Int;
|
|
2779
|
-
/**
|
|
2780
|
-
* The index of the output item in the response for which the code is being
|
|
2781
|
-
* streamed.
|
|
2782
|
-
*/
|
|
2783
|
-
output_index: typeof Schema.Int;
|
|
2784
|
-
/**
|
|
2785
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2786
|
-
*/
|
|
2787
|
-
item_id: typeof Schema.String;
|
|
2788
|
-
/**
|
|
2789
|
-
* The partial code snippet being streamed by the code interpreter.
|
|
2790
|
-
*/
|
|
2791
|
-
delta: typeof Schema.String;
|
|
2792
|
-
}>, never, {
|
|
2793
|
-
readonly type: "response.code_interpreter_call_code.delta";
|
|
2794
|
-
} & {
|
|
2795
|
-
readonly sequence_number: number;
|
|
2796
|
-
} & {
|
|
2797
|
-
readonly output_index: number;
|
|
2798
|
-
} & {
|
|
2799
|
-
readonly item_id: string;
|
|
2800
|
-
} & {
|
|
2801
|
-
readonly delta: string;
|
|
2802
|
-
}, {}, {}>;
|
|
2803
|
-
/**
|
|
2804
|
-
* Emitted when a partial code snippet is streamed by the code interpreter.
|
|
2805
|
-
*
|
|
2806
|
-
* @since 1.0.0
|
|
2807
|
-
* @category Schemas
|
|
2808
|
-
*/
|
|
2809
|
-
export declare class ResponseCodeInterpreterCallCodeDeltaEvent extends ResponseCodeInterpreterCallCodeDeltaEvent_base {
|
|
2810
|
-
}
|
|
2811
|
-
declare const ResponseCodeInterpreterCallCodeDoneEvent_base: Schema.Class<ResponseCodeInterpreterCallCodeDoneEvent, {
|
|
2812
|
-
/**
|
|
2813
|
-
* The type of the event. Always `"response.code_interpreter_call_code.done"`.
|
|
2814
|
-
*/
|
|
2815
|
-
type: Schema.Literal<["response.code_interpreter_call_code.done"]>;
|
|
2816
|
-
/**
|
|
2817
|
-
* The sequence number for this event.
|
|
2818
|
-
*/
|
|
2819
|
-
sequence_number: typeof Schema.Int;
|
|
2820
|
-
/**
|
|
2821
|
-
* The index of the output item in the response for which the code is finalized.
|
|
2822
|
-
*/
|
|
2823
|
-
output_index: typeof Schema.Int;
|
|
2824
|
-
/**
|
|
2825
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2826
|
-
*/
|
|
2827
|
-
item_id: typeof Schema.String;
|
|
2828
|
-
/**
|
|
2829
|
-
* The final code snippet output by the code interpreter.
|
|
2830
|
-
*/
|
|
2831
|
-
code: typeof Schema.String;
|
|
2832
|
-
}, Schema.Struct.Encoded<{
|
|
2833
|
-
/**
|
|
2834
|
-
* The type of the event. Always `"response.code_interpreter_call_code.done"`.
|
|
2835
|
-
*/
|
|
2836
|
-
type: Schema.Literal<["response.code_interpreter_call_code.done"]>;
|
|
2837
|
-
/**
|
|
2838
|
-
* The sequence number for this event.
|
|
2839
|
-
*/
|
|
2840
|
-
sequence_number: typeof Schema.Int;
|
|
2841
|
-
/**
|
|
2842
|
-
* The index of the output item in the response for which the code is finalized.
|
|
2843
|
-
*/
|
|
2844
|
-
output_index: typeof Schema.Int;
|
|
2845
|
-
/**
|
|
2846
|
-
* The unique identifier of the code interpreter tool call item.
|
|
2847
|
-
*/
|
|
2848
|
-
item_id: typeof Schema.String;
|
|
2849
|
-
/**
|
|
2850
|
-
* The final code snippet output by the code interpreter.
|
|
2851
|
-
*/
|
|
2852
|
-
code: typeof Schema.String;
|
|
2853
|
-
}>, never, {
|
|
2854
|
-
readonly type: "response.code_interpreter_call_code.done";
|
|
2855
|
-
} & {
|
|
2856
|
-
readonly code: string;
|
|
2857
|
-
} & {
|
|
2858
|
-
readonly sequence_number: number;
|
|
2859
|
-
} & {
|
|
2860
|
-
readonly output_index: number;
|
|
2861
|
-
} & {
|
|
2862
|
-
readonly item_id: string;
|
|
2863
|
-
}, {}, {}>;
|
|
2864
|
-
/**
|
|
2865
|
-
* Emitted when the code snippet is finalized by the code interpreter.
|
|
2866
|
-
*
|
|
2867
|
-
* @since 1.0.0
|
|
2868
|
-
* @category Schemas
|
|
2869
|
-
*/
|
|
2870
|
-
export declare class ResponseCodeInterpreterCallCodeDoneEvent extends ResponseCodeInterpreterCallCodeDoneEvent_base {
|
|
2871
|
-
}
|
|
2872
|
-
declare const ResponseCustomToolCallInputDeltaEvent_base: Schema.Class<ResponseCustomToolCallInputDeltaEvent, {
|
|
2873
|
-
/**
|
|
2874
|
-
* The type of the event. Always `"response.custom_tool_call_input.delta"`.
|
|
2875
|
-
*/
|
|
2876
|
-
type: Schema.Literal<["response.custom_tool_call_input.delta"]>;
|
|
2877
|
-
/**
|
|
2878
|
-
* The sequence number for this event.
|
|
2879
|
-
*/
|
|
2880
|
-
sequence_number: typeof Schema.Int;
|
|
2881
|
-
/**
|
|
2882
|
-
* The index of the output this delta applies to.
|
|
2883
|
-
*/
|
|
2884
|
-
output_index: typeof Schema.Int;
|
|
2885
|
-
/**
|
|
2886
|
-
* Unique identifier for the API item associated with this event.
|
|
2887
|
-
*/
|
|
2888
|
-
item_id: typeof Schema.String;
|
|
2889
|
-
/**
|
|
2890
|
-
* The incremental input data (delta) for the custom tool call.
|
|
2891
|
-
*/
|
|
2892
|
-
delta: typeof Schema.String;
|
|
2893
|
-
}, Schema.Struct.Encoded<{
|
|
2894
|
-
/**
|
|
2895
|
-
* The type of the event. Always `"response.custom_tool_call_input.delta"`.
|
|
2896
|
-
*/
|
|
2897
|
-
type: Schema.Literal<["response.custom_tool_call_input.delta"]>;
|
|
2898
|
-
/**
|
|
2899
|
-
* The sequence number for this event.
|
|
2900
|
-
*/
|
|
2901
|
-
sequence_number: typeof Schema.Int;
|
|
2902
|
-
/**
|
|
2903
|
-
* The index of the output this delta applies to.
|
|
2904
|
-
*/
|
|
2905
|
-
output_index: typeof Schema.Int;
|
|
2906
|
-
/**
|
|
2907
|
-
* Unique identifier for the API item associated with this event.
|
|
2908
|
-
*/
|
|
2909
|
-
item_id: typeof Schema.String;
|
|
2910
|
-
/**
|
|
2911
|
-
* The incremental input data (delta) for the custom tool call.
|
|
2912
|
-
*/
|
|
2913
|
-
delta: typeof Schema.String;
|
|
2914
|
-
}>, never, {
|
|
2915
|
-
readonly type: "response.custom_tool_call_input.delta";
|
|
2916
|
-
} & {
|
|
2917
|
-
readonly sequence_number: number;
|
|
2918
|
-
} & {
|
|
2919
|
-
readonly output_index: number;
|
|
2920
|
-
} & {
|
|
2921
|
-
readonly item_id: string;
|
|
2922
|
-
} & {
|
|
2923
|
-
readonly delta: string;
|
|
2924
|
-
}, {}, {}>;
|
|
2925
|
-
/**
|
|
2926
|
-
* Event representing a delta (partial update) to the input of a custom tool call.
|
|
2927
|
-
*
|
|
2928
|
-
* @since 1.0.0
|
|
2929
|
-
* @category Schemas
|
|
2930
|
-
*/
|
|
2931
|
-
export declare class ResponseCustomToolCallInputDeltaEvent extends ResponseCustomToolCallInputDeltaEvent_base {
|
|
2932
|
-
}
|
|
2933
|
-
declare const ResponseCustomToolCallInputDoneEvent_base: Schema.Class<ResponseCustomToolCallInputDoneEvent, {
|
|
2934
|
-
/**
|
|
2935
|
-
* The type of the event. Always `"response.custom_tool_call_input.done"`.
|
|
2936
|
-
*/
|
|
2937
|
-
type: Schema.Literal<["response.custom_tool_call_input.done"]>;
|
|
2938
|
-
/**
|
|
2939
|
-
* The sequence number for this event.
|
|
2940
|
-
*/
|
|
2941
|
-
sequence_number: typeof Schema.Int;
|
|
2942
|
-
/**
|
|
2943
|
-
* The index of the output this event applies to.
|
|
2944
|
-
*/
|
|
2945
|
-
output_index: typeof Schema.Int;
|
|
2946
|
-
/**
|
|
2947
|
-
* Unique identifier for the API item associated with this event.
|
|
2948
|
-
*/
|
|
2949
|
-
item_id: typeof Schema.String;
|
|
2950
|
-
/**
|
|
2951
|
-
* The complete input data for the custom tool call.
|
|
2952
|
-
*/
|
|
2953
|
-
input: typeof Schema.String;
|
|
2954
|
-
}, Schema.Struct.Encoded<{
|
|
2955
|
-
/**
|
|
2956
|
-
* The type of the event. Always `"response.custom_tool_call_input.done"`.
|
|
2957
|
-
*/
|
|
2958
|
-
type: Schema.Literal<["response.custom_tool_call_input.done"]>;
|
|
2959
|
-
/**
|
|
2960
|
-
* The sequence number for this event.
|
|
2961
|
-
*/
|
|
2962
|
-
sequence_number: typeof Schema.Int;
|
|
2963
|
-
/**
|
|
2964
|
-
* The index of the output this event applies to.
|
|
2965
|
-
*/
|
|
2966
|
-
output_index: typeof Schema.Int;
|
|
2967
|
-
/**
|
|
2968
|
-
* Unique identifier for the API item associated with this event.
|
|
2969
|
-
*/
|
|
2970
|
-
item_id: typeof Schema.String;
|
|
2971
|
-
/**
|
|
2972
|
-
* The complete input data for the custom tool call.
|
|
2973
|
-
*/
|
|
2974
|
-
input: typeof Schema.String;
|
|
2975
|
-
}>, never, {
|
|
2976
|
-
readonly type: "response.custom_tool_call_input.done";
|
|
2977
|
-
} & {
|
|
2978
|
-
readonly input: string;
|
|
2979
|
-
} & {
|
|
2980
|
-
readonly sequence_number: number;
|
|
2981
|
-
} & {
|
|
2982
|
-
readonly output_index: number;
|
|
2983
|
-
} & {
|
|
2984
|
-
readonly item_id: string;
|
|
2985
|
-
}, {}, {}>;
|
|
2986
|
-
/**
|
|
2987
|
-
* Event indicating that input for a custom tool call is complete.
|
|
2988
|
-
*
|
|
2989
|
-
* @since 1.0.0
|
|
2990
|
-
* @category Schemas
|
|
2991
|
-
*/
|
|
2992
|
-
export declare class ResponseCustomToolCallInputDoneEvent extends ResponseCustomToolCallInputDoneEvent_base {
|
|
2993
|
-
}
|
|
2994
|
-
declare const ResponseErrorEvent_base: Schema.Class<ResponseErrorEvent, {
|
|
2995
|
-
/**
|
|
2996
|
-
* The type of the event. Always `"error"`.
|
|
2997
|
-
*/
|
|
2998
|
-
type: Schema.Literal<["error"]>;
|
|
2999
|
-
/**
|
|
3000
|
-
* The sequence number for this event.
|
|
3001
|
-
*/
|
|
3002
|
-
sequence_number: typeof Schema.Int;
|
|
3003
|
-
/**
|
|
3004
|
-
* The error code.
|
|
3005
|
-
*/
|
|
3006
|
-
code: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
3007
|
-
/**
|
|
3008
|
-
* The error message.
|
|
3009
|
-
*/
|
|
3010
|
-
message: typeof Schema.String;
|
|
3011
|
-
/**
|
|
3012
|
-
* The error parameter.
|
|
3013
|
-
*/
|
|
3014
|
-
param: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
3015
|
-
}, Schema.Struct.Encoded<{
|
|
3016
|
-
/**
|
|
3017
|
-
* The type of the event. Always `"error"`.
|
|
3018
|
-
*/
|
|
3019
|
-
type: Schema.Literal<["error"]>;
|
|
3020
|
-
/**
|
|
3021
|
-
* The sequence number for this event.
|
|
3022
|
-
*/
|
|
3023
|
-
sequence_number: typeof Schema.Int;
|
|
3024
|
-
/**
|
|
3025
|
-
* The error code.
|
|
3026
|
-
*/
|
|
3027
|
-
code: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
3028
|
-
/**
|
|
3029
|
-
* The error message.
|
|
3030
|
-
*/
|
|
3031
|
-
message: typeof Schema.String;
|
|
3032
|
-
/**
|
|
3033
|
-
* The error parameter.
|
|
3034
|
-
*/
|
|
3035
|
-
param: Schema.optional<Schema.NullOr<typeof Schema.String>>;
|
|
3036
|
-
}>, never, {
|
|
3037
|
-
readonly type: "error";
|
|
3038
|
-
} & {
|
|
3039
|
-
readonly code?: string | null | undefined;
|
|
3040
|
-
} & {
|
|
3041
|
-
readonly message: string;
|
|
3042
|
-
} & {
|
|
3043
|
-
readonly param?: string | null | undefined;
|
|
3044
|
-
} & {
|
|
3045
|
-
readonly sequence_number: number;
|
|
3046
|
-
}, {}, {}>;
|
|
3047
|
-
/**
|
|
3048
|
-
* Emitted when an error occurs.
|
|
3049
|
-
*
|
|
3050
|
-
* @since 1.0.0
|
|
3051
|
-
* @category Schemas
|
|
3052
|
-
*/
|
|
3053
|
-
export declare class ResponseErrorEvent extends ResponseErrorEvent_base {
|
|
3054
|
-
}
|
|
3055
|
-
/**
|
|
3056
|
-
* Represents the events that can be emitted during a streaming response.
|
|
3057
|
-
*
|
|
3058
|
-
* @since 1.0.0
|
|
3059
|
-
* @category Schemas
|
|
3060
|
-
*/
|
|
3061
|
-
export declare const ResponseStreamEvent: Schema.Union<[
|
|
3062
|
-
typeof ResponseCreatedEvent,
|
|
3063
|
-
typeof ResponseQueuedEvent,
|
|
3064
|
-
typeof ResponseInProgressEvent,
|
|
3065
|
-
typeof ResponseCompletedEvent,
|
|
3066
|
-
typeof ResponseIncompleteEvent,
|
|
3067
|
-
typeof ResponseFailedEvent,
|
|
3068
|
-
typeof ResponseOutputItemAddedEvent,
|
|
3069
|
-
typeof ResponseOutputItemDoneEvent,
|
|
3070
|
-
typeof ResponseContentPartAddedEvent,
|
|
3071
|
-
typeof ResponseContentPartDoneEvent,
|
|
3072
|
-
typeof ResponseOutputTextDeltaEvent,
|
|
3073
|
-
typeof ResponseOutputTextDoneEvent,
|
|
3074
|
-
typeof ResponseOutputTextAnnotationAddedEvent,
|
|
3075
|
-
typeof ResponseRefusalDeltaEvent,
|
|
3076
|
-
typeof ResponseRefusalDoneEvent,
|
|
3077
|
-
typeof ResponseFunctionCallArgumentsDeltaEvent,
|
|
3078
|
-
typeof ResponseFunctionCallArgumentsDoneEvent,
|
|
3079
|
-
typeof ResponseFileSearchCallInProgressEvent,
|
|
3080
|
-
typeof ResponseFileSearchCallSearchingEvent,
|
|
3081
|
-
typeof ResponseFileSearchCallCompletedEvent,
|
|
3082
|
-
typeof ResponseWebSearchCallInProgressEvent,
|
|
3083
|
-
typeof ResponseWebSearchCallSearchingEvent,
|
|
3084
|
-
typeof ResponseWebSearchCallCompletedEvent,
|
|
3085
|
-
typeof ResponseReasoningSummaryPartAddedEvent,
|
|
3086
|
-
typeof ResponseReasoningSummaryPartDoneEvent,
|
|
3087
|
-
typeof ResponseReasoningSummaryTextDeltaEvent,
|
|
3088
|
-
typeof ResponseReasoningSummaryTextDoneEvent,
|
|
3089
|
-
typeof ResponseReasoningTextDeltaEvent,
|
|
3090
|
-
typeof ResponseReasoningTextDoneEvent,
|
|
3091
|
-
typeof ResponseImageGenerationCallInProgressEvent,
|
|
3092
|
-
typeof ResponseImageGenerationCallGeneratingEvent,
|
|
3093
|
-
typeof ResponseImageGenerationCallPartialImageEvent,
|
|
3094
|
-
typeof ResponseImageGenerationCallCompletedEvent,
|
|
3095
|
-
typeof ResponseMcpCallArgumentsDeltaEvent,
|
|
3096
|
-
typeof ResponseMcpCallArgumentsDoneEvent,
|
|
3097
|
-
typeof ResponseMcpCallInProgressEvent,
|
|
3098
|
-
typeof ResponseMcpCallCompletedEvent,
|
|
3099
|
-
typeof ResponseMcpCallFailedEvent,
|
|
3100
|
-
typeof ResponseMcpListToolsInProgressEvent,
|
|
3101
|
-
typeof ResponseMcpListToolsCompletedEvent,
|
|
3102
|
-
typeof ResponseMcpListToolsFailedEvent,
|
|
3103
|
-
typeof ResponseCodeInterpreterCallInProgressEvent,
|
|
3104
|
-
typeof ResponseCodeInterpreterCallInterpretingEvent,
|
|
3105
|
-
typeof ResponseCodeInterpreterCallCompletedEvent,
|
|
3106
|
-
typeof ResponseCodeInterpreterCallCodeDeltaEvent,
|
|
3107
|
-
typeof ResponseCodeInterpreterCallCodeDoneEvent,
|
|
3108
|
-
typeof ResponseCustomToolCallInputDeltaEvent,
|
|
3109
|
-
typeof ResponseCustomToolCallInputDoneEvent,
|
|
3110
|
-
typeof ResponseErrorEvent
|
|
3111
|
-
]>;
|
|
3112
|
-
/**
|
|
3113
|
-
* Represents the events that can be emitted during a streaming response.
|
|
3114
|
-
*
|
|
3115
|
-
* @since 1.0.0
|
|
3116
|
-
* @category Models
|
|
3117
|
-
*/
|
|
3118
|
-
export type ResponseStreamEvent = typeof ResponseStreamEvent.Type;
|
|
3119
|
-
export {};
|
|
3120
|
-
//# sourceMappingURL=OpenAiClient.d.ts.map
|