langchain 0.0.80 → 0.0.81

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/README.md CHANGED
@@ -2,6 +2,11 @@
2
2
 
3
3
  ⚡ Building applications with LLMs through composability ⚡
4
4
 
5
+ [![CI](https://github.com/hwchase17/langchainjs/actions/workflows/ci.yml/badge.svg)](https://github.com/hwchase17/langchainjs/actions/workflows/ci.yml) ![npm](https://img.shields.io/npm/dw/langchain) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Twitter](https://img.shields.io/twitter/url/https/twitter.com/langchainai.svg?style=social&label=Follow%20%40LangChainAI)](https://twitter.com/langchainai) [![](https://dcbadge.vercel.app/api/server/6adMQxSpJS?compact=true&style=flat)](https://discord.gg/6adMQxSpJS) [![Open in Dev Containers](https://img.shields.io/static/v1?label=Dev%20Containers&message=Open&color=blue&logo=visualstudiocode)](https://vscode.dev/redirect?url=vscode://ms-vscode-remote.remote-containers/cloneInVolume?url=https://github.com/hwchase17/langchainjs)
6
+ [<img src="https://github.com/codespaces/badge.svg" title="Open in Github Codespace" width="150" height="20">](https://codespaces.new/hwchase17/langchainjs)
7
+
8
+ Looking for the Python version? Check out [LangChain](https://github.com/hwchase17/langchain).
9
+
5
10
  **Production Support:** As you move your LangChains into production, we'd love to offer more comprehensive support.
6
11
  Please fill out [this form](https://forms.gle/57d8AmXBYp8PP8tZA) and we'll set up a dedicated support Slack channel.
7
12
 
@@ -10,9 +15,20 @@ Please fill out [this form](https://forms.gle/57d8AmXBYp8PP8tZA) and we'll set u
10
15
  `yarn add langchain`
11
16
 
12
17
  ```typescript
13
- import { OpenAI } from 'langchain/llms';
18
+ import { OpenAI } from "langchain/llms/openai";
14
19
  ```
15
20
 
21
+ ## Supported Environments
22
+
23
+ LangChain is written in TypeScript and can be used in:
24
+
25
+ - Node.js (ESM and CommonJS) - 18.x, 19.x, 20.x
26
+ - Cloudflare Workers
27
+ - Vercel / Next.js (Browser, Serverless and Edge functions)
28
+ - Supabase Edge Functions
29
+ - Browser
30
+ - Deno
31
+
16
32
  ## 🤔 What is this?
17
33
 
18
34
  Large language models (LLMs) are emerging as a transformative technology, enabling
@@ -22,12 +38,18 @@ create a truly powerful app - the real power comes when you can combine them wit
22
38
 
23
39
  This library is aimed at assisting in the development of those types of applications.
24
40
 
41
+ ## 📖 Full Documentation
42
+
43
+ For full documentation of prompts, chains, agents and more, please see [here](https://js.langchain.com/docs/).
44
+
25
45
  ## Relationship with Python LangChain
26
46
 
27
47
  This is built to integrate as seamlessly as possible with the [LangChain Python package](https://github.com/hwchase17/langchain). Specifically, this means all objects (prompts, LLMs, chains, etc) are designed in a way where they can be serialized and shared between languages.
28
48
 
29
49
  The [LangChainHub](https://github.com/hwchase17/langchain-hub) is a central place for the serialized versions of these prompts, chains, and agents.
30
50
 
31
- ## 📖 Documentation
51
+ ## 💁 Contributing
52
+
53
+ As an open source project in a rapidly developing field, we are extremely open to contributions, whether it be in the form of a new feature, improved infra, or better documentation.
32
54
 
33
- For full documentation of prompts, chains, agents and more, please see [here](https://hwchase17.github.io/langchainjs/docs/overview).
55
+ Check out [our contributing guidelines](https://github.com/hwchase17/langchainjs/blob/main/CONTRIBUTING.md) for instructions on how to contribute.
@@ -20,7 +20,7 @@ class LangChainTracer extends tracer_js_1.BaseTracer {
20
20
  value: (typeof process !== "undefined"
21
21
  ? // eslint-disable-next-line no-process-env
22
22
  process.env?.LANGCHAIN_ENDPOINT
23
- : undefined) || "http://localhost:8000"
23
+ : undefined) || "http://localhost:1984"
24
24
  });
25
25
  Object.defineProperty(this, "headers", {
26
26
  enumerable: true,
@@ -17,7 +17,7 @@ export class LangChainTracer extends BaseTracer {
17
17
  value: (typeof process !== "undefined"
18
18
  ? // eslint-disable-next-line no-process-env
19
19
  process.env?.LANGCHAIN_ENDPOINT
20
- : undefined) || "http://localhost:8000"
20
+ : undefined) || "http://localhost:1984"
21
21
  });
22
22
  Object.defineProperty(this, "headers", {
23
23
  enumerable: true,
@@ -19,7 +19,7 @@ class LangChainTracerV1 extends tracer_js_1.BaseTracer {
19
19
  value: (typeof process !== "undefined"
20
20
  ? // eslint-disable-next-line no-process-env
21
21
  process.env?.LANGCHAIN_ENDPOINT
22
- : undefined) || "http://localhost:8000"
22
+ : undefined) || "http://localhost:1984"
23
23
  });
24
24
  Object.defineProperty(this, "headers", {
25
25
  enumerable: true,
@@ -16,7 +16,7 @@ export class LangChainTracerV1 extends BaseTracer {
16
16
  value: (typeof process !== "undefined"
17
17
  ? // eslint-disable-next-line no-process-env
18
18
  process.env?.LANGCHAIN_ENDPOINT
19
- : undefined) || "http://localhost:8000"
19
+ : undefined) || "http://localhost:1984"
20
20
  });
21
21
  Object.defineProperty(this, "headers", {
22
22
  enumerable: true,
@@ -99,7 +99,7 @@ class LangChainPlusClient {
99
99
  value: (typeof process !== "undefined"
100
100
  ? // eslint-disable-next-line no-process-env
101
101
  process.env?.LANGCHAIN_ENDPOINT
102
- : undefined) || "http://localhost:8000"
102
+ : undefined) || "http://localhost:1984"
103
103
  });
104
104
  Object.defineProperty(this, "tenantId", {
105
105
  enumerable: true,
@@ -135,7 +135,7 @@ class LangChainPlusClient {
135
135
  ? // eslint-disable-next-line no-process-env
136
136
  process.env?.LANGCHAIN_ENDPOINT
137
137
  : undefined) ||
138
- "http://localhost:8000");
138
+ "http://localhost:1984");
139
139
  const apiKey_ = config.apiKey ??
140
140
  (typeof process !== "undefined"
141
141
  ? // eslint-disable-next-line no-process-env
@@ -93,7 +93,7 @@ export class LangChainPlusClient {
93
93
  value: (typeof process !== "undefined"
94
94
  ? // eslint-disable-next-line no-process-env
95
95
  process.env?.LANGCHAIN_ENDPOINT
96
- : undefined) || "http://localhost:8000"
96
+ : undefined) || "http://localhost:1984"
97
97
  });
98
98
  Object.defineProperty(this, "tenantId", {
99
99
  enumerable: true,
@@ -129,7 +129,7 @@ export class LangChainPlusClient {
129
129
  ? // eslint-disable-next-line no-process-env
130
130
  process.env?.LANGCHAIN_ENDPOINT
131
131
  : undefined) ||
132
- "http://localhost:8000");
132
+ "http://localhost:1984");
133
133
  const apiKey_ = config.apiKey ??
134
134
  (typeof process !== "undefined"
135
135
  ? // eslint-disable-next-line no-process-env
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "langchain",
3
- "version": "0.0.80",
3
+ "version": "0.0.81",
4
4
  "description": "Typescript bindings for langchain",
5
5
  "type": "module",
6
6
  "engines": {
@@ -525,6 +525,9 @@
525
525
  "faiss-node": {
526
526
  "optional": true
527
527
  },
528
+ "google-auth-library": {
529
+ "optional": true
530
+ },
528
531
  "hnswlib-node": {
529
532
  "optional": true
530
533
  },