@langchain/openai 1.8.0 → 1.8.2
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/CHANGELOG.md +14 -0
- package/dist/azure/chat_models/common.cjs +1 -2
- package/dist/azure/chat_models/common.d.cts +1 -3
- package/dist/azure/chat_models/common.d.cts.map +1 -1
- package/dist/azure/chat_models/common.d.ts +1 -3
- package/dist/azure/chat_models/common.d.ts.map +1 -1
- package/dist/azure/chat_models/common.js +1 -2
- package/dist/azure/chat_models/completions.cjs +1 -2
- package/dist/azure/chat_models/completions.d.cts +1 -3
- package/dist/azure/chat_models/completions.d.cts.map +1 -1
- package/dist/azure/chat_models/completions.d.ts +1 -3
- package/dist/azure/chat_models/completions.d.ts.map +1 -1
- package/dist/azure/chat_models/completions.js +1 -2
- package/dist/azure/chat_models/index.cjs +2 -3
- package/dist/azure/chat_models/index.d.cts +1 -3
- package/dist/azure/chat_models/index.d.cts.map +1 -1
- package/dist/azure/chat_models/index.d.ts +1 -3
- package/dist/azure/chat_models/index.d.ts.map +1 -1
- package/dist/azure/chat_models/index.js +2 -3
- package/dist/azure/chat_models/responses.cjs +2 -3
- package/dist/azure/chat_models/responses.d.cts +1 -3
- package/dist/azure/chat_models/responses.d.cts.map +1 -1
- package/dist/azure/chat_models/responses.d.ts +1 -3
- package/dist/azure/chat_models/responses.d.ts.map +1 -1
- package/dist/azure/chat_models/responses.js +2 -3
- package/dist/azure/embeddings.cjs +3 -4
- package/dist/azure/embeddings.d.cts +1 -3
- package/dist/azure/embeddings.d.cts.map +1 -1
- package/dist/azure/embeddings.d.ts +1 -3
- package/dist/azure/embeddings.d.ts.map +1 -1
- package/dist/azure/embeddings.js +3 -4
- package/dist/azure/llms.cjs +2 -3
- package/dist/azure/llms.d.cts +1 -3
- package/dist/azure/llms.d.cts.map +1 -1
- package/dist/azure/llms.d.ts +1 -3
- package/dist/azure/llms.d.ts.map +1 -1
- package/dist/azure/llms.js +2 -3
- package/dist/chat_models/base.cjs +5 -6
- package/dist/chat_models/base.d.cts +1 -3
- package/dist/chat_models/base.d.cts.map +1 -1
- package/dist/chat_models/base.d.ts +1 -3
- package/dist/chat_models/base.d.ts.map +1 -1
- package/dist/chat_models/base.js +5 -6
- package/dist/chat_models/completions.cjs +1 -2
- package/dist/chat_models/completions.d.cts +1 -2
- package/dist/chat_models/completions.d.cts.map +1 -1
- package/dist/chat_models/completions.d.ts +1 -2
- package/dist/chat_models/completions.d.ts.map +1 -1
- package/dist/chat_models/completions.js +1 -2
- package/dist/chat_models/index.cjs +3 -4
- package/dist/chat_models/index.d.cts +2 -4
- package/dist/chat_models/index.d.cts.map +1 -1
- package/dist/chat_models/index.d.ts +2 -4
- package/dist/chat_models/index.d.ts.map +1 -1
- package/dist/chat_models/index.js +3 -4
- package/dist/chat_models/profiles.cjs +1 -2
- package/dist/chat_models/profiles.js +1 -2
- package/dist/chat_models/responses.cjs +3 -4
- package/dist/chat_models/responses.d.cts +1 -3
- package/dist/chat_models/responses.d.cts.map +1 -1
- package/dist/chat_models/responses.d.ts +1 -3
- package/dist/chat_models/responses.d.ts.map +1 -1
- package/dist/chat_models/responses.js +3 -4
- package/dist/converters/completions.cjs +6 -6
- package/dist/converters/completions.cjs.map +1 -1
- package/dist/converters/completions.d.cts +0 -2
- package/dist/converters/completions.d.cts.map +1 -1
- package/dist/converters/completions.d.ts +0 -2
- package/dist/converters/completions.d.ts.map +1 -1
- package/dist/converters/completions.js +6 -6
- package/dist/converters/completions.js.map +1 -1
- package/dist/converters/responses.cjs +2 -4
- package/dist/converters/responses.cjs.map +1 -1
- package/dist/converters/responses.d.cts +1 -2
- package/dist/converters/responses.d.cts.map +1 -1
- package/dist/converters/responses.d.ts +1 -2
- package/dist/converters/responses.d.ts.map +1 -1
- package/dist/converters/responses.js +2 -4
- package/dist/converters/responses.js.map +1 -1
- package/dist/decisions/index.cjs +2 -3
- package/dist/decisions/index.d.cts +0 -2
- package/dist/decisions/index.d.cts.map +1 -1
- package/dist/decisions/index.d.ts +0 -2
- package/dist/decisions/index.d.ts.map +1 -1
- package/dist/decisions/index.js +2 -3
- package/dist/decisions/input.cjs +1 -2
- package/dist/decisions/input.js +1 -2
- package/dist/decisions/types.cjs +1 -2
- package/dist/decisions/types.d.cts +0 -2
- package/dist/decisions/types.d.cts.map +1 -1
- package/dist/decisions/types.d.ts +0 -2
- package/dist/decisions/types.d.ts.map +1 -1
- package/dist/decisions/types.js +1 -2
- package/dist/embeddings.cjs +2 -3
- package/dist/embeddings.d.cts +0 -2
- package/dist/embeddings.d.cts.map +1 -1
- package/dist/embeddings.d.ts +0 -2
- package/dist/embeddings.d.ts.map +1 -1
- package/dist/embeddings.js +2 -3
- package/dist/index.cjs +38 -38
- package/dist/index.d.cts +7 -7
- package/dist/index.d.ts +7 -7
- package/dist/index.js +14 -14
- package/dist/llms.cjs +3 -4
- package/dist/llms.d.cts +0 -2
- package/dist/llms.d.cts.map +1 -1
- package/dist/llms.d.ts +0 -2
- package/dist/llms.d.ts.map +1 -1
- package/dist/llms.js +3 -4
- package/dist/tools/applyPatch.cjs +1 -2
- package/dist/tools/applyPatch.d.cts +0 -2
- package/dist/tools/applyPatch.d.cts.map +1 -1
- package/dist/tools/applyPatch.d.ts +0 -2
- package/dist/tools/applyPatch.d.ts.map +1 -1
- package/dist/tools/applyPatch.js +1 -2
- package/dist/tools/codeInterpreter.cjs +1 -2
- package/dist/tools/codeInterpreter.d.cts +0 -2
- package/dist/tools/codeInterpreter.d.cts.map +1 -1
- package/dist/tools/codeInterpreter.d.ts +0 -2
- package/dist/tools/codeInterpreter.d.ts.map +1 -1
- package/dist/tools/codeInterpreter.js +1 -2
- package/dist/tools/computerUse.cjs +1 -2
- package/dist/tools/computerUse.d.cts +0 -2
- package/dist/tools/computerUse.d.cts.map +1 -1
- package/dist/tools/computerUse.d.ts +0 -2
- package/dist/tools/computerUse.d.ts.map +1 -1
- package/dist/tools/computerUse.js +1 -2
- package/dist/tools/custom.cjs +1 -2
- package/dist/tools/custom.d.cts +0 -2
- package/dist/tools/custom.d.cts.map +1 -1
- package/dist/tools/custom.d.ts +0 -2
- package/dist/tools/custom.d.ts.map +1 -1
- package/dist/tools/custom.js +1 -2
- package/dist/tools/dalle.cjs +1 -2
- package/dist/tools/dalle.d.cts +0 -2
- package/dist/tools/dalle.d.cts.map +1 -1
- package/dist/tools/dalle.d.ts +0 -2
- package/dist/tools/dalle.d.ts.map +1 -1
- package/dist/tools/dalle.js +1 -2
- package/dist/tools/fileSearch.cjs +1 -2
- package/dist/tools/fileSearch.d.cts +0 -2
- package/dist/tools/fileSearch.d.cts.map +1 -1
- package/dist/tools/fileSearch.d.ts +0 -2
- package/dist/tools/fileSearch.d.ts.map +1 -1
- package/dist/tools/fileSearch.js +1 -2
- package/dist/tools/imageGeneration.cjs +1 -2
- package/dist/tools/imageGeneration.d.cts +0 -2
- package/dist/tools/imageGeneration.d.cts.map +1 -1
- package/dist/tools/imageGeneration.d.ts +0 -2
- package/dist/tools/imageGeneration.d.ts.map +1 -1
- package/dist/tools/imageGeneration.js +1 -2
- package/dist/tools/index.cjs +1 -2
- package/dist/tools/index.d.cts +0 -2
- package/dist/tools/index.d.cts.map +1 -1
- package/dist/tools/index.d.ts +0 -2
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +1 -2
- package/dist/tools/localShell.cjs +1 -2
- package/dist/tools/localShell.d.cts +0 -2
- package/dist/tools/localShell.d.cts.map +1 -1
- package/dist/tools/localShell.d.ts +0 -2
- package/dist/tools/localShell.d.ts.map +1 -1
- package/dist/tools/localShell.js +1 -2
- package/dist/tools/mcp.cjs +1 -2
- package/dist/tools/mcp.d.cts +1 -2
- package/dist/tools/mcp.d.cts.map +1 -1
- package/dist/tools/mcp.d.ts +1 -2
- package/dist/tools/mcp.d.ts.map +1 -1
- package/dist/tools/mcp.js +1 -2
- package/dist/tools/shell.cjs +1 -2
- package/dist/tools/shell.d.cts +0 -2
- package/dist/tools/shell.d.cts.map +1 -1
- package/dist/tools/shell.d.ts +0 -2
- package/dist/tools/shell.d.ts.map +1 -1
- package/dist/tools/shell.js +1 -2
- package/dist/tools/toolSearch.cjs +1 -2
- package/dist/tools/toolSearch.d.cts +0 -2
- package/dist/tools/toolSearch.d.cts.map +1 -1
- package/dist/tools/toolSearch.d.ts +0 -2
- package/dist/tools/toolSearch.d.ts.map +1 -1
- package/dist/tools/toolSearch.js +1 -2
- package/dist/tools/webSearch.cjs +1 -2
- package/dist/tools/webSearch.d.cts +0 -2
- package/dist/tools/webSearch.d.cts.map +1 -1
- package/dist/tools/webSearch.d.ts +0 -2
- package/dist/tools/webSearch.d.ts.map +1 -1
- package/dist/tools/webSearch.js +1 -2
- package/dist/types.d.cts +0 -2
- package/dist/types.d.cts.map +1 -1
- package/dist/types.d.ts +0 -2
- package/dist/types.d.ts.map +1 -1
- package/dist/utils/azure.cjs +1 -2
- package/dist/utils/azure.d.cts +1 -2
- package/dist/utils/azure.d.cts.map +1 -1
- package/dist/utils/azure.d.ts +1 -2
- package/dist/utils/azure.d.ts.map +1 -1
- package/dist/utils/azure.js +1 -2
- package/dist/utils/client.cjs +1 -2
- package/dist/utils/client.d.cts +0 -2
- package/dist/utils/client.d.cts.map +1 -1
- package/dist/utils/client.d.ts +0 -2
- package/dist/utils/client.d.ts.map +1 -1
- package/dist/utils/client.js +1 -2
- package/dist/utils/errors.cjs +1 -2
- package/dist/utils/errors.js +1 -2
- package/dist/utils/misc.cjs +1 -2
- package/dist/utils/misc.d.cts +0 -2
- package/dist/utils/misc.d.cts.map +1 -1
- package/dist/utils/misc.d.ts +0 -2
- package/dist/utils/misc.d.ts.map +1 -1
- package/dist/utils/misc.js +1 -2
- package/dist/utils/output.cjs +1 -2
- package/dist/utils/output.js +1 -2
- package/dist/utils/profile.cjs +1 -2
- package/dist/utils/profile.js +1 -2
- package/dist/utils/prompts.cjs +1 -2
- package/dist/utils/prompts.d.cts +0 -2
- package/dist/utils/prompts.d.cts.map +1 -1
- package/dist/utils/prompts.d.ts +0 -2
- package/dist/utils/prompts.d.ts.map +1 -1
- package/dist/utils/prompts.js +1 -2
- package/dist/utils/responses_stream_events.cjs +2 -2
- package/dist/utils/responses_stream_events.cjs.map +1 -1
- package/dist/utils/responses_stream_events.d.cts +1 -2
- package/dist/utils/responses_stream_events.d.cts.map +1 -1
- package/dist/utils/responses_stream_events.d.ts +1 -2
- package/dist/utils/responses_stream_events.d.ts.map +1 -1
- package/dist/utils/responses_stream_events.js +2 -2
- package/dist/utils/responses_stream_events.js.map +1 -1
- package/dist/utils/stream_events.js +1 -2
- package/dist/utils/tools.cjs +1 -2
- package/dist/utils/tools.d.cts +0 -2
- package/dist/utils/tools.d.cts.map +1 -1
- package/dist/utils/tools.d.ts +0 -2
- package/dist/utils/tools.d.ts.map +1 -1
- package/dist/utils/tools.js +1 -2
- package/package.json +10 -10
|
@@ -2,7 +2,6 @@ import { OpenAI } from "openai";
|
|
|
2
2
|
import { ToolMessage } from "@langchain/core/messages";
|
|
3
3
|
import { DynamicStructuredTool, ToolRuntime } from "@langchain/core/tools";
|
|
4
4
|
import { z } from "zod/v4";
|
|
5
|
-
//#region src/tools/computerUse.d.ts
|
|
6
5
|
/**
|
|
7
6
|
* The type of computer environment to control.
|
|
8
7
|
*/
|
|
@@ -228,5 +227,4 @@ export type ComputerUseTool = OpenAI.Responses.ComputerUsePreviewTool;
|
|
|
228
227
|
* - Recommended to use with `reasoning.summary` for debugging
|
|
229
228
|
*/
|
|
230
229
|
export declare function computerUse(options: ComputerUseOptions): DynamicStructuredTool<typeof ComputerUseActionSchema, ComputerUseInput, unknown, ComputerUseReturnType>;
|
|
231
|
-
//#endregion
|
|
232
230
|
//# sourceMappingURL=computerUse.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"computerUse.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/computerUse.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"computerUse.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/computerUse.ts"],"mappings":";;;;;;;YAcY;;;;YAUA,yBACVA,OAAa,UAAU,yBAAyB;YACtC,+BACVA,OAAa,UAAU,yBAAyB;YACtC,wBACVA,OAAa,UAAU,yBAAyB;YACtC,4BACVA,OAAa,UAAU,yBAAyB;YACtC,wBACVA,OAAa,UAAU,yBAAyB;YACtC,8BACVA,OAAa,UAAU,yBAAyB;YACtC,0BACVA,OAAa,UAAU,yBAAyB;YACtC,wBACVA,OAAa,UAAU,yBAAyB;YACtC,wBACVA,OAAa,UAAU,yBAAyB;;;;YAKtC,oBACVA,OAAa,UAAU;qBAsEZ,yBAAuB,EAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAElC,EAAA,KAAA;;;;;iBAmCe;EACf,QAAQ;;YAGE,iCAER,kBACA,mBACA,QAAQ;;;;iBAKK;;;;EAIf;;;;EAKA;;;;;;;;;EAUA,aAAa;;;;;;EAOb,UACE,QAAQ,mBACR,SAAS,0BACN;;;;;YAMK,kBAAkBA,OAAa,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAoHrC,YAAY,SAAS,qBAmEZ,6BACd,yBACP,2BAEA"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { ToolMessage } from "@langchain/core/messages";
|
|
2
2
|
import { tool } from "@langchain/core/tools";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
|
|
4
|
+
// src/tools/computerUse.ts
|
|
5
5
|
const ComputerUseScreenshotActionSchema = z.object({ type: z.literal("screenshot") });
|
|
6
6
|
const ComputerUseClickActionSchema = z.object({
|
|
7
7
|
type: z.literal("click"),
|
|
@@ -227,7 +227,6 @@ function computerUse(options) {
|
|
|
227
227
|
*/
|
|
228
228
|
return computerTool;
|
|
229
229
|
}
|
|
230
|
-
//#endregion
|
|
231
230
|
export { ComputerUseActionSchema, computerUse };
|
|
232
231
|
|
|
233
232
|
//# sourceMappingURL=computerUse.js.map
|
package/dist/tools/custom.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let _langchain_core_runnables = require("@langchain/core/runnables");
|
|
2
2
|
let _langchain_core_tools = require("@langchain/core/tools");
|
|
3
3
|
let _langchain_core_singletons = require("@langchain/core/singletons");
|
|
4
|
-
|
|
4
|
+
// src/tools/custom.ts
|
|
5
5
|
function customTool(func, fields) {
|
|
6
6
|
return new _langchain_core_tools.DynamicTool({
|
|
7
7
|
...fields,
|
|
@@ -19,7 +19,6 @@ function customTool(func, fields) {
|
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
exports.customTool = customTool;
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=custom.cjs.map
|
package/dist/tools/custom.d.cts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import OpenAI$1 from "openai";
|
|
2
2
|
import { DynamicTool, ToolRunnableConfig } from "@langchain/core/tools";
|
|
3
3
|
import { RunnableFunc } from "@langchain/core/runnables";
|
|
4
|
-
//#region src/tools/custom.d.ts
|
|
5
4
|
export type CustomToolFields = Omit<OpenAI$1.Responses.CustomTool, "type">;
|
|
6
5
|
export declare function customTool(func: RunnableFunc<string, string, ToolRunnableConfig>, fields: CustomToolFields): DynamicTool<string>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=custom.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.cts","names":["OpenAI"],"sources":["../../src/tools/custom.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom.d.cts","names":["OpenAI"],"sources":["../../src/tools/custom.ts"],"mappings":";;;YASY,mBAAmB,KAAKA,SAAO,UAAU;wBAErC,WACd,MAAM,6BAA6B,qBACnC,QAAQ,mBACP"}
|
package/dist/tools/custom.d.ts
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
1
|
import OpenAI$1 from "openai";
|
|
2
2
|
import { RunnableFunc } from "@langchain/core/runnables";
|
|
3
3
|
import { DynamicTool, ToolRunnableConfig } from "@langchain/core/tools";
|
|
4
|
-
//#region src/tools/custom.d.ts
|
|
5
4
|
export type CustomToolFields = Omit<OpenAI$1.Responses.CustomTool, "type">;
|
|
6
5
|
export declare function customTool(func: RunnableFunc<string, string, ToolRunnableConfig>, fields: CustomToolFields): DynamicTool<string>;
|
|
7
|
-
//#endregion
|
|
8
6
|
//# sourceMappingURL=custom.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custom.d.ts","names":["OpenAI"],"sources":["../../src/tools/custom.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"custom.d.ts","names":["OpenAI"],"sources":["../../src/tools/custom.ts"],"mappings":";;;YASY,mBAAmB,KAAKA,SAAO,UAAU;wBAErC,WACd,MAAM,6BAA6B,qBACnC,QAAQ,mBACP"}
|
package/dist/tools/custom.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { patchConfig, pickRunnableConfigKeys } from "@langchain/core/runnables";
|
|
2
2
|
import { DynamicTool } from "@langchain/core/tools";
|
|
3
3
|
import { AsyncLocalStorageProviderSingleton } from "@langchain/core/singletons";
|
|
4
|
-
|
|
4
|
+
// src/tools/custom.ts
|
|
5
5
|
function customTool(func, fields) {
|
|
6
6
|
return new DynamicTool({
|
|
7
7
|
...fields,
|
|
@@ -19,7 +19,6 @@ function customTool(func, fields) {
|
|
|
19
19
|
})
|
|
20
20
|
});
|
|
21
21
|
}
|
|
22
|
-
//#endregion
|
|
23
22
|
export { customTool };
|
|
24
23
|
|
|
25
24
|
//# sourceMappingURL=custom.js.map
|
package/dist/tools/dalle.cjs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
let openai = require("openai");
|
|
2
2
|
let _langchain_core_utils_env = require("@langchain/core/utils/env");
|
|
3
3
|
let _langchain_core_tools = require("@langchain/core/tools");
|
|
4
|
-
|
|
4
|
+
// src/tools/dalle.ts
|
|
5
5
|
/**
|
|
6
6
|
* A tool for generating images with Open AIs Dall-E 2 or 3 API.
|
|
7
7
|
*/
|
|
@@ -94,7 +94,6 @@ var DallEAPIWrapper = class extends _langchain_core_tools.Tool {
|
|
|
94
94
|
return data;
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
//#endregion
|
|
98
97
|
exports.DallEAPIWrapper = DallEAPIWrapper;
|
|
99
98
|
|
|
100
99
|
//# sourceMappingURL=dalle.cjs.map
|
package/dist/tools/dalle.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { MessageContentComplex } from "@langchain/core/messages";
|
|
3
3
|
import { Tool, ToolParams } from "@langchain/core/tools";
|
|
4
|
-
//#region src/tools/dalle.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* @see https://platform.openai.com/docs/api-reference/images/create
|
|
7
6
|
*/
|
|
@@ -115,5 +114,4 @@ export declare class DallEAPIWrapper extends Tool {
|
|
|
115
114
|
/** @ignore */
|
|
116
115
|
_call(input: string): Promise<string | MessageContentComplex[]>;
|
|
117
116
|
}
|
|
118
|
-
//#endregion
|
|
119
117
|
//# sourceMappingURL=dalle.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dalle.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/dalle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dalle.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/dalle.ts"],"mappings":";;;;;;YAWY,qBACRA,OAAa,uBACH;;;;iBAKG,8BAA8B;;;;;EAK7C;;;;EAIA;;;;;;;;EAQA,YAAY;;;;;;EAMZ,QAAQ;;;;;;;EAOR;;;;;;EAMA;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;;qBAMW,wBAAwB;SAC5B;EAIP;EAEA;YAGU,QAAQA;kBAEF;UAER;UAEA;UAEA;UAEA;UAEA;UAOA;UAEA;EAER,YAAY,SAAS;;;;;;;;;;;UA8Cb;;EAmDF,MAAM,gBAAgB,iBAAiB"}
|
package/dist/tools/dalle.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { MessageContentComplex } from "@langchain/core/messages";
|
|
3
3
|
import { Tool, ToolParams } from "@langchain/core/tools";
|
|
4
|
-
//#region src/tools/dalle.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* @see https://platform.openai.com/docs/api-reference/images/create
|
|
7
6
|
*/
|
|
@@ -115,5 +114,4 @@ export declare class DallEAPIWrapper extends Tool {
|
|
|
115
114
|
/** @ignore */
|
|
116
115
|
_call(input: string): Promise<string | MessageContentComplex[]>;
|
|
117
116
|
}
|
|
118
|
-
//#endregion
|
|
119
117
|
//# sourceMappingURL=dalle.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dalle.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/dalle.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"dalle.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/dalle.ts"],"mappings":";;;;;;YAWY,qBACRA,OAAa,uBACH;;;;iBAKG,8BAA8B;;;;;EAK7C;;;;EAIA;;;;;;;;EAQA,YAAY;;;;;;EAMZ,QAAQ;;;;;;;EAOR;;;;;;EAMA;;;;;;;EAOA;;;;;;;EAOA;;;;;;EAMA;;;;EAKA;;;;;EAKA;;;;EAIA;;;;EAIA;;;;;qBAMW,wBAAwB;SAC5B;EAIP;EAEA;YAGU,QAAQA;kBAEF;UAER;UAEA;UAEA;UAEA;UAEA;UAOA;UAEA;EAER,YAAY,SAAS;;;;;;;;;;;UA8Cb;;EAmDF,MAAM,gBAAgB,iBAAiB"}
|
package/dist/tools/dalle.js
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { getEnvironmentVariable } from "@langchain/core/utils/env";
|
|
3
3
|
import { Tool } from "@langchain/core/tools";
|
|
4
|
-
|
|
4
|
+
// src/tools/dalle.ts
|
|
5
5
|
/**
|
|
6
6
|
* A tool for generating images with Open AIs Dall-E 2 or 3 API.
|
|
7
7
|
*/
|
|
@@ -94,7 +94,6 @@ var DallEAPIWrapper = class extends Tool {
|
|
|
94
94
|
return data;
|
|
95
95
|
}
|
|
96
96
|
};
|
|
97
|
-
//#endregion
|
|
98
97
|
export { DallEAPIWrapper };
|
|
99
98
|
|
|
100
99
|
//# sourceMappingURL=dalle.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/fileSearch.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts ranking options to the API format.
|
|
4
4
|
*/
|
|
@@ -130,7 +130,6 @@ function fileSearch(options) {
|
|
|
130
130
|
ranking_options: convertRankingOptions(options.rankingOptions)
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
exports.fileSearch = fileSearch;
|
|
135
134
|
|
|
136
135
|
//# sourceMappingURL=fileSearch.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { ServerTool } from "@langchain/core/tools";
|
|
3
|
-
//#region src/tools/fileSearch.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Comparison operators for file attribute filtering.
|
|
6
5
|
*/
|
|
@@ -217,5 +216,4 @@ export type FileSearchTool = OpenAI.Responses.FileSearchTool;
|
|
|
217
216
|
* - Supported file types include PDF, DOCX, TXT, MD, and many code file formats
|
|
218
217
|
*/
|
|
219
218
|
export declare function fileSearch(options: FileSearchOptions): ServerTool;
|
|
220
|
-
//#endregion
|
|
221
219
|
//# sourceMappingURL=fileSearch.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileSearch.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/fileSearch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileSearch.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/fileSearch.ts"],"mappings":";;;;;YAMY;;;;iBAWK;;;;;;;;;;EAUf,MAAM;;;;EAIN;;;;;EAKA,mCAAmC;;;;;iBAMpB;;;;EAIf;;;;EAIA,SAAS,MAAM,6BAA6B;;;;;YAMlC,mBACR,6BACA;;;;iBAKa;;;;EAIf;;;;EAIA;;;;;iBAMe;;;;;;EAMf;;;;;EAKA;;;;;EAKA,eAAe;;;;;iBAMA;;;;;EAKf;;;;;EAKA;;;;;EAKA,UAAU;;;;EAIV,iBAAiB;;;;;YAMP,iBAAiBA,OAAa,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiIpC,WAAW,SAAS,oBAAoB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { ServerTool } from "@langchain/core/tools";
|
|
3
|
-
//#region src/tools/fileSearch.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Comparison operators for file attribute filtering.
|
|
6
5
|
*/
|
|
@@ -217,5 +216,4 @@ export type FileSearchTool = OpenAI.Responses.FileSearchTool;
|
|
|
217
216
|
* - Supported file types include PDF, DOCX, TXT, MD, and many code file formats
|
|
218
217
|
*/
|
|
219
218
|
export declare function fileSearch(options: FileSearchOptions): ServerTool;
|
|
220
|
-
//#endregion
|
|
221
219
|
//# sourceMappingURL=fileSearch.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"fileSearch.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/fileSearch.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"fileSearch.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/fileSearch.ts"],"mappings":";;;;;YAMY;;;;iBAWK;;;;;;;;;;EAUf,MAAM;;;;EAIN;;;;;EAKA,mCAAmC;;;;;iBAMpB;;;;EAIf;;;;EAIA,SAAS,MAAM,6BAA6B;;;;;YAMlC,mBACR,6BACA;;;;iBAKa;;;;EAIf;;;;EAIA;;;;;iBAMe;;;;;;EAMf;;;;;EAKA;;;;;EAKA,eAAe;;;;;iBAMA;;;;;EAKf;;;;;EAKA;;;;;EAKA,UAAU;;;;EAIV,iBAAiB;;;;;YAMP,iBAAiBA,OAAa,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAiIpC,WAAW,SAAS,oBAAoB"}
|
package/dist/tools/fileSearch.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/fileSearch.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts ranking options to the API format.
|
|
4
4
|
*/
|
|
@@ -130,7 +130,6 @@ function fileSearch(options) {
|
|
|
130
130
|
ranking_options: convertRankingOptions(options.rankingOptions)
|
|
131
131
|
};
|
|
132
132
|
}
|
|
133
|
-
//#endregion
|
|
134
133
|
export { fileSearch };
|
|
135
134
|
|
|
136
135
|
//# sourceMappingURL=fileSearch.js.map
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/imageGeneration.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts input mask options to the API format.
|
|
4
4
|
*/
|
|
@@ -122,7 +122,6 @@ function imageGeneration(options) {
|
|
|
122
122
|
size: options?.size
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
//#endregion
|
|
126
125
|
exports.imageGeneration = imageGeneration;
|
|
127
126
|
|
|
128
127
|
//# sourceMappingURL=imageGeneration.cjs.map
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { ServerTool } from "@langchain/core/tools";
|
|
3
|
-
//#region src/tools/imageGeneration.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Optional mask for inpainting. Allows you to specify areas of the image
|
|
6
5
|
* that should be regenerated.
|
|
@@ -200,5 +199,4 @@ export type ImageGenerationTool = OpenAI.Responses.Tool.ImageGeneration;
|
|
|
200
199
|
* - Multi-turn editing is supported by passing previous response messages
|
|
201
200
|
*/
|
|
202
201
|
export declare function imageGeneration(options?: ImageGenerationOptions): ServerTool;
|
|
203
|
-
//#endregion
|
|
204
202
|
//# sourceMappingURL=imageGeneration.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageGeneration.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/imageGeneration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"imageGeneration.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/imageGeneration.ts"],"mappings":";;;;;;iBAOiB;;;;EAIf;;;;EAIA;;;;;iBAMe;;;;;;;;EAQf;;;;;;;;EASA;;;;;;;;;EAUA;;;;;EAMA,iBAAiB;;;;;EAMjB;;;;;;;EAQA;;;;;;EAOA;;;;;EAMA;;;;;;;EAQA;;;;;;;;;EAUA;;;;;;;;;EAUA;;;;;YAMU,sBAAsBA,OAAa,UAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgH9C,gBAAgB,UAAU,yBAAyB"}
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { ServerTool } from "@langchain/core/tools";
|
|
3
|
-
//#region src/tools/imageGeneration.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Optional mask for inpainting. Allows you to specify areas of the image
|
|
6
5
|
* that should be regenerated.
|
|
@@ -200,5 +199,4 @@ export type ImageGenerationTool = OpenAI.Responses.Tool.ImageGeneration;
|
|
|
200
199
|
* - Multi-turn editing is supported by passing previous response messages
|
|
201
200
|
*/
|
|
202
201
|
export declare function imageGeneration(options?: ImageGenerationOptions): ServerTool;
|
|
203
|
-
//#endregion
|
|
204
202
|
//# sourceMappingURL=imageGeneration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"imageGeneration.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/imageGeneration.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"imageGeneration.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/imageGeneration.ts"],"mappings":";;;;;;iBAOiB;;;;EAIf;;;;EAIA;;;;;iBAMe;;;;;;;;EAQf;;;;;;;;EASA;;;;;;;;;EAUA;;;;;EAMA,iBAAiB;;;;;EAMjB;;;;;;;EAQA;;;;;;EAOA;;;;;EAMA;;;;;;;EAQA;;;;;;;;;EAUA;;;;;;;;;EAUA;;;;;YAMU,sBAAsBA,OAAa,UAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAgH9C,gBAAgB,UAAU,yBAAyB"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/imageGeneration.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts input mask options to the API format.
|
|
4
4
|
*/
|
|
@@ -122,7 +122,6 @@ function imageGeneration(options) {
|
|
|
122
122
|
size: options?.size
|
|
123
123
|
};
|
|
124
124
|
}
|
|
125
|
-
//#endregion
|
|
126
125
|
export { imageGeneration };
|
|
127
126
|
|
|
128
127
|
//# sourceMappingURL=imageGeneration.js.map
|
package/dist/tools/index.cjs
CHANGED
|
@@ -9,7 +9,7 @@ const require_localShell = require("./localShell.cjs");
|
|
|
9
9
|
const require_shell = require("./shell.cjs");
|
|
10
10
|
const require_applyPatch = require("./applyPatch.cjs");
|
|
11
11
|
const require_toolSearch = require("./toolSearch.cjs");
|
|
12
|
-
|
|
12
|
+
// src/tools/index.ts
|
|
13
13
|
const tools = {
|
|
14
14
|
webSearch: require_webSearch.webSearch,
|
|
15
15
|
mcp: require_mcp.mcp,
|
|
@@ -22,7 +22,6 @@ const tools = {
|
|
|
22
22
|
applyPatch: require_applyPatch.applyPatch,
|
|
23
23
|
toolSearch: require_toolSearch.toolSearch
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
exports.DallEAPIWrapper = require_dalle.DallEAPIWrapper;
|
|
27
26
|
exports.tools = tools;
|
|
28
27
|
|
package/dist/tools/index.d.cts
CHANGED
|
@@ -9,7 +9,6 @@ import { LocalShellAction, LocalShellOptions, LocalShellTool, localShell } from
|
|
|
9
9
|
import { ShellAction, ShellCallOutcome, ShellCommandOutput, ShellOptions, ShellResult, ShellTool, shell } from "./shell.cjs";
|
|
10
10
|
import { ApplyPatchCreateFileOperation, ApplyPatchDeleteFileOperation, ApplyPatchOperation, ApplyPatchOptions, ApplyPatchTool, ApplyPatchUpdateFileOperation, applyPatch } from "./applyPatch.cjs";
|
|
11
11
|
import { ToolSearchOptions, ToolSearchTool, toolSearch } from "./toolSearch.cjs";
|
|
12
|
-
//#region src/tools/index.d.ts
|
|
13
12
|
export declare const tools: {
|
|
14
13
|
webSearch: typeof webSearch;
|
|
15
14
|
mcp: typeof mcp;
|
|
@@ -22,6 +21,5 @@ export declare const tools: {
|
|
|
22
21
|
applyPatch: typeof applyPatch;
|
|
23
22
|
toolSearch: typeof toolSearch;
|
|
24
23
|
};
|
|
25
|
-
//#endregion
|
|
26
24
|
export { type ApplyPatchCreateFileOperation, type ApplyPatchDeleteFileOperation, type ApplyPatchOperation, type ApplyPatchOptions, type ApplyPatchTool, type ApplyPatchUpdateFileOperation, type CodeInterpreterAutoContainer, type CodeInterpreterMemoryLimit, type CodeInterpreterOptions, type CodeInterpreterTool, type ComputerUseAction, type ComputerUseClickAction, type ComputerUseDoubleClickAction, type ComputerUseDragAction, type ComputerUseEnvironment, type ComputerUseInput, type ComputerUseKeypressAction, type ComputerUseMoveAction, type ComputerUseOptions, type ComputerUseScreenshotAction, type ComputerUseScrollAction, type ComputerUseTool, type ComputerUseTypeAction, type ComputerUseWaitAction, DallEAPIWrapper, DallEAPIWrapperParams, type FileSearchComparisonFilter, type FileSearchComparisonType, type FileSearchCompoundFilter, type FileSearchFilter, type FileSearchHybridSearchWeights, type FileSearchOptions, type FileSearchRankingOptions, type FileSearchTool, type ImageGenerationInputMask, type ImageGenerationOptions, type ImageGenerationTool, type LocalShellAction, type LocalShellOptions, type LocalShellTool, type McpApprovalFilter, type McpConnectorId, type McpConnectorOptions, type McpRemoteServerOptions, type McpTool, type McpToolFilter, OpenAIImageModelId, type ShellAction, type ShellCallOutcome, type ShellCommandOutput, type ShellOptions, type ShellResult, type ShellTool, type ToolSearchOptions, type ToolSearchTool, type WebSearchFilters, type WebSearchOptions, type WebSearchTool };
|
|
27
25
|
//# sourceMappingURL=index.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/tools/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;;;;;;qBA8Fa"}
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -9,7 +9,6 @@ import { LocalShellAction, LocalShellOptions, LocalShellTool, localShell } from
|
|
|
9
9
|
import { ShellAction, ShellCallOutcome, ShellCommandOutput, ShellOptions, ShellResult, ShellTool, shell } from "./shell.js";
|
|
10
10
|
import { ApplyPatchCreateFileOperation, ApplyPatchDeleteFileOperation, ApplyPatchOperation, ApplyPatchOptions, ApplyPatchTool, ApplyPatchUpdateFileOperation, applyPatch } from "./applyPatch.js";
|
|
11
11
|
import { ToolSearchOptions, ToolSearchTool, toolSearch } from "./toolSearch.js";
|
|
12
|
-
//#region src/tools/index.d.ts
|
|
13
12
|
export declare const tools: {
|
|
14
13
|
webSearch: typeof webSearch;
|
|
15
14
|
mcp: typeof mcp;
|
|
@@ -22,6 +21,5 @@ export declare const tools: {
|
|
|
22
21
|
applyPatch: typeof applyPatch;
|
|
23
22
|
toolSearch: typeof toolSearch;
|
|
24
23
|
};
|
|
25
|
-
//#endregion
|
|
26
24
|
export { type ApplyPatchCreateFileOperation, type ApplyPatchDeleteFileOperation, type ApplyPatchOperation, type ApplyPatchOptions, type ApplyPatchTool, type ApplyPatchUpdateFileOperation, type CodeInterpreterAutoContainer, type CodeInterpreterMemoryLimit, type CodeInterpreterOptions, type CodeInterpreterTool, type ComputerUseAction, type ComputerUseClickAction, type ComputerUseDoubleClickAction, type ComputerUseDragAction, type ComputerUseEnvironment, type ComputerUseInput, type ComputerUseKeypressAction, type ComputerUseMoveAction, type ComputerUseOptions, type ComputerUseScreenshotAction, type ComputerUseScrollAction, type ComputerUseTool, type ComputerUseTypeAction, type ComputerUseWaitAction, DallEAPIWrapper, DallEAPIWrapperParams, type FileSearchComparisonFilter, type FileSearchComparisonType, type FileSearchCompoundFilter, type FileSearchFilter, type FileSearchHybridSearchWeights, type FileSearchOptions, type FileSearchRankingOptions, type FileSearchTool, type ImageGenerationInputMask, type ImageGenerationOptions, type ImageGenerationTool, type LocalShellAction, type LocalShellOptions, type LocalShellTool, type McpApprovalFilter, type McpConnectorId, type McpConnectorOptions, type McpRemoteServerOptions, type McpTool, type McpToolFilter, OpenAIImageModelId, type ShellAction, type ShellCallOutcome, type ShellCommandOutput, type ShellOptions, type ShellResult, type ShellTool, type ToolSearchOptions, type ToolSearchTool, type WebSearchFilters, type WebSearchOptions, type WebSearchTool };
|
|
27
25
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tools/index.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../src/tools/index.ts"],"mappings":";;;;;;;;;;;qBA8Fa"}
|
package/dist/tools/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { localShell } from "./localShell.js";
|
|
|
9
9
|
import { shell } from "./shell.js";
|
|
10
10
|
import { applyPatch } from "./applyPatch.js";
|
|
11
11
|
import { toolSearch } from "./toolSearch.js";
|
|
12
|
-
|
|
12
|
+
// src/tools/index.ts
|
|
13
13
|
const tools = {
|
|
14
14
|
webSearch,
|
|
15
15
|
mcp,
|
|
@@ -22,7 +22,6 @@ const tools = {
|
|
|
22
22
|
applyPatch,
|
|
23
23
|
toolSearch
|
|
24
24
|
};
|
|
25
|
-
//#endregion
|
|
26
25
|
export { DallEAPIWrapper, tools };
|
|
27
26
|
|
|
28
27
|
//# sourceMappingURL=index.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
let _langchain_core_tools = require("@langchain/core/tools");
|
|
2
2
|
let zod_v4 = require("zod/v4");
|
|
3
|
-
|
|
3
|
+
// src/tools/localShell.ts
|
|
4
4
|
const LocalShellExecActionSchema = zod_v4.z.object({
|
|
5
5
|
type: zod_v4.z.literal("exec"),
|
|
6
6
|
command: zod_v4.z.array(zod_v4.z.string()),
|
|
@@ -137,7 +137,6 @@ function localShell(options) {
|
|
|
137
137
|
};
|
|
138
138
|
return shellTool;
|
|
139
139
|
}
|
|
140
|
-
//#endregion
|
|
141
140
|
exports.LocalShellActionSchema = LocalShellActionSchema;
|
|
142
141
|
exports.LocalShellExecActionSchema = LocalShellExecActionSchema;
|
|
143
142
|
exports.localShell = localShell;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
//#region src/tools/localShell.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Re-export action type from OpenAI SDK for convenience.
|
|
7
6
|
* The action contains command details like argv tokens, environment variables,
|
|
@@ -161,5 +160,4 @@ export type LocalShellTool = OpenAI.Responses.Tool.LocalShell;
|
|
|
161
160
|
* - The `timeout_ms` from the model is only a hint—enforce your own limits
|
|
162
161
|
*/
|
|
163
162
|
export declare function localShell(options: LocalShellOptions): DynamicStructuredTool<typeof LocalShellActionSchema, LocalShellAction, unknown, string>;
|
|
164
|
-
//#endregion
|
|
165
163
|
//# sourceMappingURL=localShell.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localShell.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/localShell.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"localShell.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/localShell.ts"],"mappings":";;;;;;;;YASY,mBACVA,OAAa,UAAU,mBAAmB,eAAe;qBAa9C,wBAAsB,EAAA,mBAAA,EAAA;;;;;;;GAAwC,EAAA,KAAA;;;;iBAK1D;;;;;;;;;;;;;;;;;;;;;EAqBf,UAAU,QAAQ,8BAA8B;;;;;YAMtC,iBAAiBA,OAAa,UAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsHzC,WAAW,SAAS,oBAed,6BACX,wBACP"}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
//#region src/tools/localShell.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Re-export action type from OpenAI SDK for convenience.
|
|
7
6
|
* The action contains command details like argv tokens, environment variables,
|
|
@@ -161,5 +160,4 @@ export type LocalShellTool = OpenAI.Responses.Tool.LocalShell;
|
|
|
161
160
|
* - The `timeout_ms` from the model is only a hint—enforce your own limits
|
|
162
161
|
*/
|
|
163
162
|
export declare function localShell(options: LocalShellOptions): DynamicStructuredTool<typeof LocalShellActionSchema, LocalShellAction, unknown, string>;
|
|
164
|
-
//#endregion
|
|
165
163
|
//# sourceMappingURL=localShell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"localShell.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/localShell.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"localShell.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/localShell.ts"],"mappings":";;;;;;;;YASY,mBACVA,OAAa,UAAU,mBAAmB,eAAe;qBAa9C,wBAAsB,EAAA,mBAAA,EAAA;;;;;;;GAAwC,EAAA,KAAA;;;;iBAK1D;;;;;;;;;;;;;;;;;;;;;EAqBf,UAAU,QAAQ,8BAA8B;;;;;YAMtC,iBAAiBA,OAAa,UAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAsHzC,WAAW,SAAS,oBAed,6BACX,wBACP"}
|
package/dist/tools/localShell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tool } from "@langchain/core/tools";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
|
|
3
|
+
// src/tools/localShell.ts
|
|
4
4
|
const LocalShellExecActionSchema = z.object({
|
|
5
5
|
type: z.literal("exec"),
|
|
6
6
|
command: z.array(z.string()),
|
|
@@ -137,7 +137,6 @@ function localShell(options) {
|
|
|
137
137
|
};
|
|
138
138
|
return shellTool;
|
|
139
139
|
}
|
|
140
|
-
//#endregion
|
|
141
140
|
export { LocalShellActionSchema, LocalShellExecActionSchema, localShell };
|
|
142
141
|
|
|
143
142
|
//# sourceMappingURL=localShell.js.map
|
package/dist/tools/mcp.cjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/mcp.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts a McpToolFilter to the API format.
|
|
4
4
|
*/
|
|
@@ -46,7 +46,6 @@ function mcp(options) {
|
|
|
46
46
|
connector_id: options.connectorId
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
exports.mcp = mcp;
|
|
51
50
|
|
|
52
51
|
//# sourceMappingURL=mcp.cjs.map
|
package/dist/tools/mcp.d.cts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { ServerTool } from "@langchain/core/tools";
|
|
3
|
-
//#region src/tools/mcp.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Available connector IDs for OpenAI's built-in service connectors.
|
|
6
5
|
* These are OpenAI-maintained MCP wrappers for popular services.
|
|
@@ -170,5 +169,5 @@ export type McpTool = OpenAI.Responses.Tool.Mcp;
|
|
|
170
169
|
*/
|
|
171
170
|
export declare function mcp(options: McpRemoteServerOptions): ServerTool;
|
|
172
171
|
export declare function mcp(options: McpConnectorOptions): ServerTool;
|
|
173
|
-
|
|
172
|
+
export {};
|
|
174
173
|
//# sourceMappingURL=mcp.d.cts.map
|
package/dist/tools/mcp.d.cts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/mcp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/mcp.ts"],"mappings":";;;;;;YAOY;;;;iBAaK;;;;EAIf;;;;;EAKA;;;;;iBAMe;;;;EAIf,SAAS;;;;EAIT,QAAQ;;;;;UAMA;;;;EAIR;;;;;EAKA,0BAA0B;;;;;EAK1B;;;;;EAKA,UAAU;;;;;;;;;EASV,uCAAuC;;;;EAIvC;;;;;iBAMe,+BAA+B;;;;;EAK9C;;;;;iBAMe,4BAA4B;;;;;;;;;;;;;;;EAe3C,aAAa;;;;;YAMH,UAAUA,OAAa,UAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA+GlC,IAAI,SAAS,yBAAyB;wBACtC,IAAI,SAAS,sBAAsB"}
|
package/dist/tools/mcp.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { ServerTool } from "@langchain/core/tools";
|
|
3
|
-
//#region src/tools/mcp.d.ts
|
|
4
3
|
/**
|
|
5
4
|
* Available connector IDs for OpenAI's built-in service connectors.
|
|
6
5
|
* These are OpenAI-maintained MCP wrappers for popular services.
|
|
@@ -170,5 +169,5 @@ export type McpTool = OpenAI.Responses.Tool.Mcp;
|
|
|
170
169
|
*/
|
|
171
170
|
export declare function mcp(options: McpRemoteServerOptions): ServerTool;
|
|
172
171
|
export declare function mcp(options: McpConnectorOptions): ServerTool;
|
|
173
|
-
|
|
172
|
+
export {};
|
|
174
173
|
//# sourceMappingURL=mcp.d.ts.map
|
package/dist/tools/mcp.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"mcp.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/mcp.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"mcp.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/mcp.ts"],"mappings":";;;;;;YAOY;;;;iBAaK;;;;EAIf;;;;;EAKA;;;;;iBAMe;;;;EAIf,SAAS;;;;EAIT,QAAQ;;;;;UAMA;;;;EAIR;;;;;EAKA,0BAA0B;;;;;EAK1B;;;;;EAKA,UAAU;;;;;;;;;EASV,uCAAuC;;;;EAIvC;;;;;iBAMe,+BAA+B;;;;;EAK9C;;;;;iBAMe,4BAA4B;;;;;;;;;;;;;;;EAe3C,aAAa;;;;;YAMH,UAAUA,OAAa,UAAU,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBA+GlC,IAAI,SAAS,yBAAyB;wBACtC,IAAI,SAAS,sBAAsB"}
|
package/dist/tools/mcp.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
// src/tools/mcp.ts
|
|
2
2
|
/**
|
|
3
3
|
* Converts a McpToolFilter to the API format.
|
|
4
4
|
*/
|
|
@@ -46,7 +46,6 @@ function mcp(options) {
|
|
|
46
46
|
connector_id: options.connectorId
|
|
47
47
|
};
|
|
48
48
|
}
|
|
49
|
-
//#endregion
|
|
50
49
|
export { mcp };
|
|
51
50
|
|
|
52
51
|
//# sourceMappingURL=mcp.js.map
|
package/dist/tools/shell.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
let _langchain_core_tools = require("@langchain/core/tools");
|
|
2
2
|
let zod_v4 = require("zod/v4");
|
|
3
|
-
|
|
3
|
+
// src/tools/shell.ts
|
|
4
4
|
const ShellActionSchema = zod_v4.z.object({
|
|
5
5
|
commands: zod_v4.z.array(zod_v4.z.string()).describe("Array of shell commands to execute"),
|
|
6
6
|
timeout_ms: zod_v4.z.number().optional().describe("Optional timeout in milliseconds for the commands"),
|
|
@@ -155,7 +155,6 @@ function shell(options) {
|
|
|
155
155
|
};
|
|
156
156
|
return shellTool;
|
|
157
157
|
}
|
|
158
|
-
//#endregion
|
|
159
158
|
exports.ShellActionSchema = ShellActionSchema;
|
|
160
159
|
exports.shell = shell;
|
|
161
160
|
|
package/dist/tools/shell.d.cts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
//#region src/tools/shell.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Re-export action type from OpenAI SDK for convenience.
|
|
7
6
|
* The action contains command details like commands array, timeout, and max output length.
|
|
@@ -215,5 +214,4 @@ export type ShellTool = OpenAI.Responses.FunctionShellTool;
|
|
|
215
214
|
* - Many CLI tools return non-zero exit codes for warnings; still capture stdout/stderr
|
|
216
215
|
*/
|
|
217
216
|
export declare function shell(options: ShellOptions): DynamicStructuredTool<typeof ShellActionSchema, ShellAction, unknown, string>;
|
|
218
|
-
//#endregion
|
|
219
217
|
//# sourceMappingURL=shell.d.cts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/shell.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"shell.d.cts","names":["OpenAIClient"],"sources":["../../src/tools/shell.ts"],"mappings":";;;;;;;YAQY,cACVA,OAAa,UAAU,8BAA8B;qBAG1C,mBAAiB,EAAA;;;;GAY5B,EAAA,KAAA;;;;;YAMU,qBACVA,OAAa,UAAU;;;;YAKb,mBAAmB;;;;;iBAMd;;;;;EAKf,QAAQ;;;;;EAKR;;;;;iBAMe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCf,UAAU,QAAQ,gBAAgB,cAAc,QAAQ;;;;;YAM9C,YAAYA,OAAa,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqI/B,MAAM,SAAS,eAyBT,6BACX,mBACP"}
|
package/dist/tools/shell.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { OpenAI } from "openai";
|
|
2
2
|
import { DynamicStructuredTool } from "@langchain/core/tools";
|
|
3
3
|
import { z } from "zod/v4";
|
|
4
|
-
//#region src/tools/shell.d.ts
|
|
5
4
|
/**
|
|
6
5
|
* Re-export action type from OpenAI SDK for convenience.
|
|
7
6
|
* The action contains command details like commands array, timeout, and max output length.
|
|
@@ -215,5 +214,4 @@ export type ShellTool = OpenAI.Responses.FunctionShellTool;
|
|
|
215
214
|
* - Many CLI tools return non-zero exit codes for warnings; still capture stdout/stderr
|
|
216
215
|
*/
|
|
217
216
|
export declare function shell(options: ShellOptions): DynamicStructuredTool<typeof ShellActionSchema, ShellAction, unknown, string>;
|
|
218
|
-
//#endregion
|
|
219
217
|
//# sourceMappingURL=shell.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"shell.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/shell.ts"],"mappings":"
|
|
1
|
+
{"version":3,"file":"shell.d.ts","names":["OpenAIClient"],"sources":["../../src/tools/shell.ts"],"mappings":";;;;;;;YAQY,cACVA,OAAa,UAAU,8BAA8B;qBAG1C,mBAAiB,EAAA;;;;GAY5B,EAAA,KAAA;;;;;YAMU,qBACVA,OAAa,UAAU;;;;YAKb,mBAAmB;;;;;iBAMd;;;;;EAKf,QAAQ;;;;;EAKR;;;;;iBAMe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAuCf,UAAU,QAAQ,gBAAgB,cAAc,QAAQ;;;;;YAM9C,YAAYA,OAAa,UAAU;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;wBAqI/B,MAAM,SAAS,eAyBT,6BACX,mBACP"}
|
package/dist/tools/shell.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { tool } from "@langchain/core/tools";
|
|
2
2
|
import { z } from "zod/v4";
|
|
3
|
-
|
|
3
|
+
// src/tools/shell.ts
|
|
4
4
|
const ShellActionSchema = z.object({
|
|
5
5
|
commands: z.array(z.string()).describe("Array of shell commands to execute"),
|
|
6
6
|
timeout_ms: z.number().optional().describe("Optional timeout in milliseconds for the commands"),
|
|
@@ -155,7 +155,6 @@ function shell(options) {
|
|
|
155
155
|
};
|
|
156
156
|
return shellTool;
|
|
157
157
|
}
|
|
158
|
-
//#endregion
|
|
159
158
|
export { ShellActionSchema, shell };
|
|
160
159
|
|
|
161
160
|
//# sourceMappingURL=shell.js.map
|