@effect/ai-openai 4.0.0-beta.69 → 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.
- package/dist/Generated.d.ts +2851 -1165
- package/dist/Generated.d.ts.map +1 -1
- package/dist/Generated.js +2 -2
- package/dist/Generated.js.map +1 -1
- package/dist/OpenAiClient.d.ts +9 -6
- package/dist/OpenAiClient.d.ts.map +1 -1
- package/dist/OpenAiClient.js +8 -6
- package/dist/OpenAiClient.js.map +1 -1
- package/dist/OpenAiError.d.ts +22 -0
- package/dist/OpenAiError.d.ts.map +1 -1
- package/dist/OpenAiSchema.d.ts +1 -0
- package/dist/OpenAiSchema.d.ts.map +1 -1
- package/dist/OpenAiSchema.js +1 -0
- package/dist/OpenAiSchema.js.map +1 -1
- package/dist/OpenAiTelemetry.d.ts +14 -4
- package/dist/OpenAiTelemetry.d.ts.map +1 -1
- package/dist/OpenAiTelemetry.js +3 -1
- package/dist/OpenAiTelemetry.js.map +1 -1
- package/dist/OpenAiTool.d.ts +23 -35
- package/dist/OpenAiTool.d.ts.map +1 -1
- package/dist/OpenAiTool.js +21 -33
- package/dist/OpenAiTool.js.map +1 -1
- package/package.json +3 -3
- package/src/Generated.ts +2430 -775
- package/src/OpenAiClient.ts +9 -6
- package/src/OpenAiError.ts +22 -0
- package/src/OpenAiSchema.ts +1 -0
- package/src/OpenAiTelemetry.ts +14 -4
- package/src/OpenAiTool.ts +21 -33
package/dist/OpenAiTool.d.ts
CHANGED
|
@@ -16,11 +16,9 @@ import * as Tool from "effect/unstable/ai/Tool";
|
|
|
16
16
|
*/
|
|
17
17
|
export type OpenAiTool = ReturnType<typeof ApplyPatch> | ReturnType<typeof CodeInterpreter> | ReturnType<typeof FileSearch> | ReturnType<typeof Shell> | ReturnType<typeof ImageGeneration> | ReturnType<typeof LocalShell> | ReturnType<typeof Mcp> | ReturnType<typeof WebSearch> | ReturnType<typeof WebSearchPreview>;
|
|
18
18
|
/**
|
|
19
|
-
* OpenAI Apply Patch tool
|
|
20
|
-
*
|
|
21
|
-
*
|
|
22
|
-
* This is a local tool that runs in your environment and requires a handler
|
|
23
|
-
* to execute file operations.
|
|
19
|
+
* OpenAI Apply Patch tool that allows the model to apply diffs by creating,
|
|
20
|
+
* deleting, or updating files. This local tool runs in your environment and
|
|
21
|
+
* requires a handler to execute file operations.
|
|
24
22
|
*
|
|
25
23
|
* @category tools
|
|
26
24
|
* @since 4.0.0
|
|
@@ -52,9 +50,8 @@ export declare const ApplyPatch: <Mode extends Tool.FailureMode | undefined = un
|
|
|
52
50
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
53
51
|
}, true>;
|
|
54
52
|
/**
|
|
55
|
-
* OpenAI Code Interpreter tool
|
|
56
|
-
*
|
|
57
|
-
* Allows the model to execute Python code in a sandboxed environment.
|
|
53
|
+
* OpenAI Code Interpreter tool that allows the model to execute Python code in
|
|
54
|
+
* a sandboxed environment.
|
|
58
55
|
*
|
|
59
56
|
* @category tools
|
|
60
57
|
* @since 4.0.0
|
|
@@ -112,9 +109,8 @@ export declare const CodeInterpreter: <Mode extends Tool.FailureMode | undefined
|
|
|
112
109
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
113
110
|
}, false>;
|
|
114
111
|
/**
|
|
115
|
-
* OpenAI File Search tool
|
|
116
|
-
*
|
|
117
|
-
* Enables the model to search through uploaded files and vector stores.
|
|
112
|
+
* OpenAI File Search tool that enables the model to search through uploaded
|
|
113
|
+
* files and vector stores.
|
|
118
114
|
*
|
|
119
115
|
* @category tools
|
|
120
116
|
* @since 4.0.0
|
|
@@ -179,9 +175,8 @@ export declare const FileSearch: <Mode extends Tool.FailureMode | undefined = un
|
|
|
179
175
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
180
176
|
}, false>;
|
|
181
177
|
/**
|
|
182
|
-
* OpenAI Image Generation tool
|
|
183
|
-
*
|
|
184
|
-
* Enables the model to generate images using the GPT image models.
|
|
178
|
+
* OpenAI Image Generation tool that enables the model to generate images using
|
|
179
|
+
* the GPT image models.
|
|
185
180
|
*
|
|
186
181
|
* @category tools
|
|
187
182
|
* @since 4.0.0
|
|
@@ -199,7 +194,7 @@ export declare const ImageGeneration: <Mode extends Tool.FailureMode | undefined
|
|
|
199
194
|
readonly output_format?: "png" | "webp" | "jpeg";
|
|
200
195
|
readonly partial_images?: number;
|
|
201
196
|
readonly quality?: "auto" | "low" | "high" | "medium";
|
|
202
|
-
readonly size?:
|
|
197
|
+
readonly size?: string;
|
|
203
198
|
}) => Tool.ProviderDefined<"openai.image_generation", "OpenAiImageGeneration", {
|
|
204
199
|
readonly args: Schema.Struct<{
|
|
205
200
|
readonly background: Schema.optionalKey<Schema.Literals<readonly ["transparent", "opaque", "auto"]>>;
|
|
@@ -214,7 +209,7 @@ export declare const ImageGeneration: <Mode extends Tool.FailureMode | undefined
|
|
|
214
209
|
readonly output_format: Schema.optionalKey<Schema.Literals<readonly ["png", "webp", "jpeg"]>>;
|
|
215
210
|
readonly partial_images: Schema.optionalKey<Schema.Number>;
|
|
216
211
|
readonly quality: Schema.optionalKey<Schema.Literals<readonly ["low", "medium", "high", "auto"]>>;
|
|
217
|
-
readonly size: Schema.optionalKey<Schema.Literals<readonly ["1024x1024", "1024x1536", "1536x1024", "auto"]>>;
|
|
212
|
+
readonly size: Schema.optionalKey<Schema.Union<readonly [Schema.String, Schema.Literals<readonly ["1024x1024", "1024x1536", "1536x1024", "auto"]>]>>;
|
|
218
213
|
}>;
|
|
219
214
|
readonly parameters: Schema.Void;
|
|
220
215
|
readonly success: Schema.Struct<{
|
|
@@ -224,10 +219,9 @@ export declare const ImageGeneration: <Mode extends Tool.FailureMode | undefined
|
|
|
224
219
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
225
220
|
}, false>;
|
|
226
221
|
/**
|
|
227
|
-
* OpenAI Local Shell tool
|
|
228
|
-
*
|
|
229
|
-
*
|
|
230
|
-
* that runs in your environment and requires a handler to execute commands.
|
|
222
|
+
* OpenAI Local Shell tool that enables the model to run a command with a local
|
|
223
|
+
* shell. This local tool runs in your environment and requires a handler to
|
|
224
|
+
* execute commands.
|
|
231
225
|
*
|
|
232
226
|
* @category tools
|
|
233
227
|
* @since 4.0.0
|
|
@@ -253,10 +247,8 @@ export declare const LocalShell: <Mode extends Tool.FailureMode | undefined = un
|
|
|
253
247
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
254
248
|
}, true>;
|
|
255
249
|
/**
|
|
256
|
-
* OpenAI MCP tool
|
|
257
|
-
*
|
|
258
|
-
* Gives the model access to additional tools via remote Model Context Protocol
|
|
259
|
-
* (MCP) servers
|
|
250
|
+
* OpenAI MCP tool that gives the model access to additional tools via remote
|
|
251
|
+
* Model Context Protocol (MCP) servers.
|
|
260
252
|
*
|
|
261
253
|
* @category tools
|
|
262
254
|
* @since 4.0.0
|
|
@@ -316,11 +308,9 @@ export declare const Mcp: <Mode extends Tool.FailureMode | undefined = undefined
|
|
|
316
308
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
317
309
|
}, false>;
|
|
318
310
|
/**
|
|
319
|
-
* OpenAI Function Shell tool
|
|
320
|
-
*
|
|
321
|
-
*
|
|
322
|
-
* environment. This is a local tool that runs in your environment and requires
|
|
323
|
-
* a handler to execute commands.
|
|
311
|
+
* OpenAI Function Shell tool that enables the model to execute one or more shell
|
|
312
|
+
* commands in a managed environment. This local tool runs in your environment
|
|
313
|
+
* and requires a handler to execute commands.
|
|
324
314
|
*
|
|
325
315
|
* @category tools
|
|
326
316
|
* @since 4.0.0
|
|
@@ -353,9 +343,8 @@ export declare const Shell: <Mode extends Tool.FailureMode | undefined = undefin
|
|
|
353
343
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
354
344
|
}, true>;
|
|
355
345
|
/**
|
|
356
|
-
* OpenAI Web Search tool
|
|
357
|
-
*
|
|
358
|
-
* Enables the model to search the web for information.
|
|
346
|
+
* OpenAI Web Search tool that enables the model to search the web for
|
|
347
|
+
* information.
|
|
359
348
|
*
|
|
360
349
|
* @category tools
|
|
361
350
|
* @since 4.0.0
|
|
@@ -427,9 +416,8 @@ export declare const WebSearch: <Mode extends Tool.FailureMode | undefined = und
|
|
|
427
416
|
readonly failureMode: Mode extends undefined ? "error" : Mode;
|
|
428
417
|
}, false>;
|
|
429
418
|
/**
|
|
430
|
-
* OpenAI Web Search Preview tool
|
|
431
|
-
*
|
|
432
|
-
* Preview version of the web search tool with additional features.
|
|
419
|
+
* OpenAI Web Search Preview tool, a preview version of the web search tool with
|
|
420
|
+
* additional features.
|
|
433
421
|
*
|
|
434
422
|
* @category tools
|
|
435
423
|
* @since 4.0.0
|
package/dist/OpenAiTool.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAiTool.d.ts","sourceRoot":"","sources":["../src/OpenAiTool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,yBAAyB,CAAA;AAG/C;;;;;GAKG;AACH,MAAM,MAAM,UAAU,GAClB,UAAU,CAAC,OAAO,UAAU,CAAC,GAC7B,UAAU,CAAC,OAAO,eAAe,CAAC,GAClC,UAAU,CAAC,OAAO,UAAU,CAAC,GAC7B,UAAU,CAAC,OAAO,KAAK,CAAC,GACxB,UAAU,CAAC,OAAO,eAAe,CAAC,GAClC,UAAU,CAAC,OAAO,UAAU,CAAC,GAC7B,UAAU,CAAC,OAAO,GAAG,CAAC,GACtB,UAAU,CAAC,OAAO,SAAS,CAAC,GAC5B,UAAU,CAAC,OAAO,gBAAgB,CAAC,CAAA;AAEvC
|
|
1
|
+
{"version":3,"file":"OpenAiTool.d.ts","sourceRoot":"","sources":["../src/OpenAiTool.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AACH,OAAO,KAAK,MAAM,MAAM,eAAe,CAAA;AACvC,OAAO,KAAK,IAAI,MAAM,y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;GAMG;AACH,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SAY3B,CAAA"}
|
package/dist/OpenAiTool.js
CHANGED
|
@@ -10,11 +10,9 @@ import * as Schema from "effect/Schema";
|
|
|
10
10
|
import * as Tool from "effect/unstable/ai/Tool";
|
|
11
11
|
import * as Generated from "./Generated.js";
|
|
12
12
|
/**
|
|
13
|
-
* OpenAI Apply Patch tool
|
|
14
|
-
*
|
|
15
|
-
*
|
|
16
|
-
* This is a local tool that runs in your environment and requires a handler
|
|
17
|
-
* to execute file operations.
|
|
13
|
+
* OpenAI Apply Patch tool that allows the model to apply diffs by creating,
|
|
14
|
+
* deleting, or updating files. This local tool runs in your environment and
|
|
15
|
+
* requires a handler to execute file operations.
|
|
18
16
|
*
|
|
19
17
|
* @category tools
|
|
20
18
|
* @since 4.0.0
|
|
@@ -34,9 +32,8 @@ export const ApplyPatch = /*#__PURE__*/Tool.providerDefined({
|
|
|
34
32
|
})
|
|
35
33
|
});
|
|
36
34
|
/**
|
|
37
|
-
* OpenAI Code Interpreter tool
|
|
38
|
-
*
|
|
39
|
-
* Allows the model to execute Python code in a sandboxed environment.
|
|
35
|
+
* OpenAI Code Interpreter tool that allows the model to execute Python code in
|
|
36
|
+
* a sandboxed environment.
|
|
40
37
|
*
|
|
41
38
|
* @category tools
|
|
42
39
|
* @since 4.0.0
|
|
@@ -57,9 +54,8 @@ export const CodeInterpreter = /*#__PURE__*/Tool.providerDefined({
|
|
|
57
54
|
})
|
|
58
55
|
});
|
|
59
56
|
/**
|
|
60
|
-
* OpenAI File Search tool
|
|
61
|
-
*
|
|
62
|
-
* Enables the model to search through uploaded files and vector stores.
|
|
57
|
+
* OpenAI File Search tool that enables the model to search through uploaded
|
|
58
|
+
* files and vector stores.
|
|
63
59
|
*
|
|
64
60
|
* @category tools
|
|
65
61
|
* @since 4.0.0
|
|
@@ -81,9 +77,8 @@ export const FileSearch = /*#__PURE__*/Tool.providerDefined({
|
|
|
81
77
|
})
|
|
82
78
|
});
|
|
83
79
|
/**
|
|
84
|
-
* OpenAI Image Generation tool
|
|
85
|
-
*
|
|
86
|
-
* Enables the model to generate images using the GPT image models.
|
|
80
|
+
* OpenAI Image Generation tool that enables the model to generate images using
|
|
81
|
+
* the GPT image models.
|
|
87
82
|
*
|
|
88
83
|
* @category tools
|
|
89
84
|
* @since 4.0.0
|
|
@@ -109,10 +104,9 @@ export const ImageGeneration = /*#__PURE__*/Tool.providerDefined({
|
|
|
109
104
|
})
|
|
110
105
|
});
|
|
111
106
|
/**
|
|
112
|
-
* OpenAI Local Shell tool
|
|
113
|
-
*
|
|
114
|
-
*
|
|
115
|
-
* that runs in your environment and requires a handler to execute commands.
|
|
107
|
+
* OpenAI Local Shell tool that enables the model to run a command with a local
|
|
108
|
+
* shell. This local tool runs in your environment and requires a handler to
|
|
109
|
+
* execute commands.
|
|
116
110
|
*
|
|
117
111
|
* @category tools
|
|
118
112
|
* @since 4.0.0
|
|
@@ -130,10 +124,8 @@ export const LocalShell = /*#__PURE__*/Tool.providerDefined({
|
|
|
130
124
|
})
|
|
131
125
|
});
|
|
132
126
|
/**
|
|
133
|
-
* OpenAI MCP tool
|
|
134
|
-
*
|
|
135
|
-
* Gives the model access to additional tools via remote Model Context Protocol
|
|
136
|
-
* (MCP) servers
|
|
127
|
+
* OpenAI MCP tool that gives the model access to additional tools via remote
|
|
128
|
+
* Model Context Protocol (MCP) servers.
|
|
137
129
|
*
|
|
138
130
|
* @category tools
|
|
139
131
|
* @since 4.0.0
|
|
@@ -162,11 +154,9 @@ export const Mcp = /*#__PURE__*/Tool.providerDefined({
|
|
|
162
154
|
})
|
|
163
155
|
});
|
|
164
156
|
/**
|
|
165
|
-
* OpenAI Function Shell tool
|
|
166
|
-
*
|
|
167
|
-
*
|
|
168
|
-
* environment. This is a local tool that runs in your environment and requires
|
|
169
|
-
* a handler to execute commands.
|
|
157
|
+
* OpenAI Function Shell tool that enables the model to execute one or more shell
|
|
158
|
+
* commands in a managed environment. This local tool runs in your environment
|
|
159
|
+
* and requires a handler to execute commands.
|
|
170
160
|
*
|
|
171
161
|
* @category tools
|
|
172
162
|
* @since 4.0.0
|
|
@@ -184,9 +174,8 @@ export const Shell = /*#__PURE__*/Tool.providerDefined({
|
|
|
184
174
|
})
|
|
185
175
|
});
|
|
186
176
|
/**
|
|
187
|
-
* OpenAI Web Search tool
|
|
188
|
-
*
|
|
189
|
-
* Enables the model to search the web for information.
|
|
177
|
+
* OpenAI Web Search tool that enables the model to search the web for
|
|
178
|
+
* information.
|
|
190
179
|
*
|
|
191
180
|
* @category tools
|
|
192
181
|
* @since 4.0.0
|
|
@@ -209,9 +198,8 @@ export const WebSearch = /*#__PURE__*/Tool.providerDefined({
|
|
|
209
198
|
})
|
|
210
199
|
});
|
|
211
200
|
/**
|
|
212
|
-
* OpenAI Web Search Preview tool
|
|
213
|
-
*
|
|
214
|
-
* Preview version of the web search tool with additional features.
|
|
201
|
+
* OpenAI Web Search Preview tool, a preview version of the web search tool with
|
|
202
|
+
* additional features.
|
|
215
203
|
*
|
|
216
204
|
* @category tools
|
|
217
205
|
* @since 4.0.0
|
package/dist/OpenAiTool.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"OpenAiTool.js","names":["Schema","Tool","Generated","ApplyPatch","providerDefined","id","customName","providerName","requiresHandler","parameters","Struct","call_id","ApplyPatchToolCall","fields","operation","success","status","ApplyPatchToolCallOutput","output","CodeInterpreter","args","container","CodeInterpreterTool","code","CodeInterpreterToolCall","container_id","outputs","FileSearch","filters","FileSearchTool","max_num_results","ranking_options","vector_store_ids","FileSearchToolCall","queries","results","ImageGeneration","background","ImageGenTool","input_fidelity","input_image_mask","model","moderation","output_compression","output_format","partial_images","quality","size","result","ImageGenToolCall","LocalShell","action","LocalShellToolCall","LocalShellToolCallOutput","Mcp","allowed_tools","MCPTool","authorization","connector_id","require_approval","server_description","server_label","server_url","Unknown","type","MCPToolCall","name","arguments","error","Shell","FunctionShellCall","FunctionShellCallOutput","WebSearch","WebSearchTool","user_location","search_context_size","WebSearchToolCall","WebSearchPreview","WebSearchPreviewTool"],"sources":["../src/OpenAiTool.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;AAQA,OAAO,KAAKA,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,IAAI,MAAM,yBAAyB;AAC/C,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAmB3C
|
|
1
|
+
{"version":3,"file":"OpenAiTool.js","names":["Schema","Tool","Generated","ApplyPatch","providerDefined","id","customName","providerName","requiresHandler","parameters","Struct","call_id","ApplyPatchToolCall","fields","operation","success","status","ApplyPatchToolCallOutput","output","CodeInterpreter","args","container","CodeInterpreterTool","code","CodeInterpreterToolCall","container_id","outputs","FileSearch","filters","FileSearchTool","max_num_results","ranking_options","vector_store_ids","FileSearchToolCall","queries","results","ImageGeneration","background","ImageGenTool","input_fidelity","input_image_mask","model","moderation","output_compression","output_format","partial_images","quality","size","result","ImageGenToolCall","LocalShell","action","LocalShellToolCall","LocalShellToolCallOutput","Mcp","allowed_tools","MCPTool","authorization","connector_id","require_approval","server_description","server_label","server_url","Unknown","type","MCPToolCall","name","arguments","error","Shell","FunctionShellCall","FunctionShellCallOutput","WebSearch","WebSearchTool","user_location","search_context_size","WebSearchToolCall","WebSearchPreview","WebSearchPreviewTool"],"sources":["../src/OpenAiTool.ts"],"sourcesContent":[null],"mappings":"AAAA;;;;;;;;AAQA,OAAO,KAAKA,MAAM,MAAM,eAAe;AACvC,OAAO,KAAKC,IAAI,MAAM,yBAAyB;AAC/C,OAAO,KAAKC,SAAS,MAAM,gBAAgB;AAmB3C;;;;;;;;AAQA,OAAO,MAAMC,UAAU,gBAAGF,IAAI,CAACG,eAAe,CAAC;EAC7CC,EAAE,EAAE,oBAAoB;EACxBC,UAAU,EAAE,kBAAkB;EAC9BC,YAAY,EAAE,aAAa;EAC3BC,eAAe,EAAE,IAAI;EACrBC,UAAU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2
2
|
"name": "@effect/ai-openai",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.70",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"description": "An OpenAI provider integration for Effect AI SDK",
|
|
@@ -43,10 +43,10 @@
|
|
|
43
43
|
"provenance": true
|
|
44
44
|
},
|
|
45
45
|
"devDependencies": {
|
|
46
|
-
"effect": "^4.0.0-beta.
|
|
46
|
+
"effect": "^4.0.0-beta.70"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
|
-
"effect": "^4.0.0-beta.
|
|
49
|
+
"effect": "^4.0.0-beta.70"
|
|
50
50
|
},
|
|
51
51
|
"scripts": {
|
|
52
52
|
"codegen": "effect-utils codegen",
|