@effect/ai-openai 4.0.0-beta.7 → 4.0.0-beta.70

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (58) hide show
  1. package/dist/Generated.d.ts +66734 -37723
  2. package/dist/Generated.d.ts.map +1 -1
  3. package/dist/Generated.js +1 -1
  4. package/dist/Generated.js.map +1 -1
  5. package/dist/OpenAiClient.d.ts +81 -25
  6. package/dist/OpenAiClient.d.ts.map +1 -1
  7. package/dist/OpenAiClient.js +220 -39
  8. package/dist/OpenAiClient.js.map +1 -1
  9. package/dist/OpenAiClientGenerated.d.ts +91 -0
  10. package/dist/OpenAiClientGenerated.d.ts.map +1 -0
  11. package/dist/OpenAiClientGenerated.js +84 -0
  12. package/dist/OpenAiClientGenerated.js.map +1 -0
  13. package/dist/OpenAiConfig.d.ts +45 -10
  14. package/dist/OpenAiConfig.d.ts.map +1 -1
  15. package/dist/OpenAiConfig.js +31 -7
  16. package/dist/OpenAiConfig.js.map +1 -1
  17. package/dist/OpenAiEmbeddingModel.d.ts +89 -0
  18. package/dist/OpenAiEmbeddingModel.d.ts.map +1 -0
  19. package/dist/OpenAiEmbeddingModel.js +121 -0
  20. package/dist/OpenAiEmbeddingModel.js.map +1 -0
  21. package/dist/OpenAiError.d.ts +168 -35
  22. package/dist/OpenAiError.d.ts.map +1 -1
  23. package/dist/OpenAiError.js +1 -1
  24. package/dist/OpenAiLanguageModel.d.ts +250 -57
  25. package/dist/OpenAiLanguageModel.d.ts.map +1 -1
  26. package/dist/OpenAiLanguageModel.js +311 -160
  27. package/dist/OpenAiLanguageModel.js.map +1 -1
  28. package/dist/OpenAiSchema.d.ts +2029 -0
  29. package/dist/OpenAiSchema.d.ts.map +1 -0
  30. package/dist/OpenAiSchema.js +591 -0
  31. package/dist/OpenAiSchema.js.map +1 -0
  32. package/dist/OpenAiTelemetry.d.ts +31 -18
  33. package/dist/OpenAiTelemetry.d.ts.map +1 -1
  34. package/dist/OpenAiTelemetry.js +6 -4
  35. package/dist/OpenAiTelemetry.js.map +1 -1
  36. package/dist/OpenAiTool.d.ts +56 -67
  37. package/dist/OpenAiTool.d.ts.map +1 -1
  38. package/dist/OpenAiTool.js +33 -44
  39. package/dist/OpenAiTool.js.map +1 -1
  40. package/dist/index.d.ts +42 -8
  41. package/dist/index.d.ts.map +1 -1
  42. package/dist/index.js +42 -8
  43. package/dist/index.js.map +1 -1
  44. package/dist/internal/errors.js +4 -4
  45. package/dist/internal/errors.js.map +1 -1
  46. package/package.json +3 -3
  47. package/src/Generated.ts +9858 -5044
  48. package/src/OpenAiClient.ts +396 -90
  49. package/src/OpenAiClientGenerated.ts +202 -0
  50. package/src/OpenAiConfig.ts +46 -11
  51. package/src/OpenAiEmbeddingModel.ts +207 -0
  52. package/src/OpenAiError.ts +170 -35
  53. package/src/OpenAiLanguageModel.ts +633 -157
  54. package/src/OpenAiSchema.ts +984 -0
  55. package/src/OpenAiTelemetry.ts +32 -19
  56. package/src/OpenAiTool.ts +34 -45
  57. package/src/index.ts +45 -8
  58. package/src/internal/errors.ts +6 -4
@@ -1,62 +1,58 @@
1
+ /**
2
+ * OpenAI Language Model implementation.
3
+ *
4
+ * Provides a LanguageModel implementation for OpenAI's responses API,
5
+ * supporting text generation, structured output, tool calling, and streaming.
6
+ *
7
+ * @since 4.0.0
8
+ */
9
+ import * as Context from "effect/Context";
1
10
  import * as Effect from "effect/Effect";
2
11
  import * as Layer from "effect/Layer";
3
12
  import * as Schema from "effect/Schema";
4
- import * as ServiceMap from "effect/ServiceMap";
5
13
  import * as LanguageModel from "effect/unstable/ai/LanguageModel";
6
14
  import * as AiModel from "effect/unstable/ai/Model";
7
- import * as Generated from "./Generated.ts";
8
15
  import { OpenAiClient } from "./OpenAiClient.ts";
16
+ import type * as OpenAiSchema from "./OpenAiSchema.ts";
9
17
  declare const ResponseModelIds: Schema.Literals<readonly ["o1-pro", "o1-pro-2025-03-19", "o3-pro", "o3-pro-2025-06-10", "o3-deep-research", "o3-deep-research-2025-06-26", "o4-mini-deep-research", "o4-mini-deep-research-2025-06-26", "computer-use-preview", "computer-use-preview-2025-03-11", "gpt-5-codex", "gpt-5-pro", "gpt-5-pro-2025-10-06", "gpt-5.1-codex-max"]>;
10
- declare const SharedModelIds: Schema.Literals<readonly ["gpt-5.2", "gpt-5.2-2025-12-11", "gpt-5.2-chat-latest", "gpt-5.2-pro", "gpt-5.2-pro-2025-12-11", "gpt-5.1", "gpt-5.1-2025-11-13", "gpt-5.1-codex", "gpt-5.1-mini", "gpt-5.1-chat-latest", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "gpt-5-chat-latest", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", "o3", "o3-2025-04-16", "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "gpt-4o-search-preview", "gpt-4o-mini-search-preview", "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", "chatgpt-4o-latest", "codex-mini-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
18
+ declare const SharedModelIds: Schema.Literals<readonly ["gpt-5.4", "gpt-5.4-mini", "gpt-5.4-nano", "gpt-5.4-mini-2026-03-17", "gpt-5.4-nano-2026-03-17", "gpt-5.3-chat-latest", "gpt-5.2", "gpt-5.2-2025-12-11", "gpt-5.2-chat-latest", "gpt-5.2-pro", "gpt-5.2-pro-2025-12-11", "gpt-5.1", "gpt-5.1-2025-11-13", "gpt-5.1-codex", "gpt-5.1-mini", "gpt-5.1-chat-latest", "gpt-5", "gpt-5-mini", "gpt-5-nano", "gpt-5-2025-08-07", "gpt-5-mini-2025-08-07", "gpt-5-nano-2025-08-07", "gpt-5-chat-latest", "gpt-4.1", "gpt-4.1-mini", "gpt-4.1-nano", "gpt-4.1-2025-04-14", "gpt-4.1-mini-2025-04-14", "gpt-4.1-nano-2025-04-14", "o4-mini", "o4-mini-2025-04-16", "o3", "o3-2025-04-16", "o3-mini", "o3-mini-2025-01-31", "o1", "o1-2024-12-17", "o1-preview", "o1-preview-2024-09-12", "o1-mini", "o1-mini-2024-09-12", "gpt-4o", "gpt-4o-2024-11-20", "gpt-4o-2024-08-06", "gpt-4o-2024-05-13", "gpt-4o-audio-preview", "gpt-4o-audio-preview-2024-10-01", "gpt-4o-audio-preview-2024-12-17", "gpt-4o-audio-preview-2025-06-03", "gpt-4o-mini-audio-preview", "gpt-4o-mini-audio-preview-2024-12-17", "gpt-4o-search-preview", "gpt-4o-mini-search-preview", "gpt-4o-search-preview-2025-03-11", "gpt-4o-mini-search-preview-2025-03-11", "chatgpt-4o-latest", "codex-mini-latest", "gpt-4o-mini", "gpt-4o-mini-2024-07-18", "gpt-4-turbo", "gpt-4-turbo-2024-04-09", "gpt-4-0125-preview", "gpt-4-turbo-preview", "gpt-4-1106-preview", "gpt-4-vision-preview", "gpt-4", "gpt-4-0314", "gpt-4-0613", "gpt-4-32k", "gpt-4-32k-0314", "gpt-4-32k-0613", "gpt-3.5-turbo", "gpt-3.5-turbo-16k", "gpt-3.5-turbo-0301", "gpt-3.5-turbo-0613", "gpt-3.5-turbo-1106", "gpt-3.5-turbo-0125", "gpt-3.5-turbo-16k-0613"]>;
11
19
  /**
12
- * @since 1.0.0
20
+ * OpenAI model identifiers supported by the Responses API language model.
21
+ *
13
22
  * @category models
23
+ * @since 4.0.0
14
24
  */
15
25
  export type Model = typeof ResponseModelIds.Encoded | typeof SharedModelIds.Encoded;
16
26
  /**
17
27
  * Image detail level for vision requests.
18
28
  */
19
29
  type ImageDetail = "auto" | "low" | "high";
20
- declare const Config_base: ServiceMap.ServiceClass<Config, "@effect/ai-openai/OpenAiLanguageModel/Config", {
21
- readonly metadata?: {} | null;
22
- readonly top_logprobs?: number;
23
- readonly user?: string | null;
24
- readonly model?: string;
25
- readonly instructions?: string | null;
26
- readonly prompt?: {
27
- readonly id: string;
28
- readonly version?: string | null;
29
- readonly variables?: {} | null;
30
- } | null;
31
- readonly temperature?: number | null;
32
- readonly top_p?: number | null;
33
- readonly background?: boolean | null;
34
- readonly conversation?: string | {
35
- readonly id: string;
36
- } | null;
37
- readonly service_tier?: "auto" | "default" | "flex" | "scale" | "priority" | null;
38
- readonly include?: readonly ("file_search_call.results" | "web_search_call.results" | "web_search_call.action.sources" | "message.input_image.image_url" | "computer_call_output.output.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | null;
39
- readonly stream_options?: {
40
- readonly include_obfuscation?: boolean;
41
- } | null;
42
- readonly max_output_tokens?: number | null;
30
+ declare const Config_base: Context.ServiceClass<Config, "@effect/ai-openai/OpenAiLanguageModel/Config", {
31
+ readonly metadata?: {
32
+ readonly [x: string]: string;
33
+ } | undefined;
34
+ readonly top_logprobs?: number | undefined;
35
+ readonly user?: string | undefined;
36
+ readonly model?: string | undefined;
37
+ readonly temperature?: number | undefined;
38
+ readonly top_p?: number | undefined;
39
+ readonly background?: boolean | undefined;
40
+ readonly conversation?: string | undefined;
41
+ readonly modalities?: readonly ("text" | "audio")[] | undefined;
42
+ readonly service_tier?: string | undefined;
43
+ readonly seed?: number | undefined;
44
+ readonly include?: readonly ("web_search_call.action.sources" | "message.input_image.image_url" | "code_interpreter_call.outputs" | "reasoning.encrypted_content" | "message.output_text.logprobs")[] | undefined;
45
+ readonly instructions?: string | undefined;
46
+ readonly max_output_tokens?: number | undefined;
43
47
  readonly reasoning?: {
44
- readonly summary?: "auto" | "concise" | "detailed" | null;
45
- readonly effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | null;
46
- readonly generate_summary?: "auto" | "concise" | "detailed" | null;
47
- } | null;
48
- readonly truncation?: "auto" | "disabled" | null;
49
- readonly parallel_tool_calls?: boolean | null;
50
- readonly safety_identifier?: string | null;
51
- readonly prompt_cache_key?: string | null;
52
- readonly prompt_cache_retention?: "in-memory" | "24h" | null;
53
- readonly store?: boolean | null;
54
- readonly previous_response_id?: string | null;
55
- readonly max_tool_calls?: number | null;
56
- readonly context_management?: readonly {
57
- readonly type: string;
58
- readonly compact_threshold?: number | null;
59
- }[] | null;
48
+ readonly effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | undefined;
49
+ readonly summary?: "auto" | "concise" | "detailed" | undefined;
50
+ readonly generate_summary?: "auto" | "concise" | "detailed" | undefined;
51
+ } | undefined;
52
+ readonly truncation?: "auto" | "disabled" | undefined;
53
+ readonly store?: boolean | undefined;
54
+ readonly previous_response_id?: string | undefined;
55
+ readonly max_tool_calls?: number | undefined;
60
56
  readonly fileIdPrefixes?: readonly string[] | undefined;
61
57
  readonly text?: {
62
58
  /**
@@ -79,13 +75,22 @@ declare const Config_base: ServiceMap.ServiceClass<Config, "@effect/ai-openai/Op
79
75
  /**
80
76
  * Service definition for OpenAI language model configuration.
81
77
  *
82
- * @since 1.0.0
83
78
  * @category services
79
+ * @since 4.0.0
84
80
  */
85
81
  export declare class Config extends Config_base {
86
82
  }
87
83
  declare module "effect/unstable/ai/Prompt" {
84
+ /**
85
+ * OpenAI-specific options for file prompt parts.
86
+ *
87
+ * @category request
88
+ * @since 4.0.0
89
+ */
88
90
  interface FilePartOptions extends ProviderOptions {
91
+ /**
92
+ * Provider-specific file options for the OpenAI Responses API.
93
+ */
89
94
  readonly openai?: {
90
95
  /**
91
96
  * The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
@@ -93,7 +98,16 @@ declare module "effect/unstable/ai/Prompt" {
93
98
  readonly imageDetail?: ImageDetail | null;
94
99
  } | null;
95
100
  }
101
+ /**
102
+ * OpenAI-specific options for reasoning prompt parts.
103
+ *
104
+ * @category request
105
+ * @since 4.0.0
106
+ */
96
107
  interface ReasoningPartOptions extends ProviderOptions {
108
+ /**
109
+ * Provider-specific reasoning options for the OpenAI Responses API.
110
+ */
97
111
  readonly openai?: {
98
112
  /**
99
113
  * The ID of the item to reference.
@@ -107,7 +121,16 @@ declare module "effect/unstable/ai/Prompt" {
107
121
  readonly encryptedContent?: string | null;
108
122
  } | null;
109
123
  }
124
+ /**
125
+ * OpenAI-specific options for assistant tool-call prompt parts.
126
+ *
127
+ * @category request
128
+ * @since 4.0.0
129
+ */
110
130
  interface ToolCallPartOptions extends ProviderOptions {
131
+ /**
132
+ * Provider-specific tool-call options for the OpenAI Responses API.
133
+ */
111
134
  readonly openai?: {
112
135
  /**
113
136
  * The ID of the item to reference.
@@ -116,14 +139,23 @@ declare module "effect/unstable/ai/Prompt" {
116
139
  /**
117
140
  * The status of item.
118
141
  */
119
- readonly status?: typeof Generated.Message.Encoded["status"] | null;
142
+ readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
120
143
  /**
121
144
  * The ID of the approval request.
122
145
  */
123
146
  readonly approvalRequestId?: string | null;
124
147
  } | null;
125
148
  }
149
+ /**
150
+ * OpenAI-specific options for tool-result prompt parts.
151
+ *
152
+ * @category request
153
+ * @since 4.0.0
154
+ */
126
155
  interface ToolResultPartOptions extends ProviderOptions {
156
+ /**
157
+ * Provider-specific tool-result options for the OpenAI Responses API.
158
+ */
127
159
  readonly openai?: {
128
160
  /**
129
161
  * The ID of the item to reference.
@@ -132,14 +164,23 @@ declare module "effect/unstable/ai/Prompt" {
132
164
  /**
133
165
  * The status of item.
134
166
  */
135
- readonly status?: typeof Generated.Message.Encoded["status"] | null;
167
+ readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
136
168
  /**
137
169
  * The ID of the approval request.
138
170
  */
139
171
  readonly approvalId?: string | null;
140
172
  } | null;
141
173
  }
174
+ /**
175
+ * OpenAI-specific options for text prompt parts.
176
+ *
177
+ * @category request
178
+ * @since 4.0.0
179
+ */
142
180
  interface TextPartOptions extends ProviderOptions {
181
+ /**
182
+ * Provider-specific text options for the OpenAI Responses API.
183
+ */
143
184
  readonly openai?: {
144
185
  /**
145
186
  * The ID of the item to reference.
@@ -148,17 +189,29 @@ declare module "effect/unstable/ai/Prompt" {
148
189
  /**
149
190
  * The status of item.
150
191
  */
151
- readonly status?: typeof Generated.Message.Encoded["status"] | null;
192
+ readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
152
193
  /**
153
194
  * A list of annotations that apply to the output text.
154
195
  */
155
- readonly annotations?: ReadonlyArray<typeof Generated.Annotation.Encoded> | null;
196
+ readonly annotations?: ReadonlyArray<typeof OpenAiSchema.Annotation.Encoded> | null;
156
197
  } | null;
157
198
  }
158
199
  }
159
200
  declare module "effect/unstable/ai/Response" {
201
+ /**
202
+ * OpenAI metadata attached to a complete text response part.
203
+ *
204
+ * @category response
205
+ * @since 4.0.0
206
+ */
160
207
  interface TextPartMetadata extends ProviderMetadata {
208
+ /**
209
+ * Provider-specific metadata returned for the text part.
210
+ */
161
211
  readonly openai?: {
212
+ /**
213
+ * The OpenAI item ID associated with the text part.
214
+ */
162
215
  readonly itemId?: string | null;
163
216
  /**
164
217
  * If the model emits a refusal content part, the refusal explanation
@@ -169,54 +222,162 @@ declare module "effect/unstable/ai/Response" {
169
222
  /**
170
223
  * The status of item.
171
224
  */
172
- readonly status?: typeof Generated.Message.Encoded["status"] | null;
225
+ readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
173
226
  /**
174
227
  * The text content part annotations.
175
228
  */
176
- readonly annotations?: ReadonlyArray<typeof Generated.Annotation.Encoded> | null;
229
+ readonly annotations?: ReadonlyArray<typeof OpenAiSchema.Annotation.Encoded> | null;
177
230
  };
178
231
  }
232
+ /**
233
+ * OpenAI metadata emitted when a streamed text part starts.
234
+ *
235
+ * @category response
236
+ * @since 4.0.0
237
+ */
179
238
  interface TextStartPartMetadata extends ProviderMetadata {
239
+ /**
240
+ * Provider-specific metadata returned for the streamed text start.
241
+ */
180
242
  readonly openai?: {
243
+ /**
244
+ * The OpenAI item ID associated with the streamed text part.
245
+ */
181
246
  readonly itemId?: string | null;
182
247
  } | null;
183
248
  }
249
+ /**
250
+ * OpenAI metadata emitted when a streamed text part ends.
251
+ *
252
+ * @category response
253
+ * @since 4.0.0
254
+ */
184
255
  interface TextEndPartMetadata extends ProviderMetadata {
256
+ /**
257
+ * Provider-specific metadata returned for the streamed text end.
258
+ */
185
259
  readonly openai?: {
260
+ /**
261
+ * The OpenAI item ID associated with the streamed text part.
262
+ */
186
263
  readonly itemId?: string | null;
187
- readonly annotations?: ReadonlyArray<typeof Generated.Annotation.Encoded> | null;
264
+ /**
265
+ * The annotations collected for the completed streamed text part.
266
+ */
267
+ readonly annotations?: ReadonlyArray<typeof OpenAiSchema.Annotation.Encoded> | null;
188
268
  } | null;
189
269
  }
270
+ /**
271
+ * OpenAI metadata attached to a complete reasoning response part.
272
+ *
273
+ * @category response
274
+ * @since 4.0.0
275
+ */
190
276
  interface ReasoningPartMetadata extends ProviderMetadata {
277
+ /**
278
+ * Provider-specific metadata returned for the reasoning part.
279
+ */
191
280
  readonly openai?: {
281
+ /**
282
+ * The OpenAI item ID associated with the reasoning part.
283
+ */
192
284
  readonly itemId?: string | null;
285
+ /**
286
+ * Encrypted reasoning content that can be sent back in later requests.
287
+ */
193
288
  readonly encryptedContent?: string | null;
194
289
  } | null;
195
290
  }
291
+ /**
292
+ * OpenAI metadata emitted when a streamed reasoning part starts.
293
+ *
294
+ * @category response
295
+ * @since 4.0.0
296
+ */
196
297
  interface ReasoningStartPartMetadata extends ProviderMetadata {
298
+ /**
299
+ * Provider-specific metadata returned for the streamed reasoning start.
300
+ */
197
301
  readonly openai?: {
302
+ /**
303
+ * The OpenAI item ID associated with the reasoning part.
304
+ */
198
305
  readonly itemId?: string | null;
306
+ /**
307
+ * Encrypted reasoning content that can be sent back in later requests.
308
+ */
199
309
  readonly encryptedContent?: string | null;
200
310
  } | null;
201
311
  }
312
+ /**
313
+ * OpenAI metadata emitted for a streamed reasoning delta.
314
+ *
315
+ * @category response
316
+ * @since 4.0.0
317
+ */
202
318
  interface ReasoningDeltaPartMetadata extends ProviderMetadata {
319
+ /**
320
+ * Provider-specific metadata returned for the streamed reasoning delta.
321
+ */
203
322
  readonly openai?: {
323
+ /**
324
+ * The OpenAI item ID associated with the reasoning part.
325
+ */
204
326
  readonly itemId?: string | null;
205
327
  } | null;
206
328
  }
329
+ /**
330
+ * OpenAI metadata emitted when a streamed reasoning part ends.
331
+ *
332
+ * @category response
333
+ * @since 4.0.0
334
+ */
207
335
  interface ReasoningEndPartMetadata extends ProviderMetadata {
336
+ /**
337
+ * Provider-specific metadata returned for the streamed reasoning end.
338
+ */
208
339
  readonly openai?: {
340
+ /**
341
+ * The OpenAI item ID associated with the reasoning part.
342
+ */
209
343
  readonly itemId?: string | null;
344
+ /**
345
+ * Encrypted reasoning content that can be sent back in later requests.
346
+ */
210
347
  readonly encryptedContent?: string;
211
348
  } | null;
212
349
  }
350
+ /**
351
+ * OpenAI metadata attached to tool-call response parts.
352
+ *
353
+ * @category response
354
+ * @since 4.0.0
355
+ */
213
356
  interface ToolCallPartMetadata extends ProviderMetadata {
357
+ /**
358
+ * Provider-specific metadata returned for the tool call.
359
+ */
214
360
  readonly openai?: {
361
+ /**
362
+ * The OpenAI item ID associated with the tool call.
363
+ */
215
364
  readonly itemId?: string | null;
216
365
  } | null;
217
366
  }
367
+ /**
368
+ * OpenAI metadata attached to document source citations.
369
+ *
370
+ * @category response
371
+ * @since 4.0.0
372
+ */
218
373
  interface DocumentSourcePartMetadata extends ProviderMetadata {
374
+ /**
375
+ * Provider-specific citation metadata for the OpenAI Responses API.
376
+ */
219
377
  readonly openai?: {
378
+ /**
379
+ * Identifies a citation to an uploaded file.
380
+ */
220
381
  readonly type: "file_citation";
221
382
  /**
222
383
  * The index of the file in the list of files.
@@ -227,6 +388,9 @@ declare module "effect/unstable/ai/Response" {
227
388
  */
228
389
  readonly fileId: string;
229
390
  } | {
391
+ /**
392
+ * Identifies a citation to a generated file path.
393
+ */
230
394
  readonly type: "file_path";
231
395
  /**
232
396
  * The index of the file in the list of files.
@@ -237,6 +401,9 @@ declare module "effect/unstable/ai/Response" {
237
401
  */
238
402
  readonly fileId: string;
239
403
  } | {
404
+ /**
405
+ * Identifies a citation to a file inside a container.
406
+ */
240
407
  readonly type: "container_file_citation";
241
408
  /**
242
409
  * The ID of the file.
@@ -248,8 +415,20 @@ declare module "effect/unstable/ai/Response" {
248
415
  readonly containerId: string;
249
416
  } | null;
250
417
  }
418
+ /**
419
+ * OpenAI metadata attached to URL source citations.
420
+ *
421
+ * @category response
422
+ * @since 4.0.0
423
+ */
251
424
  interface UrlSourcePartMetadata extends ProviderMetadata {
425
+ /**
426
+ * Provider-specific URL citation metadata for the OpenAI Responses API.
427
+ */
252
428
  readonly openai?: {
429
+ /**
430
+ * Identifies a citation to a URL.
431
+ */
253
432
  readonly type: "url_citation";
254
433
  /**
255
434
  * The index of the first character of the URL citation in the message.
@@ -261,22 +440,36 @@ declare module "effect/unstable/ai/Response" {
261
440
  readonly endIndex: number;
262
441
  } | null;
263
442
  }
443
+ /**
444
+ * OpenAI metadata attached to finish response parts.
445
+ *
446
+ * @category response
447
+ * @since 4.0.0
448
+ */
264
449
  interface FinishPartMetadata extends ProviderMetadata {
450
+ /**
451
+ * Provider-specific metadata returned when generation finishes.
452
+ */
265
453
  readonly openai?: {
454
+ /**
455
+ * The service tier reported by OpenAI for the response.
456
+ */
266
457
  readonly serviceTier?: "default" | "auto" | "flex" | "scale" | "priority" | null;
267
458
  } | null;
268
459
  }
269
460
  }
270
461
  /**
271
- * @since 1.0.0
462
+ * Creates an OpenAI language model that can be used with `AiModel.provide`.
463
+ *
272
464
  * @category constructors
465
+ * @since 4.0.0
273
466
  */
274
467
  export declare const model: (model: (string & {}) | Model, config?: Omit<typeof Config.Service, "model">) => AiModel.Model<"openai", LanguageModel.LanguageModel, OpenAiClient>;
275
468
  /**
276
469
  * Creates an OpenAI language model service.
277
470
  *
278
- * @since 1.0.0
279
471
  * @category constructors
472
+ * @since 4.0.0
280
473
  */
281
474
  export declare const make: (args_0: {
282
475
  readonly model: (string & {}) | Model;
@@ -285,8 +478,8 @@ export declare const make: (args_0: {
285
478
  /**
286
479
  * Creates a layer for the OpenAI language model.
287
480
  *
288
- * @since 1.0.0
289
481
  * @category layers
482
+ * @since 4.0.0
290
483
  */
291
484
  export declare const layer: (options: {
292
485
  readonly model: (string & {}) | Model;
@@ -295,22 +488,22 @@ export declare const layer: (options: {
295
488
  /**
296
489
  * Provides config overrides for OpenAI language model operations.
297
490
  *
298
- * @since 1.0.0
299
491
  * @category configuration
492
+ * @since 4.0.0
300
493
  */
301
494
  export declare const withConfigOverride: {
302
495
  /**
303
496
  * Provides config overrides for OpenAI language model operations.
304
497
  *
305
- * @since 1.0.0
306
498
  * @category configuration
499
+ * @since 4.0.0
307
500
  */
308
501
  (overrides: typeof Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Config>>;
309
502
  /**
310
503
  * Provides config overrides for OpenAI language model operations.
311
504
  *
312
- * @since 1.0.0
313
505
  * @category configuration
506
+ * @since 4.0.0
314
507
  */
315
508
  <A, E, R>(self: Effect.Effect<A, E, R>, overrides: typeof Config.Service): Effect.Effect<A, E, Exclude<R, Config>>;
316
509
  };
@@ -1 +1 @@
1
- {"version":3,"file":"OpenAiLanguageModel.d.ts","sourceRoot":"","sources":["../src/OpenAiLanguageModel.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAEvC,OAAO,KAAK,UAAU,MAAM,mBAAmB,CAAA;AAM/C,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AAMnD,OAAO,KAAK,SAAS,MAAM,gBAAgB,CAAA;AAE3C,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAIhD,QAAA,MAAM,gBAAgB,8UAAyC,CAAA;AAC/D,QAAA,MAAM,cAAc,69CAAsC,CAAA;AAE1D;;;GAGG;AACH,MAAM,MAAM,KAAK,GAAG,OAAO,gBAAgB,CAAC,OAAO,GAAG,OAAO,cAAc,CAAC,OAAO,CAAA;AAEnF;;GAEG;AACH,KAAK,WAAW,GAAG,MAAM,GAAG,KAAK,GAAG,MAAM,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBAkCpB;QACd;;;;;;WAMG;QACH,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;KAC3D,GAAG,SAAS;IACb;;;;OAIG;;gCACyB,OAAO,GAAG,SAAS;;AA3CrD;;;;;GAKG;AACH,qBAAa,MAAO,SAAQ,WAwCuB;CAAG;AAMtD,OAAO,QAAQ,2BAA2B,CAAC;IACzC,UAAiB,eAAgB,SAAQ,eAAe;QACtD,QAAQ,CAAC,MAAM,CAAC,EAAE;YAChB;;eAEG;YACH,QAAQ,CAAC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