langchain 0.0.138 → 0.0.140
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/agents/initialize.cjs +11 -0
- package/dist/agents/initialize.d.ts +4 -0
- package/dist/agents/initialize.js +11 -0
- package/dist/agents/xml/index.cjs +119 -0
- package/dist/agents/xml/index.d.ts +51 -0
- package/dist/agents/xml/index.js +114 -0
- package/dist/agents/xml/prompt.cjs +23 -0
- package/dist/agents/xml/prompt.d.ts +1 -0
- package/dist/agents/xml/prompt.js +20 -0
- package/dist/callbacks/base.d.ts +12 -4
- package/dist/callbacks/handlers/run_collector.cjs +50 -0
- package/dist/callbacks/handlers/run_collector.d.ts +26 -0
- package/dist/callbacks/handlers/run_collector.js +46 -0
- package/dist/callbacks/handlers/tracer.cjs +16 -3
- package/dist/callbacks/handlers/tracer.d.ts +6 -2
- package/dist/callbacks/handlers/tracer.js +16 -3
- package/dist/callbacks/handlers/tracer_langchain.cjs +1 -0
- package/dist/callbacks/handlers/tracer_langchain.d.ts +2 -1
- package/dist/callbacks/handlers/tracer_langchain.js +1 -0
- package/dist/callbacks/index.cjs +3 -1
- package/dist/callbacks/index.d.ts +1 -0
- package/dist/callbacks/index.js +1 -0
- package/dist/callbacks/manager.cjs +4 -4
- package/dist/callbacks/manager.d.ts +6 -2
- package/dist/callbacks/manager.js +4 -4
- package/dist/chains/openai_functions/extraction.cjs +2 -2
- package/dist/chains/openai_functions/extraction.d.ts +5 -4
- package/dist/chains/openai_functions/extraction.js +2 -2
- package/dist/chains/openai_functions/openapi.d.ts +2 -1
- package/dist/chains/openai_functions/structured_output.d.ts +4 -3
- package/dist/chains/openai_functions/tagging.cjs +2 -2
- package/dist/chains/openai_functions/tagging.d.ts +5 -4
- package/dist/chains/openai_functions/tagging.js +2 -2
- package/dist/chat_models/anthropic.cjs +7 -5
- package/dist/chat_models/anthropic.d.ts +17 -12
- package/dist/chat_models/anthropic.js +4 -2
- package/dist/experimental/chat_models/anthropic_functions.cjs +129 -0
- package/dist/experimental/chat_models/anthropic_functions.d.ts +20 -0
- package/dist/experimental/chat_models/anthropic_functions.js +125 -0
- package/dist/hub.d.ts +1 -1
- package/dist/llms/sagemaker_endpoint.cjs +1 -1
- package/dist/llms/sagemaker_endpoint.js +1 -1
- package/dist/load/import_constants.cjs +1 -0
- package/dist/load/import_constants.js +1 -0
- package/dist/schema/output_parser.cjs +1 -1
- package/dist/schema/output_parser.js +1 -1
- package/dist/schema/runnable.cjs +54 -15
- package/dist/schema/runnable.d.ts +9 -3
- package/dist/schema/runnable.js +55 -16
- package/dist/sql_db.cjs +3 -1
- package/dist/sql_db.js +3 -1
- package/experimental/chat_models/anthropic_functions.cjs +1 -0
- package/experimental/chat_models/anthropic_functions.d.ts +1 -0
- package/experimental/chat_models/anthropic_functions.js +1 -0
- package/package.json +17 -8
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.140",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -580,6 +580,9 @@
|
|
|
580
580
|
"experimental/multimodal_embeddings/googlevertexai.cjs",
|
|
581
581
|
"experimental/multimodal_embeddings/googlevertexai.js",
|
|
582
582
|
"experimental/multimodal_embeddings/googlevertexai.d.ts",
|
|
583
|
+
"experimental/chat_models/anthropic_functions.cjs",
|
|
584
|
+
"experimental/chat_models/anthropic_functions.js",
|
|
585
|
+
"experimental/chat_models/anthropic_functions.d.ts",
|
|
583
586
|
"evaluation.cjs",
|
|
584
587
|
"evaluation.js",
|
|
585
588
|
"evaluation.d.ts",
|
|
@@ -685,6 +688,7 @@
|
|
|
685
688
|
"eslint-plugin-no-instanceof": "^1.0.1",
|
|
686
689
|
"eslint-plugin-prettier": "^4.2.1",
|
|
687
690
|
"faiss-node": "^0.3.0",
|
|
691
|
+
"fast-xml-parser": "^4.2.7",
|
|
688
692
|
"firebase-admin": "^11.9.0",
|
|
689
693
|
"google-auth-library": "^8.9.0",
|
|
690
694
|
"graphql": "^16.6.0",
|
|
@@ -694,7 +698,6 @@
|
|
|
694
698
|
"ioredis": "^5.3.2",
|
|
695
699
|
"jest": "^29.5.0",
|
|
696
700
|
"jsdom": "^22.1.0",
|
|
697
|
-
"langchainhub": "~0.0.3",
|
|
698
701
|
"mammoth": "^1.5.1",
|
|
699
702
|
"ml-matrix": "^6.10.4",
|
|
700
703
|
"mongodb": "^5.2.0",
|
|
@@ -774,6 +777,7 @@
|
|
|
774
777
|
"d3-dsv": "^2.0.0",
|
|
775
778
|
"epub2": "^3.0.1",
|
|
776
779
|
"faiss-node": "^0.3.0",
|
|
780
|
+
"fast-xml-parser": "^4.2.7",
|
|
777
781
|
"firebase-admin": "^11.9.0",
|
|
778
782
|
"google-auth-library": "^8.9.0",
|
|
779
783
|
"hnswlib-node": "^1.4.2",
|
|
@@ -781,7 +785,6 @@
|
|
|
781
785
|
"ignore": "^5.2.0",
|
|
782
786
|
"ioredis": "^5.3.2",
|
|
783
787
|
"jsdom": "*",
|
|
784
|
-
"langchainhub": "~0.0.3",
|
|
785
788
|
"mammoth": "*",
|
|
786
789
|
"mongodb": "^5.2.0",
|
|
787
790
|
"mysql2": "^3.3.3",
|
|
@@ -945,6 +948,9 @@
|
|
|
945
948
|
"faiss-node": {
|
|
946
949
|
"optional": true
|
|
947
950
|
},
|
|
951
|
+
"fast-xml-parser": {
|
|
952
|
+
"optional": true
|
|
953
|
+
},
|
|
948
954
|
"firebase-admin": {
|
|
949
955
|
"optional": true
|
|
950
956
|
},
|
|
@@ -966,9 +972,6 @@
|
|
|
966
972
|
"jsdom": {
|
|
967
973
|
"optional": true
|
|
968
974
|
},
|
|
969
|
-
"langchainhub": {
|
|
970
|
-
"optional": true
|
|
971
|
-
},
|
|
972
975
|
"mammoth": {
|
|
973
976
|
"optional": true
|
|
974
977
|
},
|
|
@@ -1040,7 +1043,7 @@
|
|
|
1040
1043
|
}
|
|
1041
1044
|
},
|
|
1042
1045
|
"dependencies": {
|
|
1043
|
-
"@anthropic-ai/sdk": "^0.
|
|
1046
|
+
"@anthropic-ai/sdk": "^0.6.2",
|
|
1044
1047
|
"ansi-styles": "^5.0.0",
|
|
1045
1048
|
"binary-extensions": "^2.2.0",
|
|
1046
1049
|
"camelcase": "6",
|
|
@@ -1050,7 +1053,8 @@
|
|
|
1050
1053
|
"js-tiktoken": "^1.0.7",
|
|
1051
1054
|
"js-yaml": "^4.1.0",
|
|
1052
1055
|
"jsonpointer": "^5.0.1",
|
|
1053
|
-
"
|
|
1056
|
+
"langchainhub": "~0.0.6",
|
|
1057
|
+
"langsmith": "~0.0.31",
|
|
1054
1058
|
"ml-distance": "^4.0.0",
|
|
1055
1059
|
"object-hash": "^3.0.0",
|
|
1056
1060
|
"openai": "^3.3.0",
|
|
@@ -2047,6 +2051,11 @@
|
|
|
2047
2051
|
"import": "./experimental/multimodal_embeddings/googlevertexai.js",
|
|
2048
2052
|
"require": "./experimental/multimodal_embeddings/googlevertexai.cjs"
|
|
2049
2053
|
},
|
|
2054
|
+
"./experimental/chat_models/anthropic_functions": {
|
|
2055
|
+
"types": "./experimental/chat_models/anthropic_functions.d.ts",
|
|
2056
|
+
"import": "./experimental/chat_models/anthropic_functions.js",
|
|
2057
|
+
"require": "./experimental/chat_models/anthropic_functions.cjs"
|
|
2058
|
+
},
|
|
2050
2059
|
"./evaluation": {
|
|
2051
2060
|
"types": "./evaluation.d.ts",
|
|
2052
2061
|
"import": "./evaluation.js",
|