@langchain/openai 0.0.25 → 0.0.26

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.
@@ -1,6 +1,17 @@
1
- import { type OpenAI as OpenAIClient } from "openai";
2
1
  import type { StructuredToolInterface } from "@langchain/core/tools";
3
2
  import { convertToOpenAIFunction, convertToOpenAITool } from "@langchain/core/utils/function_calling";
4
3
  export declare function wrapOpenAIClientError(e: any): any;
5
4
  export { convertToOpenAIFunction as formatToOpenAIFunction, convertToOpenAITool as formatToOpenAITool, };
6
- export declare function formatToOpenAIAssistantTool(tool: StructuredToolInterface): OpenAIClient.Beta.AssistantCreateParams.AssistantToolsFunction;
5
+ export declare function formatToOpenAIAssistantTool(tool: StructuredToolInterface): {
6
+ type: string;
7
+ function: {
8
+ name: string;
9
+ description: string;
10
+ parameters: import("zod-to-json-schema").JsonSchema7Type & {
11
+ $schema?: string | undefined;
12
+ definitions?: {
13
+ [key: string]: import("zod-to-json-schema").JsonSchema7Type;
14
+ } | undefined;
15
+ };
16
+ };
17
+ };
@@ -1,4 +1,4 @@
1
- import { APIConnectionTimeoutError, APIUserAbortError, } from "openai";
1
+ import { APIConnectionTimeoutError, APIUserAbortError } from "openai";
2
2
  import { zodToJsonSchema } from "zod-to-json-schema";
3
3
  import { convertToOpenAIFunction, convertToOpenAITool, } from "@langchain/core/utils/function_calling";
4
4
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/openai",
3
- "version": "0.0.25",
3
+ "version": "0.0.26",
4
4
  "description": "OpenAI integrations for LangChain.js",
5
5
  "type": "module",
6
6
  "engines": {
@@ -41,7 +41,7 @@
41
41
  "dependencies": {
42
42
  "@langchain/core": "~0.1.45",
43
43
  "js-tiktoken": "^1.0.7",
44
- "openai": "^4.26.0",
44
+ "openai": "^4.32.1",
45
45
  "zod": "^3.22.4",
46
46
  "zod-to-json-schema": "^3.22.3"
47
47
  },