@langchain/core 0.3.21 → 0.3.23
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/callbacks/base.cjs +9 -1
- package/dist/callbacks/base.d.ts +1 -0
- package/dist/callbacks/base.js +7 -0
- package/dist/callbacks/manager.cjs +18 -0
- package/dist/callbacks/manager.js +19 -1
- package/dist/context.cjs +13 -123
- package/dist/context.d.ts +2 -101
- package/dist/context.js +9 -119
- package/dist/messages/tool.cjs +14 -1
- package/dist/messages/tool.d.ts +13 -1
- package/dist/messages/tool.js +12 -0
- package/dist/output_parsers/transform.cjs +2 -2
- package/dist/output_parsers/transform.js +1 -1
- package/dist/runnables/base.cjs +2 -2
- package/dist/runnables/base.d.ts +1 -2
- package/dist/runnables/base.js +3 -3
- package/dist/runnables/config.cjs +17 -1
- package/dist/runnables/config.d.ts +1 -0
- package/dist/runnables/config.js +15 -0
- package/dist/runnables/index.cjs +2 -1
- package/dist/runnables/index.d.ts +1 -1
- package/dist/runnables/index.js +1 -1
- package/dist/runnables/iter.cjs +3 -2
- package/dist/runnables/iter.d.ts +1 -1
- package/dist/runnables/iter.js +3 -2
- package/dist/runnables/types.d.ts +1 -1
- package/dist/singletons/async_local_storage/context.cjs +189 -0
- package/dist/singletons/async_local_storage/context.d.ts +155 -0
- package/dist/singletons/async_local_storage/context.js +182 -0
- package/dist/singletons/async_local_storage/globals.cjs +2 -1
- package/dist/singletons/async_local_storage/globals.d.ts +2 -1
- package/dist/singletons/async_local_storage/globals.js +1 -0
- package/dist/singletons/async_local_storage/index.cjs +4 -5
- package/dist/singletons/async_local_storage/index.d.ts +0 -1
- package/dist/singletons/async_local_storage/index.js +1 -2
- package/dist/singletons/callbacks.cjs +6 -4
- package/dist/singletons/callbacks.js +6 -4
- package/dist/singletons/index.cjs +3 -3
- package/dist/singletons/index.d.ts +4 -2
- package/dist/singletons/index.js +4 -3
- package/dist/tools/index.cjs +14 -12
- package/dist/tools/index.d.ts +11 -8
- package/dist/tools/index.js +16 -14
- package/dist/types/stream.d.ts +1 -0
- package/dist/utils/json_schema.cjs +3 -3
- package/dist/utils/json_schema.d.ts +1 -1
- package/dist/utils/json_schema.js +1 -1
- package/dist/utils/stream.cjs +3 -2
- package/dist/utils/stream.d.ts +2 -1
- package/dist/utils/stream.js +3 -2
- package/package.json +2 -1
- package/dist/utils/@cfworker/json-schema/index.cjs +0 -17
- package/dist/utils/@cfworker/json-schema/index.d.ts +0 -1
- package/dist/utils/@cfworker/json-schema/index.js +0 -1
- package/dist/utils/@cfworker/json-schema/src/deep-compare-strict.cjs +0 -43
- package/dist/utils/@cfworker/json-schema/src/deep-compare-strict.d.ts +0 -1
- package/dist/utils/@cfworker/json-schema/src/deep-compare-strict.js +0 -39
- package/dist/utils/@cfworker/json-schema/src/dereference.cjs +0 -171
- package/dist/utils/@cfworker/json-schema/src/dereference.d.ts +0 -12
- package/dist/utils/@cfworker/json-schema/src/dereference.js +0 -167
- package/dist/utils/@cfworker/json-schema/src/format.cjs +0 -139
- package/dist/utils/@cfworker/json-schema/src/format.d.ts +0 -2
- package/dist/utils/@cfworker/json-schema/src/format.js +0 -136
- package/dist/utils/@cfworker/json-schema/src/index.cjs +0 -24
- package/dist/utils/@cfworker/json-schema/src/index.d.ts +0 -8
- package/dist/utils/@cfworker/json-schema/src/index.js +0 -8
- package/dist/utils/@cfworker/json-schema/src/pointer.cjs +0 -11
- package/dist/utils/@cfworker/json-schema/src/pointer.d.ts +0 -2
- package/dist/utils/@cfworker/json-schema/src/pointer.js +0 -6
- package/dist/utils/@cfworker/json-schema/src/types.d.ts +0 -72
- package/dist/utils/@cfworker/json-schema/src/ucs2-length.cjs +0 -28
- package/dist/utils/@cfworker/json-schema/src/ucs2-length.d.ts +0 -6
- package/dist/utils/@cfworker/json-schema/src/ucs2-length.js +0 -24
- package/dist/utils/@cfworker/json-schema/src/validate.cjs +0 -808
- package/dist/utils/@cfworker/json-schema/src/validate.d.ts +0 -3
- package/dist/utils/@cfworker/json-schema/src/validate.js +0 -804
- package/dist/utils/@cfworker/json-schema/src/validator.cjs +0 -44
- package/dist/utils/@cfworker/json-schema/src/validator.d.ts +0 -10
- package/dist/utils/@cfworker/json-schema/src/validator.js +0 -40
- /package/dist/{utils/@cfworker/json-schema/src/types.cjs → types/stream.cjs} +0 -0
- /package/dist/{utils/@cfworker/json-schema/src/types.js → types/stream.js} +0 -0
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.Validator = void 0;
|
|
4
|
-
const dereference_js_1 = require("./dereference.cjs");
|
|
5
|
-
const validate_js_1 = require("./validate.cjs");
|
|
6
|
-
class Validator {
|
|
7
|
-
constructor(schema, draft = "2019-09", shortCircuit = true) {
|
|
8
|
-
Object.defineProperty(this, "schema", {
|
|
9
|
-
enumerable: true,
|
|
10
|
-
configurable: true,
|
|
11
|
-
writable: true,
|
|
12
|
-
value: schema
|
|
13
|
-
});
|
|
14
|
-
Object.defineProperty(this, "draft", {
|
|
15
|
-
enumerable: true,
|
|
16
|
-
configurable: true,
|
|
17
|
-
writable: true,
|
|
18
|
-
value: draft
|
|
19
|
-
});
|
|
20
|
-
Object.defineProperty(this, "shortCircuit", {
|
|
21
|
-
enumerable: true,
|
|
22
|
-
configurable: true,
|
|
23
|
-
writable: true,
|
|
24
|
-
value: shortCircuit
|
|
25
|
-
});
|
|
26
|
-
Object.defineProperty(this, "lookup", {
|
|
27
|
-
enumerable: true,
|
|
28
|
-
configurable: true,
|
|
29
|
-
writable: true,
|
|
30
|
-
value: void 0
|
|
31
|
-
});
|
|
32
|
-
this.lookup = (0, dereference_js_1.dereference)(schema);
|
|
33
|
-
}
|
|
34
|
-
validate(instance) {
|
|
35
|
-
return (0, validate_js_1.validate)(instance, this.schema, this.draft, this.lookup, this.shortCircuit);
|
|
36
|
-
}
|
|
37
|
-
addSchema(schema, id) {
|
|
38
|
-
if (id) {
|
|
39
|
-
schema = { ...schema, $id: id };
|
|
40
|
-
}
|
|
41
|
-
(0, dereference_js_1.dereference)(schema, this.lookup);
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
exports.Validator = Validator;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { Schema, SchemaDraft } from "./types.js";
|
|
2
|
-
export declare class Validator {
|
|
3
|
-
private readonly schema;
|
|
4
|
-
private readonly draft;
|
|
5
|
-
private readonly shortCircuit;
|
|
6
|
-
private readonly lookup;
|
|
7
|
-
constructor(schema: Schema | boolean, draft?: SchemaDraft, shortCircuit?: boolean);
|
|
8
|
-
validate(instance: any): import("./types.js").ValidationResult;
|
|
9
|
-
addSchema(schema: Schema, id?: string): void;
|
|
10
|
-
}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { dereference } from "./dereference.js";
|
|
2
|
-
import { validate } from "./validate.js";
|
|
3
|
-
export class Validator {
|
|
4
|
-
constructor(schema, draft = "2019-09", shortCircuit = true) {
|
|
5
|
-
Object.defineProperty(this, "schema", {
|
|
6
|
-
enumerable: true,
|
|
7
|
-
configurable: true,
|
|
8
|
-
writable: true,
|
|
9
|
-
value: schema
|
|
10
|
-
});
|
|
11
|
-
Object.defineProperty(this, "draft", {
|
|
12
|
-
enumerable: true,
|
|
13
|
-
configurable: true,
|
|
14
|
-
writable: true,
|
|
15
|
-
value: draft
|
|
16
|
-
});
|
|
17
|
-
Object.defineProperty(this, "shortCircuit", {
|
|
18
|
-
enumerable: true,
|
|
19
|
-
configurable: true,
|
|
20
|
-
writable: true,
|
|
21
|
-
value: shortCircuit
|
|
22
|
-
});
|
|
23
|
-
Object.defineProperty(this, "lookup", {
|
|
24
|
-
enumerable: true,
|
|
25
|
-
configurable: true,
|
|
26
|
-
writable: true,
|
|
27
|
-
value: void 0
|
|
28
|
-
});
|
|
29
|
-
this.lookup = dereference(schema);
|
|
30
|
-
}
|
|
31
|
-
validate(instance) {
|
|
32
|
-
return validate(instance, this.schema, this.draft, this.lookup, this.shortCircuit);
|
|
33
|
-
}
|
|
34
|
-
addSchema(schema, id) {
|
|
35
|
-
if (id) {
|
|
36
|
-
schema = { ...schema, $id: id };
|
|
37
|
-
}
|
|
38
|
-
dereference(schema, this.lookup);
|
|
39
|
-
}
|
|
40
|
-
}
|
|
File without changes
|
|
File without changes
|