langchain 0.0.172 → 0.0.173

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.
Files changed (56) hide show
  1. package/agents/openai/output_parser.cjs +1 -0
  2. package/agents/openai/output_parser.d.ts +1 -0
  3. package/agents/openai/output_parser.js +1 -0
  4. package/agents/xml/output_parser.cjs +1 -0
  5. package/agents/xml/output_parser.d.ts +1 -0
  6. package/agents/xml/output_parser.js +1 -0
  7. package/dist/agents/index.cjs +3 -1
  8. package/dist/agents/index.d.ts +1 -0
  9. package/dist/agents/index.js +1 -0
  10. package/dist/agents/openai/index.cjs +8 -31
  11. package/dist/agents/openai/index.d.ts +2 -0
  12. package/dist/agents/openai/index.js +8 -31
  13. package/dist/agents/openai/output_parser.cjs +65 -0
  14. package/dist/agents/openai/output_parser.d.ts +22 -0
  15. package/dist/agents/openai/output_parser.js +61 -0
  16. package/dist/agents/toolkits/conversational_retrieval/tool.cjs +2 -1
  17. package/dist/agents/toolkits/conversational_retrieval/tool.js +2 -1
  18. package/dist/agents/xml/index.cjs +9 -25
  19. package/dist/agents/xml/index.d.ts +2 -7
  20. package/dist/agents/xml/index.js +8 -23
  21. package/dist/agents/xml/output_parser.cjs +44 -0
  22. package/dist/agents/xml/output_parser.d.ts +14 -0
  23. package/dist/agents/xml/output_parser.js +40 -0
  24. package/dist/document_loaders/fs/pdf.cjs +2 -1
  25. package/dist/document_loaders/fs/pdf.js +2 -1
  26. package/dist/document_loaders/web/pdf.cjs +2 -1
  27. package/dist/document_loaders/web/pdf.js +2 -1
  28. package/dist/load/import_map.cjs +5 -2
  29. package/dist/load/import_map.d.ts +3 -0
  30. package/dist/load/import_map.js +3 -0
  31. package/dist/memory/vector_store.cjs +2 -1
  32. package/dist/memory/vector_store.js +2 -1
  33. package/dist/storage/file_system.cjs +31 -11
  34. package/dist/storage/file_system.js +9 -9
  35. package/dist/tools/index.cjs +3 -1
  36. package/dist/tools/index.d.ts +1 -0
  37. package/dist/tools/index.js +1 -0
  38. package/dist/tools/render.cjs +19 -1
  39. package/dist/tools/render.d.ts +12 -0
  40. package/dist/tools/render.js +17 -0
  41. package/dist/tools/serpapi.d.ts +2 -2
  42. package/dist/tools/webbrowser.cjs +2 -1
  43. package/dist/tools/webbrowser.js +2 -1
  44. package/dist/util/document.cjs +12 -0
  45. package/dist/util/document.d.ts +9 -0
  46. package/dist/util/document.js +8 -0
  47. package/dist/vectorstores/cassandra.cjs +130 -35
  48. package/dist/vectorstores/cassandra.d.ts +21 -10
  49. package/dist/vectorstores/cassandra.js +130 -35
  50. package/dist/vectorstores/pgvector.cjs +13 -7
  51. package/dist/vectorstores/pgvector.d.ts +7 -0
  52. package/dist/vectorstores/pgvector.js +13 -7
  53. package/package.json +27 -3
  54. package/util/document.cjs +1 -0
  55. package/util/document.d.ts +1 -0
  56. package/util/document.js +1 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain",
3
- "version": "0.0.172",
3
+ "version": "0.0.173",
4
4
  "description": "Typescript bindings for langchain",
5
5
  "type": "module",
6
6
  "engines": {
@@ -46,6 +46,12 @@
46
46
  "agents/react/output_parser.cjs",
47
47
  "agents/react/output_parser.js",
48
48
  "agents/react/output_parser.d.ts",
49
+ "agents/xml/output_parser.cjs",
50
+ "agents/xml/output_parser.js",
51
+ "agents/xml/output_parser.d.ts",
52
+ "agents/openai/output_parser.cjs",
53
+ "agents/openai/output_parser.js",
54
+ "agents/openai/output_parser.d.ts",
49
55
  "base_language.cjs",
50
56
  "base_language.js",
51
57
  "base_language.d.ts",
@@ -697,6 +703,9 @@
697
703
  "hub.cjs",
698
704
  "hub.js",
699
705
  "hub.d.ts",
706
+ "util/document.cjs",
707
+ "util/document.js",
708
+ "util/document.d.ts",
700
709
  "util/math.cjs",
701
710
  "util/math.js",
702
711
  "util/math.d.ts",
@@ -837,7 +846,7 @@
837
846
  "apify-client": "^2.7.1",
838
847
  "assemblyai": "^2.0.2",
839
848
  "axios": "^0.26.0",
840
- "cassandra-driver": "^4.6.4",
849
+ "cassandra-driver": "^4.7.2",
841
850
  "cheerio": "^1.0.0-rc.12",
842
851
  "chromadb": "^1.5.3",
843
852
  "closevector-common": "0.1.0-alpha.1",
@@ -953,7 +962,7 @@
953
962
  "apify-client": "^2.7.1",
954
963
  "assemblyai": "^2.0.2",
955
964
  "axios": "*",
956
- "cassandra-driver": "^4.6.4",
965
+ "cassandra-driver": "^4.7.2",
957
966
  "cheerio": "^1.0.0-rc.12",
958
967
  "chromadb": "*",
959
968
  "closevector-common": "0.1.0-alpha.1",
@@ -1391,6 +1400,16 @@
1391
1400
  "import": "./agents/react/output_parser.js",
1392
1401
  "require": "./agents/react/output_parser.cjs"
1393
1402
  },
1403
+ "./agents/xml/output_parser": {
1404
+ "types": "./agents/xml/output_parser.d.ts",
1405
+ "import": "./agents/xml/output_parser.js",
1406
+ "require": "./agents/xml/output_parser.cjs"
1407
+ },
1408
+ "./agents/openai/output_parser": {
1409
+ "types": "./agents/openai/output_parser.d.ts",
1410
+ "import": "./agents/openai/output_parser.js",
1411
+ "require": "./agents/openai/output_parser.cjs"
1412
+ },
1394
1413
  "./base_language": {
1395
1414
  "types": "./base_language.d.ts",
1396
1415
  "import": "./base_language.js",
@@ -2476,6 +2495,11 @@
2476
2495
  "import": "./hub.js",
2477
2496
  "require": "./hub.cjs"
2478
2497
  },
2498
+ "./util/document": {
2499
+ "types": "./util/document.d.ts",
2500
+ "import": "./util/document.js",
2501
+ "require": "./util/document.cjs"
2502
+ },
2479
2503
  "./util/math": {
2480
2504
  "types": "./util/math.d.ts",
2481
2505
  "import": "./util/math.js",
@@ -0,0 +1 @@
1
+ module.exports = require('../dist/util/document.cjs');
@@ -0,0 +1 @@
1
+ export * from '../dist/util/document.js'
@@ -0,0 +1 @@
1
+ export * from '../dist/util/document.js'