@langchain/core 0.3.19-rc.0 → 0.3.19

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.
@@ -21,6 +21,8 @@ class BytesOutputParser extends transform_js_1.BaseTransformOutputParser {
21
21
  writable: true,
22
22
  value: true
23
23
  });
24
+ // TODO: Figure out why explicit typing is needed
25
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
24
26
  Object.defineProperty(this, "textEncoder", {
25
27
  enumerable: true,
26
28
  configurable: true,
@@ -7,7 +7,7 @@ export declare class BytesOutputParser extends BaseTransformOutputParser<Uint8Ar
7
7
  static lc_name(): string;
8
8
  lc_namespace: string[];
9
9
  lc_serializable: boolean;
10
- protected textEncoder: TextEncoder;
10
+ protected textEncoder: any;
11
11
  parse(text: string): Promise<Uint8Array>;
12
12
  getFormatInstructions(): string;
13
13
  }
@@ -18,6 +18,8 @@ export class BytesOutputParser extends BaseTransformOutputParser {
18
18
  writable: true,
19
19
  value: true
20
20
  });
21
+ // TODO: Figure out why explicit typing is needed
22
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
21
23
  Object.defineProperty(this, "textEncoder", {
22
24
  enumerable: true,
23
25
  configurable: true,
@@ -4,13 +4,13 @@ import { BaseLangChain, type BaseLangChainParams } from "../language_models/base
4
4
  import { type RunnableConfig } from "../runnables/config.js";
5
5
  import type { RunnableFunc, RunnableInterface } from "../runnables/base.js";
6
6
  import { ToolCall } from "../messages/tool.js";
7
- import { ZodObjectAny } from "../types/zod.js";
8
7
  import { MessageContent } from "../messages/base.js";
9
8
  import { ToolInputParsingException } from "./utils.js";
10
9
  export { ToolInputParsingException };
11
10
  export type ResponseFormat = "content" | "content_and_artifact" | string;
12
11
  type ToolReturnType = any;
13
12
  export type ContentAndArtifact = [MessageContent, any];
13
+ type ZodObjectAny = z.ZodObject<any, any, any, any>;
14
14
  /**
15
15
  * Parameters for the Tool classes.
16
16
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@langchain/core",
3
- "version": "0.3.19-rc.0",
3
+ "version": "0.3.19",
4
4
  "description": "Core LangChain.js abstractions and schemas",
5
5
  "type": "module",
6
6
  "engines": {
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- import type { z } from "zod";
2
- export type ZodObjectAny = z.ZodObject<any, any, any, any>;
package/dist/types/zod.js DELETED
@@ -1 +0,0 @@
1
- export {};