@effect/ai-openai 4.0.0-beta.9 → 4.0.0-beta.90
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 +66675 -37672
- package/dist/Generated.d.ts.map +1 -1
- package/dist/Generated.js +1 -1
- package/dist/Generated.js.map +1 -1
- package/dist/OpenAiClient.d.ts +170 -29
- package/dist/OpenAiClient.d.ts.map +1 -1
- package/dist/OpenAiClient.js +321 -46
- package/dist/OpenAiClient.js.map +1 -1
- package/dist/OpenAiClientGenerated.d.ts +91 -0
- package/dist/OpenAiClientGenerated.d.ts.map +1 -0
- package/dist/OpenAiClientGenerated.js +84 -0
- package/dist/OpenAiClientGenerated.js.map +1 -0
- package/dist/OpenAiConfig.d.ts +88 -10
- package/dist/OpenAiConfig.d.ts.map +1 -1
- package/dist/OpenAiConfig.js +42 -7
- package/dist/OpenAiConfig.js.map +1 -1
- package/dist/OpenAiEmbeddingModel.d.ts +188 -0
- package/dist/OpenAiEmbeddingModel.d.ts.map +1 -0
- package/dist/OpenAiEmbeddingModel.js +194 -0
- package/dist/OpenAiEmbeddingModel.js.map +1 -0
- package/dist/OpenAiError.d.ts +168 -35
- package/dist/OpenAiError.d.ts.map +1 -1
- package/dist/OpenAiError.js +1 -1
- package/dist/OpenAiLanguageModel.d.ts +357 -63
- package/dist/OpenAiLanguageModel.d.ts.map +1 -1
- package/dist/OpenAiLanguageModel.js +390 -168
- package/dist/OpenAiLanguageModel.js.map +1 -1
- package/dist/OpenAiSchema.d.ts +2325 -0
- package/dist/OpenAiSchema.d.ts.map +1 -0
- package/dist/OpenAiSchema.js +811 -0
- package/dist/OpenAiSchema.js.map +1 -0
- package/dist/OpenAiTelemetry.d.ts +63 -22
- package/dist/OpenAiTelemetry.d.ts.map +1 -1
- package/dist/OpenAiTelemetry.js +20 -10
- package/dist/OpenAiTelemetry.js.map +1 -1
- package/dist/OpenAiTool.d.ts +157 -67
- package/dist/OpenAiTool.d.ts.map +1 -1
- package/dist/OpenAiTool.js +125 -39
- package/dist/OpenAiTool.js.map +1 -1
- package/dist/index.d.ts +19 -33
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +19 -33
- package/dist/index.js.map +1 -1
- package/dist/internal/errors.js +4 -4
- package/dist/internal/errors.js.map +1 -1
- package/dist/internal/utilities.js +0 -4
- package/dist/internal/utilities.js.map +1 -1
- package/package.json +3 -3
- package/src/Generated.ts +9720 -4890
- package/src/OpenAiClient.ts +499 -98
- package/src/OpenAiClientGenerated.ts +202 -0
- package/src/OpenAiConfig.ts +89 -11
- package/src/OpenAiEmbeddingModel.ts +332 -0
- package/src/OpenAiError.ts +170 -35
- package/src/OpenAiLanguageModel.ts +776 -169
- package/src/OpenAiSchema.ts +1286 -0
- package/src/OpenAiTelemetry.ts +69 -28
- package/src/OpenAiTool.ts +126 -40
- package/src/index.ts +22 -33
- package/src/internal/errors.ts +6 -4
- package/src/internal/utilities.ts +0 -6
|
@@ -1,62 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The `OpenAiLanguageModel` module provides the OpenAI Responses API
|
|
3
|
+
* implementation of Effect AI's `LanguageModel` service. It translates Effect
|
|
4
|
+
* AI prompts, files, tools, structured output requests, reasoning metadata, and
|
|
5
|
+
* provider options into OpenAI response requests, then converts OpenAI
|
|
6
|
+
* non-streaming or streaming response results back into Effect AI response
|
|
7
|
+
* content and metadata.
|
|
8
|
+
*
|
|
9
|
+
* @since 4.0.0
|
|
10
|
+
*/
|
|
11
|
+
import * as Context from "effect/Context";
|
|
1
12
|
import * as Effect from "effect/Effect";
|
|
2
13
|
import * as Layer from "effect/Layer";
|
|
3
14
|
import * as Schema from "effect/Schema";
|
|
4
|
-
import * as ServiceMap from "effect/ServiceMap";
|
|
5
15
|
import * as LanguageModel from "effect/unstable/ai/LanguageModel";
|
|
6
16
|
import * as AiModel from "effect/unstable/ai/Model";
|
|
7
|
-
import * as Generated from "./Generated.ts";
|
|
8
17
|
import { OpenAiClient } from "./OpenAiClient.ts";
|
|
18
|
+
import type * as OpenAiSchema from "./OpenAiSchema.ts";
|
|
9
19
|
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"]>;
|
|
20
|
+
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
21
|
/**
|
|
12
|
-
*
|
|
22
|
+
* OpenAI model identifiers supported by the Responses API language model.
|
|
23
|
+
*
|
|
13
24
|
* @category models
|
|
25
|
+
* @since 4.0.0
|
|
14
26
|
*/
|
|
15
27
|
export type Model = typeof ResponseModelIds.Encoded | typeof SharedModelIds.Encoded;
|
|
16
28
|
/**
|
|
17
29
|
* Image detail level for vision requests.
|
|
18
30
|
*/
|
|
19
31
|
type ImageDetail = "auto" | "low" | "high";
|
|
20
|
-
declare const Config_base:
|
|
21
|
-
readonly metadata?: {
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
readonly
|
|
25
|
-
readonly
|
|
26
|
-
readonly
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
readonly
|
|
32
|
-
readonly
|
|
33
|
-
readonly
|
|
34
|
-
readonly
|
|
35
|
-
|
|
36
|
-
|
|
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;
|
|
32
|
+
declare const Config_base: Context.ServiceClass<Config, "@effect/ai-openai/OpenAiLanguageModel/Config", {
|
|
33
|
+
readonly metadata?: {
|
|
34
|
+
readonly [x: string]: string;
|
|
35
|
+
} | undefined;
|
|
36
|
+
readonly top_logprobs?: number | undefined;
|
|
37
|
+
readonly user?: string | undefined;
|
|
38
|
+
readonly model?: string | undefined;
|
|
39
|
+
readonly temperature?: number | undefined;
|
|
40
|
+
readonly top_p?: number | undefined;
|
|
41
|
+
readonly background?: boolean | undefined;
|
|
42
|
+
readonly conversation?: string | undefined;
|
|
43
|
+
readonly modalities?: readonly ("text" | "audio")[] | undefined;
|
|
44
|
+
readonly service_tier?: string | undefined;
|
|
45
|
+
readonly seed?: number | undefined;
|
|
46
|
+
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;
|
|
47
|
+
readonly instructions?: string | undefined;
|
|
48
|
+
readonly max_output_tokens?: number | undefined;
|
|
43
49
|
readonly reasoning?: {
|
|
44
|
-
readonly summary?: "auto" | "concise" | "detailed" |
|
|
45
|
-
readonly effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" |
|
|
46
|
-
readonly generate_summary?: "auto" | "concise" | "detailed" |
|
|
47
|
-
} |
|
|
48
|
-
readonly truncation?: "auto" | "disabled" |
|
|
49
|
-
readonly
|
|
50
|
-
readonly
|
|
51
|
-
readonly
|
|
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;
|
|
50
|
+
readonly summary?: "auto" | "concise" | "detailed" | undefined;
|
|
51
|
+
readonly effort?: "low" | "high" | "none" | "minimal" | "medium" | "xhigh" | undefined;
|
|
52
|
+
readonly generate_summary?: "auto" | "concise" | "detailed" | undefined;
|
|
53
|
+
} | undefined;
|
|
54
|
+
readonly truncation?: "auto" | "disabled" | undefined;
|
|
55
|
+
readonly store?: boolean | undefined;
|
|
56
|
+
readonly previous_response_id?: string | undefined;
|
|
57
|
+
readonly max_tool_calls?: number | undefined;
|
|
60
58
|
readonly fileIdPrefixes?: readonly string[] | undefined;
|
|
61
59
|
readonly text?: {
|
|
62
60
|
/**
|
|
@@ -77,15 +75,36 @@ declare const Config_base: ServiceMap.ServiceClass<Config, "@effect/ai-openai/Op
|
|
|
77
75
|
readonly strictJsonSchema?: boolean | undefined | undefined;
|
|
78
76
|
}>;
|
|
79
77
|
/**
|
|
80
|
-
*
|
|
78
|
+
* Context service for OpenAI language model configuration.
|
|
79
|
+
*
|
|
80
|
+
* **When to use**
|
|
81
|
+
*
|
|
82
|
+
* Use when you need to provide OpenAI Responses API request defaults through
|
|
83
|
+
* Effect context for language model operations.
|
|
84
|
+
*
|
|
85
|
+
* **Details**
|
|
86
|
+
*
|
|
87
|
+
* Config values are merged with the config object passed to `model`, `make`, or
|
|
88
|
+
* `layer`, with scoped context values taking precedence.
|
|
89
|
+
*
|
|
90
|
+
* @see {@link withConfigOverride} for scoping language model request overrides
|
|
81
91
|
*
|
|
82
|
-
* @since 1.0.0
|
|
83
92
|
* @category services
|
|
93
|
+
* @since 4.0.0
|
|
84
94
|
*/
|
|
85
95
|
export declare class Config extends Config_base {
|
|
86
96
|
}
|
|
87
97
|
declare module "effect/unstable/ai/Prompt" {
|
|
98
|
+
/**
|
|
99
|
+
* OpenAI-specific options for file prompt parts.
|
|
100
|
+
*
|
|
101
|
+
* @category request
|
|
102
|
+
* @since 4.0.0
|
|
103
|
+
*/
|
|
88
104
|
interface FilePartOptions extends ProviderOptions {
|
|
105
|
+
/**
|
|
106
|
+
* Provider-specific file options for the OpenAI Responses API.
|
|
107
|
+
*/
|
|
89
108
|
readonly openai?: {
|
|
90
109
|
/**
|
|
91
110
|
* The detail level of the image to be sent to the model. One of `high`, `low`, or `auto`. Defaults to `auto`.
|
|
@@ -93,7 +112,16 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
93
112
|
readonly imageDetail?: ImageDetail | null;
|
|
94
113
|
} | null;
|
|
95
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* OpenAI-specific options for reasoning prompt parts.
|
|
117
|
+
*
|
|
118
|
+
* @category request
|
|
119
|
+
* @since 4.0.0
|
|
120
|
+
*/
|
|
96
121
|
interface ReasoningPartOptions extends ProviderOptions {
|
|
122
|
+
/**
|
|
123
|
+
* Provider-specific reasoning options for the OpenAI Responses API.
|
|
124
|
+
*/
|
|
97
125
|
readonly openai?: {
|
|
98
126
|
/**
|
|
99
127
|
* The ID of the item to reference.
|
|
@@ -107,7 +135,16 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
107
135
|
readonly encryptedContent?: string | null;
|
|
108
136
|
} | null;
|
|
109
137
|
}
|
|
138
|
+
/**
|
|
139
|
+
* OpenAI-specific options for assistant tool-call prompt parts.
|
|
140
|
+
*
|
|
141
|
+
* @category request
|
|
142
|
+
* @since 4.0.0
|
|
143
|
+
*/
|
|
110
144
|
interface ToolCallPartOptions extends ProviderOptions {
|
|
145
|
+
/**
|
|
146
|
+
* Provider-specific tool-call options for the OpenAI Responses API.
|
|
147
|
+
*/
|
|
111
148
|
readonly openai?: {
|
|
112
149
|
/**
|
|
113
150
|
* The ID of the item to reference.
|
|
@@ -116,14 +153,23 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
116
153
|
/**
|
|
117
154
|
* The status of item.
|
|
118
155
|
*/
|
|
119
|
-
readonly status?: typeof
|
|
156
|
+
readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
|
|
120
157
|
/**
|
|
121
158
|
* The ID of the approval request.
|
|
122
159
|
*/
|
|
123
160
|
readonly approvalRequestId?: string | null;
|
|
124
161
|
} | null;
|
|
125
162
|
}
|
|
163
|
+
/**
|
|
164
|
+
* OpenAI-specific options for tool-result prompt parts.
|
|
165
|
+
*
|
|
166
|
+
* @category request
|
|
167
|
+
* @since 4.0.0
|
|
168
|
+
*/
|
|
126
169
|
interface ToolResultPartOptions extends ProviderOptions {
|
|
170
|
+
/**
|
|
171
|
+
* Provider-specific tool-result options for the OpenAI Responses API.
|
|
172
|
+
*/
|
|
127
173
|
readonly openai?: {
|
|
128
174
|
/**
|
|
129
175
|
* The ID of the item to reference.
|
|
@@ -132,14 +178,23 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
132
178
|
/**
|
|
133
179
|
* The status of item.
|
|
134
180
|
*/
|
|
135
|
-
readonly status?: typeof
|
|
181
|
+
readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
|
|
136
182
|
/**
|
|
137
183
|
* The ID of the approval request.
|
|
138
184
|
*/
|
|
139
185
|
readonly approvalId?: string | null;
|
|
140
186
|
} | null;
|
|
141
187
|
}
|
|
188
|
+
/**
|
|
189
|
+
* OpenAI-specific options for text prompt parts.
|
|
190
|
+
*
|
|
191
|
+
* @category request
|
|
192
|
+
* @since 4.0.0
|
|
193
|
+
*/
|
|
142
194
|
interface TextPartOptions extends ProviderOptions {
|
|
195
|
+
/**
|
|
196
|
+
* Provider-specific text options for the OpenAI Responses API.
|
|
197
|
+
*/
|
|
143
198
|
readonly openai?: {
|
|
144
199
|
/**
|
|
145
200
|
* The ID of the item to reference.
|
|
@@ -148,17 +203,29 @@ declare module "effect/unstable/ai/Prompt" {
|
|
|
148
203
|
/**
|
|
149
204
|
* The status of item.
|
|
150
205
|
*/
|
|
151
|
-
readonly status?: typeof
|
|
206
|
+
readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
|
|
152
207
|
/**
|
|
153
208
|
* A list of annotations that apply to the output text.
|
|
154
209
|
*/
|
|
155
|
-
readonly annotations?: ReadonlyArray<typeof
|
|
210
|
+
readonly annotations?: ReadonlyArray<typeof OpenAiSchema.Annotation.Encoded> | null;
|
|
156
211
|
} | null;
|
|
157
212
|
}
|
|
158
213
|
}
|
|
159
214
|
declare module "effect/unstable/ai/Response" {
|
|
215
|
+
/**
|
|
216
|
+
* OpenAI metadata attached to a complete text response part.
|
|
217
|
+
*
|
|
218
|
+
* @category response
|
|
219
|
+
* @since 4.0.0
|
|
220
|
+
*/
|
|
160
221
|
interface TextPartMetadata extends ProviderMetadata {
|
|
222
|
+
/**
|
|
223
|
+
* Provider-specific metadata returned for the text part.
|
|
224
|
+
*/
|
|
161
225
|
readonly openai?: {
|
|
226
|
+
/**
|
|
227
|
+
* The OpenAI item ID associated with the text part.
|
|
228
|
+
*/
|
|
162
229
|
readonly itemId?: string | null;
|
|
163
230
|
/**
|
|
164
231
|
* If the model emits a refusal content part, the refusal explanation
|
|
@@ -169,54 +236,162 @@ declare module "effect/unstable/ai/Response" {
|
|
|
169
236
|
/**
|
|
170
237
|
* The status of item.
|
|
171
238
|
*/
|
|
172
|
-
readonly status?: typeof
|
|
239
|
+
readonly status?: typeof OpenAiSchema.MessageStatus.Encoded | null;
|
|
173
240
|
/**
|
|
174
241
|
* The text content part annotations.
|
|
175
242
|
*/
|
|
176
|
-
readonly annotations?: ReadonlyArray<typeof
|
|
243
|
+
readonly annotations?: ReadonlyArray<typeof OpenAiSchema.Annotation.Encoded> | null;
|
|
177
244
|
};
|
|
178
245
|
}
|
|
246
|
+
/**
|
|
247
|
+
* OpenAI metadata emitted when a streamed text part starts.
|
|
248
|
+
*
|
|
249
|
+
* @category response
|
|
250
|
+
* @since 4.0.0
|
|
251
|
+
*/
|
|
179
252
|
interface TextStartPartMetadata extends ProviderMetadata {
|
|
253
|
+
/**
|
|
254
|
+
* Provider-specific metadata returned for the streamed text start.
|
|
255
|
+
*/
|
|
180
256
|
readonly openai?: {
|
|
257
|
+
/**
|
|
258
|
+
* The OpenAI item ID associated with the streamed text part.
|
|
259
|
+
*/
|
|
181
260
|
readonly itemId?: string | null;
|
|
182
261
|
} | null;
|
|
183
262
|
}
|
|
263
|
+
/**
|
|
264
|
+
* OpenAI metadata emitted when a streamed text part ends.
|
|
265
|
+
*
|
|
266
|
+
* @category response
|
|
267
|
+
* @since 4.0.0
|
|
268
|
+
*/
|
|
184
269
|
interface TextEndPartMetadata extends ProviderMetadata {
|
|
270
|
+
/**
|
|
271
|
+
* Provider-specific metadata returned for the streamed text end.
|
|
272
|
+
*/
|
|
185
273
|
readonly openai?: {
|
|
274
|
+
/**
|
|
275
|
+
* The OpenAI item ID associated with the streamed text part.
|
|
276
|
+
*/
|
|
186
277
|
readonly itemId?: string | null;
|
|
187
|
-
|
|
278
|
+
/**
|
|
279
|
+
* The annotations collected for the completed streamed text part.
|
|
280
|
+
*/
|
|
281
|
+
readonly annotations?: ReadonlyArray<typeof OpenAiSchema.Annotation.Encoded> | null;
|
|
188
282
|
} | null;
|
|
189
283
|
}
|
|
284
|
+
/**
|
|
285
|
+
* OpenAI metadata attached to a complete reasoning response part.
|
|
286
|
+
*
|
|
287
|
+
* @category response
|
|
288
|
+
* @since 4.0.0
|
|
289
|
+
*/
|
|
190
290
|
interface ReasoningPartMetadata extends ProviderMetadata {
|
|
291
|
+
/**
|
|
292
|
+
* Provider-specific metadata returned for the reasoning part.
|
|
293
|
+
*/
|
|
191
294
|
readonly openai?: {
|
|
295
|
+
/**
|
|
296
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
297
|
+
*/
|
|
192
298
|
readonly itemId?: string | null;
|
|
299
|
+
/**
|
|
300
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
301
|
+
*/
|
|
193
302
|
readonly encryptedContent?: string | null;
|
|
194
303
|
} | null;
|
|
195
304
|
}
|
|
305
|
+
/**
|
|
306
|
+
* OpenAI metadata emitted when a streamed reasoning part starts.
|
|
307
|
+
*
|
|
308
|
+
* @category response
|
|
309
|
+
* @since 4.0.0
|
|
310
|
+
*/
|
|
196
311
|
interface ReasoningStartPartMetadata extends ProviderMetadata {
|
|
312
|
+
/**
|
|
313
|
+
* Provider-specific metadata returned for the streamed reasoning start.
|
|
314
|
+
*/
|
|
197
315
|
readonly openai?: {
|
|
316
|
+
/**
|
|
317
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
318
|
+
*/
|
|
198
319
|
readonly itemId?: string | null;
|
|
320
|
+
/**
|
|
321
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
322
|
+
*/
|
|
199
323
|
readonly encryptedContent?: string | null;
|
|
200
324
|
} | null;
|
|
201
325
|
}
|
|
326
|
+
/**
|
|
327
|
+
* OpenAI metadata emitted for a streamed reasoning delta.
|
|
328
|
+
*
|
|
329
|
+
* @category response
|
|
330
|
+
* @since 4.0.0
|
|
331
|
+
*/
|
|
202
332
|
interface ReasoningDeltaPartMetadata extends ProviderMetadata {
|
|
333
|
+
/**
|
|
334
|
+
* Provider-specific metadata returned for the streamed reasoning delta.
|
|
335
|
+
*/
|
|
203
336
|
readonly openai?: {
|
|
337
|
+
/**
|
|
338
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
339
|
+
*/
|
|
204
340
|
readonly itemId?: string | null;
|
|
205
341
|
} | null;
|
|
206
342
|
}
|
|
343
|
+
/**
|
|
344
|
+
* OpenAI metadata emitted when a streamed reasoning part ends.
|
|
345
|
+
*
|
|
346
|
+
* @category response
|
|
347
|
+
* @since 4.0.0
|
|
348
|
+
*/
|
|
207
349
|
interface ReasoningEndPartMetadata extends ProviderMetadata {
|
|
350
|
+
/**
|
|
351
|
+
* Provider-specific metadata returned for the streamed reasoning end.
|
|
352
|
+
*/
|
|
208
353
|
readonly openai?: {
|
|
354
|
+
/**
|
|
355
|
+
* The OpenAI item ID associated with the reasoning part.
|
|
356
|
+
*/
|
|
209
357
|
readonly itemId?: string | null;
|
|
358
|
+
/**
|
|
359
|
+
* Encrypted reasoning content that can be sent back in later requests.
|
|
360
|
+
*/
|
|
210
361
|
readonly encryptedContent?: string;
|
|
211
362
|
} | null;
|
|
212
363
|
}
|
|
364
|
+
/**
|
|
365
|
+
* OpenAI metadata attached to tool-call response parts.
|
|
366
|
+
*
|
|
367
|
+
* @category response
|
|
368
|
+
* @since 4.0.0
|
|
369
|
+
*/
|
|
213
370
|
interface ToolCallPartMetadata extends ProviderMetadata {
|
|
371
|
+
/**
|
|
372
|
+
* Provider-specific metadata returned for the tool call.
|
|
373
|
+
*/
|
|
214
374
|
readonly openai?: {
|
|
375
|
+
/**
|
|
376
|
+
* The OpenAI item ID associated with the tool call.
|
|
377
|
+
*/
|
|
215
378
|
readonly itemId?: string | null;
|
|
216
379
|
} | null;
|
|
217
380
|
}
|
|
381
|
+
/**
|
|
382
|
+
* OpenAI metadata attached to document source citations.
|
|
383
|
+
*
|
|
384
|
+
* @category response
|
|
385
|
+
* @since 4.0.0
|
|
386
|
+
*/
|
|
218
387
|
interface DocumentSourcePartMetadata extends ProviderMetadata {
|
|
388
|
+
/**
|
|
389
|
+
* Provider-specific citation metadata for the OpenAI Responses API.
|
|
390
|
+
*/
|
|
219
391
|
readonly openai?: {
|
|
392
|
+
/**
|
|
393
|
+
* Identifies a citation to an uploaded file.
|
|
394
|
+
*/
|
|
220
395
|
readonly type: "file_citation";
|
|
221
396
|
/**
|
|
222
397
|
* The index of the file in the list of files.
|
|
@@ -227,6 +402,9 @@ declare module "effect/unstable/ai/Response" {
|
|
|
227
402
|
*/
|
|
228
403
|
readonly fileId: string;
|
|
229
404
|
} | {
|
|
405
|
+
/**
|
|
406
|
+
* Identifies a citation to a generated file path.
|
|
407
|
+
*/
|
|
230
408
|
readonly type: "file_path";
|
|
231
409
|
/**
|
|
232
410
|
* The index of the file in the list of files.
|
|
@@ -237,6 +415,9 @@ declare module "effect/unstable/ai/Response" {
|
|
|
237
415
|
*/
|
|
238
416
|
readonly fileId: string;
|
|
239
417
|
} | {
|
|
418
|
+
/**
|
|
419
|
+
* Identifies a citation to a file inside a container.
|
|
420
|
+
*/
|
|
240
421
|
readonly type: "container_file_citation";
|
|
241
422
|
/**
|
|
242
423
|
* The ID of the file.
|
|
@@ -248,8 +429,20 @@ declare module "effect/unstable/ai/Response" {
|
|
|
248
429
|
readonly containerId: string;
|
|
249
430
|
} | null;
|
|
250
431
|
}
|
|
432
|
+
/**
|
|
433
|
+
* OpenAI metadata attached to URL source citations.
|
|
434
|
+
*
|
|
435
|
+
* @category response
|
|
436
|
+
* @since 4.0.0
|
|
437
|
+
*/
|
|
251
438
|
interface UrlSourcePartMetadata extends ProviderMetadata {
|
|
439
|
+
/**
|
|
440
|
+
* Provider-specific URL citation metadata for the OpenAI Responses API.
|
|
441
|
+
*/
|
|
252
442
|
readonly openai?: {
|
|
443
|
+
/**
|
|
444
|
+
* Identifies a citation to a URL.
|
|
445
|
+
*/
|
|
253
446
|
readonly type: "url_citation";
|
|
254
447
|
/**
|
|
255
448
|
* The index of the first character of the URL citation in the message.
|
|
@@ -261,56 +454,157 @@ declare module "effect/unstable/ai/Response" {
|
|
|
261
454
|
readonly endIndex: number;
|
|
262
455
|
} | null;
|
|
263
456
|
}
|
|
457
|
+
/**
|
|
458
|
+
* OpenAI metadata attached to finish response parts.
|
|
459
|
+
*
|
|
460
|
+
* @category response
|
|
461
|
+
* @since 4.0.0
|
|
462
|
+
*/
|
|
264
463
|
interface FinishPartMetadata extends ProviderMetadata {
|
|
464
|
+
/**
|
|
465
|
+
* Provider-specific metadata returned when generation finishes.
|
|
466
|
+
*/
|
|
265
467
|
readonly openai?: {
|
|
468
|
+
/**
|
|
469
|
+
* The service tier reported by OpenAI for the response.
|
|
470
|
+
*/
|
|
266
471
|
readonly serviceTier?: "default" | "auto" | "flex" | "scale" | "priority" | null;
|
|
267
472
|
} | null;
|
|
268
473
|
}
|
|
269
474
|
}
|
|
270
475
|
/**
|
|
271
|
-
*
|
|
476
|
+
* Creates an OpenAI model descriptor that can be provided with
|
|
477
|
+
* `Effect.provide`.
|
|
478
|
+
*
|
|
479
|
+
* **When to use**
|
|
480
|
+
*
|
|
481
|
+
* Use when you want an OpenAI language model value that carries provider and
|
|
482
|
+
* model metadata and can be supplied directly to an Effect program.
|
|
483
|
+
*
|
|
484
|
+
* @see {@link layer} for creating a `LanguageModel.LanguageModel` layer directly
|
|
485
|
+
* @see {@link make} for constructing the language model service effectfully
|
|
486
|
+
*
|
|
272
487
|
* @category constructors
|
|
488
|
+
* @since 4.0.0
|
|
273
489
|
*/
|
|
274
490
|
export declare const model: (model: (string & {}) | Model, config?: Omit<typeof Config.Service, "model">) => AiModel.Model<"openai", LanguageModel.LanguageModel, OpenAiClient>;
|
|
275
491
|
/**
|
|
276
|
-
* Creates an OpenAI
|
|
492
|
+
* Creates an OpenAI `LanguageModel` service from a model identifier and
|
|
493
|
+
* optional request defaults.
|
|
494
|
+
*
|
|
495
|
+
* **When to use**
|
|
496
|
+
*
|
|
497
|
+
* Use to construct an OpenAI Responses API language model service backed by
|
|
498
|
+
* `OpenAiClient`.
|
|
499
|
+
*
|
|
500
|
+
* **Details**
|
|
501
|
+
*
|
|
502
|
+
* The returned effect requires `OpenAiClient`. Request defaults from the
|
|
503
|
+
* `config` option are merged with any `Config` service in the context, with
|
|
504
|
+
* context values taking precedence. The service supports both `generateText`
|
|
505
|
+
* and `streamText`.
|
|
506
|
+
*
|
|
507
|
+
* @see {@link layer} for providing the service as a `Layer`
|
|
508
|
+
* @see {@link model} for creating a model descriptor for `Effect.provide`
|
|
277
509
|
*
|
|
278
|
-
* @since 1.0.0
|
|
279
510
|
* @category constructors
|
|
511
|
+
* @since 4.0.0
|
|
280
512
|
*/
|
|
281
513
|
export declare const make: (args_0: {
|
|
282
514
|
readonly model: (string & {}) | Model;
|
|
283
515
|
readonly config?: Omit<typeof Config.Service, "model"> | undefined;
|
|
284
516
|
}) => Effect.Effect<LanguageModel.Service, never, OpenAiClient>;
|
|
285
517
|
/**
|
|
286
|
-
* Creates a layer
|
|
518
|
+
* Creates a layer that provides the OpenAI `LanguageModel.LanguageModel`
|
|
519
|
+
* service.
|
|
520
|
+
*
|
|
521
|
+
* **When to use**
|
|
522
|
+
*
|
|
523
|
+
* Use when composing application layers and you want OpenAI to satisfy
|
|
524
|
+
* `LanguageModel.LanguageModel` while supplying `OpenAiClient` from another
|
|
525
|
+
* layer.
|
|
526
|
+
*
|
|
527
|
+
* **Details**
|
|
528
|
+
*
|
|
529
|
+
* The `config` option supplies request defaults for the selected model. Scoped
|
|
530
|
+
* values from `withConfigOverride` are merged when each request is built and
|
|
531
|
+
* take precedence over these defaults.
|
|
532
|
+
*
|
|
533
|
+
* @see {@link make} for constructing the language model service effectfully
|
|
534
|
+
* @see {@link model} for creating a model descriptor for `Effect.provide`
|
|
535
|
+
* @see {@link withConfigOverride} for scoped request configuration overrides
|
|
287
536
|
*
|
|
288
|
-
* @since 1.0.0
|
|
289
537
|
* @category layers
|
|
538
|
+
* @since 4.0.0
|
|
290
539
|
*/
|
|
291
540
|
export declare const layer: (options: {
|
|
292
541
|
readonly model: (string & {}) | Model;
|
|
293
542
|
readonly config?: Omit<typeof Config.Service, "model"> | undefined;
|
|
294
543
|
}) => Layer.Layer<LanguageModel.LanguageModel, never, OpenAiClient>;
|
|
295
544
|
/**
|
|
296
|
-
* Provides config overrides for OpenAI language model operations.
|
|
545
|
+
* Provides scoped config overrides for OpenAI language model operations.
|
|
546
|
+
*
|
|
547
|
+
* **When to use**
|
|
548
|
+
*
|
|
549
|
+
* Use to apply OpenAI Responses API config overrides around one or more
|
|
550
|
+
* language model operations without changing the defaults passed to `model`,
|
|
551
|
+
* `make`, or `layer`.
|
|
552
|
+
*
|
|
553
|
+
* **Details**
|
|
554
|
+
*
|
|
555
|
+
* The override is dual, so it can be used in pipe form or as
|
|
556
|
+
* `withConfigOverride(effect, overrides)`. Overrides are merged with any
|
|
557
|
+
* existing `Config` service in the current context, and the override values take
|
|
558
|
+
* precedence.
|
|
559
|
+
*
|
|
560
|
+
* @see {@link Config} for the scoped configuration service consumed by this function
|
|
297
561
|
*
|
|
298
|
-
* @since 1.0.0
|
|
299
562
|
* @category configuration
|
|
563
|
+
* @since 4.0.0
|
|
300
564
|
*/
|
|
301
565
|
export declare const withConfigOverride: {
|
|
302
566
|
/**
|
|
303
|
-
* Provides config overrides for OpenAI language model operations.
|
|
567
|
+
* Provides scoped config overrides for OpenAI language model operations.
|
|
568
|
+
*
|
|
569
|
+
* **When to use**
|
|
570
|
+
*
|
|
571
|
+
* Use to apply OpenAI Responses API config overrides around one or more
|
|
572
|
+
* language model operations without changing the defaults passed to `model`,
|
|
573
|
+
* `make`, or `layer`.
|
|
574
|
+
*
|
|
575
|
+
* **Details**
|
|
576
|
+
*
|
|
577
|
+
* The override is dual, so it can be used in pipe form or as
|
|
578
|
+
* `withConfigOverride(effect, overrides)`. Overrides are merged with any
|
|
579
|
+
* existing `Config` service in the current context, and the override values take
|
|
580
|
+
* precedence.
|
|
581
|
+
*
|
|
582
|
+
* @see {@link Config} for the scoped configuration service consumed by this function
|
|
304
583
|
*
|
|
305
|
-
* @since 1.0.0
|
|
306
584
|
* @category configuration
|
|
585
|
+
* @since 4.0.0
|
|
307
586
|
*/
|
|
308
587
|
(overrides: typeof Config.Service): <A, E, R>(self: Effect.Effect<A, E, R>) => Effect.Effect<A, E, Exclude<R, Config>>;
|
|
309
588
|
/**
|
|
310
|
-
* Provides config overrides for OpenAI language model operations.
|
|
589
|
+
* Provides scoped config overrides for OpenAI language model operations.
|
|
590
|
+
*
|
|
591
|
+
* **When to use**
|
|
592
|
+
*
|
|
593
|
+
* Use to apply OpenAI Responses API config overrides around one or more
|
|
594
|
+
* language model operations without changing the defaults passed to `model`,
|
|
595
|
+
* `make`, or `layer`.
|
|
596
|
+
*
|
|
597
|
+
* **Details**
|
|
598
|
+
*
|
|
599
|
+
* The override is dual, so it can be used in pipe form or as
|
|
600
|
+
* `withConfigOverride(effect, overrides)`. Overrides are merged with any
|
|
601
|
+
* existing `Config` service in the current context, and the override values take
|
|
602
|
+
* precedence.
|
|
603
|
+
*
|
|
604
|
+
* @see {@link Config} for the scoped configuration service consumed by this function
|
|
311
605
|
*
|
|
312
|
-
* @since 1.0.0
|
|
313
606
|
* @category configuration
|
|
607
|
+
* @since 4.0.0
|
|
314
608
|
*/
|
|
315
609
|
<A, E, R>(self: Effect.Effect<A, E, R>, overrides: typeof Config.Service): Effect.Effect<A, E, Exclude<R, Config>>;
|
|
316
610
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAiLanguageModel.d.ts","sourceRoot":"","sources":["../src/OpenAiLanguageModel.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"OpenAiLanguageModel.d.ts","sourceRoot":"","sources":["../src/OpenAiLanguageModel.ts"],"names":[],"mappings":"AAAA;;;;;;;;;GASG;AACH,OAAO,KAAK,OAAO,MAAM,gBAAgB,CAAA;AAEzC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAGvC,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAIrC,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AAOvC,OAAO,KAAK,aAAa,MAAM,kCAAkC,CAAA;AACjE,OAAO,KAAK,OAAO,MAAM,0BAA0B,CAAA;AASnD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAA;AAChD,OAAO,KAAK,KAAK,YAAY,MAAM,mBAAmB,CAAA;AAItD,QAAA,MAAM,gBAAgB,8UAAyC,CAAA;AAC/D,QAAA,MAAM,cAAc,qlDAAsC,CAAA;AAE1D;;;;;GAKG;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;oBA8CpB;QACd;;;;;;WAMG;QACH,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,GAAG,QAAQ,GAAG,MAAM,GAAG,SAAS,CAAA;KAC3D,GAAG,SAAS;IACb;;;;OAIG;;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