langchain 0.2.0-rc.1 → 0.2.1
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 +7 -7
- package/dist/agents/chat/index.cjs +1 -1
- package/dist/agents/chat/index.d.ts +1 -1
- package/dist/agents/chat/index.js +1 -1
- package/dist/agents/chat_convo/index.cjs +1 -1
- package/dist/agents/chat_convo/index.d.ts +1 -1
- package/dist/agents/chat_convo/index.js +1 -1
- package/dist/agents/executor.cjs +2 -2
- package/dist/agents/executor.js +2 -2
- package/dist/agents/mrkl/index.cjs +1 -1
- package/dist/agents/mrkl/index.d.ts +1 -1
- package/dist/agents/mrkl/index.js +1 -1
- package/dist/agents/openai_functions/index.cjs +1 -1
- package/dist/agents/openai_functions/index.d.ts +1 -1
- package/dist/agents/openai_functions/index.js +1 -1
- package/dist/agents/structured_chat/index.cjs +1 -1
- package/dist/agents/structured_chat/index.d.ts +1 -1
- package/dist/agents/structured_chat/index.js +1 -1
- package/dist/agents/xml/index.cjs +1 -1
- package/dist/agents/xml/index.d.ts +1 -1
- package/dist/agents/xml/index.js +1 -1
- package/dist/chains/load.cjs +1 -1
- package/dist/chains/load.d.ts +1 -1
- package/dist/chains/load.js +1 -1
- package/dist/chains/openai_functions/structured_output.cjs +2 -2
- package/dist/chains/openai_functions/structured_output.d.ts +2 -2
- package/dist/chains/openai_functions/structured_output.js +2 -2
- package/dist/chains/serde.d.ts +12 -12
- package/dist/document_loaders/fs/docx.cjs +2 -0
- package/dist/document_loaders/fs/docx.d.ts +2 -0
- package/dist/document_loaders/fs/docx.js +2 -0
- package/dist/document_loaders/fs/epub.cjs +2 -0
- package/dist/document_loaders/fs/epub.d.ts +2 -0
- package/dist/document_loaders/fs/epub.js +2 -0
- package/dist/document_loaders/fs/notion.cjs +2 -0
- package/dist/document_loaders/fs/notion.d.ts +2 -0
- package/dist/document_loaders/fs/notion.js +2 -0
- package/dist/document_loaders/fs/obsidian.cjs +2 -0
- package/dist/document_loaders/fs/obsidian.d.ts +2 -0
- package/dist/document_loaders/fs/obsidian.js +2 -0
- package/dist/document_loaders/fs/openai_whisper_audio.cjs +2 -0
- package/dist/document_loaders/fs/openai_whisper_audio.d.ts +2 -0
- package/dist/document_loaders/fs/openai_whisper_audio.js +2 -0
- package/dist/document_loaders/fs/pdf.cjs +2 -0
- package/dist/document_loaders/fs/pdf.d.ts +2 -0
- package/dist/document_loaders/fs/pdf.js +2 -0
- package/dist/document_loaders/fs/pptx.cjs +2 -0
- package/dist/document_loaders/fs/pptx.d.ts +2 -0
- package/dist/document_loaders/fs/pptx.js +2 -0
- package/dist/document_loaders/fs/srt.cjs +2 -0
- package/dist/document_loaders/fs/srt.d.ts +2 -0
- package/dist/document_loaders/fs/srt.js +2 -0
- package/dist/document_loaders/fs/unstructured.cjs +3 -1
- package/dist/document_loaders/fs/unstructured.d.ts +2 -0
- package/dist/document_loaders/fs/unstructured.js +3 -1
- package/dist/document_loaders/web/apify_dataset.cjs +1 -0
- package/dist/document_loaders/web/apify_dataset.d.ts +2 -0
- package/dist/document_loaders/web/apify_dataset.js +1 -0
- package/dist/document_loaders/web/assemblyai.cjs +8 -0
- package/dist/document_loaders/web/assemblyai.d.ts +8 -0
- package/dist/document_loaders/web/assemblyai.js +8 -0
- package/dist/document_loaders/web/azure_blob_storage_container.cjs +1 -0
- package/dist/document_loaders/web/azure_blob_storage_container.d.ts +1 -0
- package/dist/document_loaders/web/azure_blob_storage_container.js +1 -0
- package/dist/document_loaders/web/azure_blob_storage_file.cjs +1 -0
- package/dist/document_loaders/web/azure_blob_storage_file.d.ts +1 -0
- package/dist/document_loaders/web/azure_blob_storage_file.js +1 -0
- package/dist/document_loaders/web/browserbase.cjs +7 -1
- package/dist/document_loaders/web/browserbase.d.ts +3 -4
- package/dist/document_loaders/web/browserbase.js +7 -1
- package/dist/document_loaders/web/cheerio.cjs +2 -0
- package/dist/document_loaders/web/cheerio.d.ts +4 -0
- package/dist/document_loaders/web/cheerio.js +2 -0
- package/dist/document_loaders/web/college_confidential.cjs +2 -0
- package/dist/document_loaders/web/college_confidential.d.ts +2 -0
- package/dist/document_loaders/web/college_confidential.js +2 -0
- package/dist/document_loaders/web/confluence.cjs +2 -0
- package/dist/document_loaders/web/confluence.d.ts +8 -0
- package/dist/document_loaders/web/confluence.js +2 -0
- package/dist/document_loaders/web/couchbase.cjs +2 -0
- package/dist/document_loaders/web/couchbase.d.ts +2 -0
- package/dist/document_loaders/web/couchbase.js +2 -0
- package/dist/document_loaders/web/figma.cjs +2 -0
- package/dist/document_loaders/web/figma.d.ts +6 -0
- package/dist/document_loaders/web/figma.js +2 -0
- package/dist/document_loaders/web/firecrawl.cjs +2 -0
- package/dist/document_loaders/web/firecrawl.d.ts +2 -0
- package/dist/document_loaders/web/firecrawl.js +2 -0
- package/dist/document_loaders/web/gitbook.cjs +2 -0
- package/dist/document_loaders/web/gitbook.d.ts +2 -0
- package/dist/document_loaders/web/gitbook.js +2 -0
- package/dist/document_loaders/web/github.cjs +2 -0
- package/dist/document_loaders/web/github.d.ts +6 -0
- package/dist/document_loaders/web/github.js +2 -0
- package/dist/document_loaders/web/hn.cjs +2 -0
- package/dist/document_loaders/web/hn.d.ts +2 -0
- package/dist/document_loaders/web/hn.js +2 -0
- package/dist/document_loaders/web/imsdb.cjs +2 -0
- package/dist/document_loaders/web/imsdb.d.ts +2 -0
- package/dist/document_loaders/web/imsdb.js +2 -0
- package/dist/document_loaders/web/notionapi.cjs +2 -0
- package/dist/document_loaders/web/notionapi.d.ts +5 -0
- package/dist/document_loaders/web/notionapi.js +2 -0
- package/dist/document_loaders/web/pdf.cjs +2 -0
- package/dist/document_loaders/web/pdf.d.ts +2 -0
- package/dist/document_loaders/web/pdf.js +2 -0
- package/dist/document_loaders/web/playwright.cjs +2 -0
- package/dist/document_loaders/web/playwright.d.ts +4 -0
- package/dist/document_loaders/web/playwright.js +2 -0
- package/dist/document_loaders/web/puppeteer.cjs +2 -0
- package/dist/document_loaders/web/puppeteer.d.ts +2 -0
- package/dist/document_loaders/web/puppeteer.js +2 -0
- package/dist/document_loaders/web/recursive_url.cjs +3 -0
- package/dist/document_loaders/web/recursive_url.d.ts +6 -0
- package/dist/document_loaders/web/recursive_url.js +3 -0
- package/dist/document_loaders/web/s3.cjs +2 -0
- package/dist/document_loaders/web/s3.d.ts +4 -0
- package/dist/document_loaders/web/s3.js +2 -0
- package/dist/document_loaders/web/searchapi.cjs +2 -0
- package/dist/document_loaders/web/searchapi.d.ts +2 -0
- package/dist/document_loaders/web/searchapi.js +2 -0
- package/dist/document_loaders/web/serpapi.cjs +2 -0
- package/dist/document_loaders/web/serpapi.d.ts +2 -0
- package/dist/document_loaders/web/serpapi.js +2 -0
- package/dist/document_loaders/web/sitemap.cjs +3 -0
- package/dist/document_loaders/web/sitemap.d.ts +5 -0
- package/dist/document_loaders/web/sitemap.js +3 -0
- package/dist/document_loaders/web/sonix_audio.cjs +2 -0
- package/dist/document_loaders/web/sonix_audio.d.ts +2 -0
- package/dist/document_loaders/web/sonix_audio.js +2 -0
- package/dist/document_loaders/web/sort_xyz_blockchain.cjs +2 -0
- package/dist/document_loaders/web/sort_xyz_blockchain.d.ts +2 -0
- package/dist/document_loaders/web/sort_xyz_blockchain.js +2 -0
- package/dist/document_loaders/web/youtube.cjs +2 -0
- package/dist/document_loaders/web/youtube.d.ts +2 -0
- package/dist/document_loaders/web/youtube.js +2 -0
- package/dist/experimental/openai_assistant/index.cjs +3 -0
- package/dist/experimental/openai_assistant/index.js +3 -0
- package/dist/load/import_map.cjs +5 -11
- package/dist/load/import_map.d.ts +3 -9
- package/dist/load/import_map.js +3 -9
- package/dist/load/index.cjs +1 -1
- package/dist/load/index.js +1 -1
- package/dist/schema/prompt_template.cjs +34 -0
- package/dist/schema/prompt_template.d.ts +13 -0
- package/dist/schema/prompt_template.js +30 -0
- package/dist/schema/query_constructor.cjs +32 -0
- package/dist/schema/query_constructor.d.ts +12 -0
- package/dist/schema/query_constructor.js +28 -0
- package/dist/smith/config.cjs +10 -2
- package/dist/smith/config.d.ts +37 -5
- package/dist/smith/config.js +10 -2
- package/dist/tools/index.cjs +26 -0
- package/dist/tools/index.d.ts +8 -0
- package/dist/tools/index.js +8 -0
- package/package.json +48 -22
- package/schema/document.cjs +1 -0
- package/schema/document.d.cts +1 -0
- package/schema/document.d.ts +1 -0
- package/schema/document.js +1 -0
- package/schema/prompt_template.cjs +1 -0
- package/schema/prompt_template.d.cts +1 -0
- package/schema/prompt_template.d.ts +1 -0
- package/schema/prompt_template.js +1 -0
- package/schema/query_constructor.cjs +1 -0
- package/schema/query_constructor.d.cts +1 -0
- package/schema/query_constructor.d.ts +1 -0
- package/schema/query_constructor.js +1 -0
- package/tools.cjs +1 -0
- package/tools.d.cts +1 -0
- package/tools.d.ts +1 -0
- package/tools.js +1 -0
- package/dist/load/dynamic_import_map.cjs +0 -8
- package/dist/load/dynamic_import_map.d.ts +0 -1
- package/dist/load/dynamic_import_map.js +0 -4
- package/prompts/index.cjs +0 -1
- package/prompts/index.d.cts +0 -1
- package/prompts/index.d.ts +0 -1
- package/prompts/index.js +0 -1
package/README.md
CHANGED
|
@@ -63,8 +63,8 @@ This library aims to assist in the development of those types of applications. C
|
|
|
63
63
|
|
|
64
64
|
**💬 Chatbots**
|
|
65
65
|
|
|
66
|
-
- [Documentation](https://js.langchain.com/docs/
|
|
67
|
-
- End-to-end Example: [Chat-LangChain](https://github.com/langchain-ai/chat-
|
|
66
|
+
- [Documentation](https://js.langchain.com/v0.2/docs/how_to/#chatbots)
|
|
67
|
+
- End-to-end Example: [Chat-LangChain](https://github.com/langchain-ai/chat-langchainjs)
|
|
68
68
|
|
|
69
69
|
## 🚀 How does LangChain help?
|
|
70
70
|
|
|
@@ -90,12 +90,12 @@ Agents involve an LLM making decisions about which Actions to take, taking that
|
|
|
90
90
|
|
|
91
91
|
## 📖 Documentation
|
|
92
92
|
|
|
93
|
-
Please see [here](https://js.langchain.com) for full documentation, which includes:
|
|
93
|
+
Please see [here](https://js.langchain.com/v0.2/) for full documentation, which includes:
|
|
94
94
|
|
|
95
|
-
- [Getting started](https://js.langchain.com/docs/
|
|
96
|
-
-
|
|
97
|
-
- [Use case](https://js.langchain.com/docs/
|
|
98
|
-
- [Reference](https://api.js.langchain.com): full API docs
|
|
95
|
+
- [Getting started](https://js.langchain.com/v0.2/docs/introduction): installation, setting up the environment, simple examples
|
|
96
|
+
- [Tutorials](https://js.langchain.com/v0.2/docs/tutorials/): interactive guides and walkthroughs of common use cases/tasks.
|
|
97
|
+
- [Use case](https://js.langchain.com/v0.2/docs/how_to/) walkthroughs and best practices for every component of the LangChain library.
|
|
98
|
+
- [Reference](https://v02.api.js.langchain.com): full API docs
|
|
99
99
|
|
|
100
100
|
## 💁 Contributing
|
|
101
101
|
|
|
@@ -11,7 +11,7 @@ const DEFAULT_HUMAN_MESSAGE_TEMPLATE = "{input}\n\n{agent_scratchpad}";
|
|
|
11
11
|
* Agent for the MRKL chain.
|
|
12
12
|
* @augments Agent
|
|
13
13
|
*
|
|
14
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
14
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
15
15
|
*/
|
|
16
16
|
class ChatAgent extends agent_js_1.Agent {
|
|
17
17
|
static lc_name() {
|
|
@@ -33,7 +33,7 @@ export type ChatAgentInput = Optional<AgentInput, "outputParser">;
|
|
|
33
33
|
* Agent for the MRKL chain.
|
|
34
34
|
* @augments Agent
|
|
35
35
|
*
|
|
36
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
36
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
37
37
|
*/
|
|
38
38
|
export declare class ChatAgent extends Agent {
|
|
39
39
|
static lc_name(): string;
|
|
@@ -8,7 +8,7 @@ const DEFAULT_HUMAN_MESSAGE_TEMPLATE = "{input}\n\n{agent_scratchpad}";
|
|
|
8
8
|
* Agent for the MRKL chain.
|
|
9
9
|
* @augments Agent
|
|
10
10
|
*
|
|
11
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
11
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
12
12
|
*/
|
|
13
13
|
export class ChatAgent extends Agent {
|
|
14
14
|
static lc_name() {
|
|
@@ -11,7 +11,7 @@ const prompt_js_1 = require("./prompt.cjs");
|
|
|
11
11
|
* Agent for the MRKL chain.
|
|
12
12
|
* @augments Agent
|
|
13
13
|
*
|
|
14
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
14
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
15
15
|
*/
|
|
16
16
|
class ChatConversationalAgent extends agent_js_1.Agent {
|
|
17
17
|
static lc_name() {
|
|
@@ -30,7 +30,7 @@ export type ChatConversationalAgentInput = Optional<AgentInput, "outputParser">;
|
|
|
30
30
|
* Agent for the MRKL chain.
|
|
31
31
|
* @augments Agent
|
|
32
32
|
*
|
|
33
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
33
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
34
34
|
*/
|
|
35
35
|
export declare class ChatConversationalAgent extends Agent {
|
|
36
36
|
static lc_name(): string;
|
|
@@ -8,7 +8,7 @@ import { PREFIX_END, DEFAULT_PREFIX, DEFAULT_SUFFIX, TEMPLATE_TOOL_RESPONSE, } f
|
|
|
8
8
|
* Agent for the MRKL chain.
|
|
9
9
|
* @augments Agent
|
|
10
10
|
*
|
|
11
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
11
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
12
12
|
*/
|
|
13
13
|
export class ChatConversationalAgent extends Agent {
|
|
14
14
|
static lc_name() {
|
package/dist/agents/executor.cjs
CHANGED
|
@@ -158,10 +158,10 @@ class AgentExecutorIterator extends serializable_1.Serializable {
|
|
|
158
158
|
*/
|
|
159
159
|
async onFirstStep() {
|
|
160
160
|
if (this.iterations === 0) {
|
|
161
|
-
const callbackManager = await manager_1.CallbackManager.configure(this.callbacks, this.agentExecutor.callbacks, this.tags, this.agentExecutor.tags, this.metadata, this.agentExecutor.metadata, {
|
|
161
|
+
const callbackManager = await manager_1.CallbackManager.configure(this.callbacks ?? this.config?.callbacks, this.agentExecutor.callbacks, this.tags ?? this.config?.tags, this.agentExecutor.tags, this.metadata ?? this.config?.metadata, this.agentExecutor.metadata, {
|
|
162
162
|
verbose: this.agentExecutor.verbose,
|
|
163
163
|
});
|
|
164
|
-
this.runManager = await callbackManager?.handleChainStart(this.agentExecutor.toJSON(), this.inputs, undefined, undefined, this.tags, this.metadata, this.runName);
|
|
164
|
+
this.runManager = await callbackManager?.handleChainStart(this.agentExecutor.toJSON(), this.inputs, undefined, undefined, this.tags ?? this.config?.tags, this.metadata ?? this.config?.metadata, this.runName ?? this.config?.runName);
|
|
165
165
|
}
|
|
166
166
|
}
|
|
167
167
|
/**
|
package/dist/agents/executor.js
CHANGED
|
@@ -155,10 +155,10 @@ export class AgentExecutorIterator extends Serializable {
|
|
|
155
155
|
*/
|
|
156
156
|
async onFirstStep() {
|
|
157
157
|
if (this.iterations === 0) {
|
|
158
|
-
const callbackManager = await CallbackManager.configure(this.callbacks, this.agentExecutor.callbacks, this.tags, this.agentExecutor.tags, this.metadata, this.agentExecutor.metadata, {
|
|
158
|
+
const callbackManager = await CallbackManager.configure(this.callbacks ?? this.config?.callbacks, this.agentExecutor.callbacks, this.tags ?? this.config?.tags, this.agentExecutor.tags, this.metadata ?? this.config?.metadata, this.agentExecutor.metadata, {
|
|
159
159
|
verbose: this.agentExecutor.verbose,
|
|
160
160
|
});
|
|
161
|
-
this.runManager = await callbackManager?.handleChainStart(this.agentExecutor.toJSON(), this.inputs, undefined, undefined, this.tags, this.metadata, this.runName);
|
|
161
|
+
this.runManager = await callbackManager?.handleChainStart(this.agentExecutor.toJSON(), this.inputs, undefined, undefined, this.tags ?? this.config?.tags, this.metadata ?? this.config?.metadata, this.runName ?? this.config?.runName);
|
|
162
162
|
}
|
|
163
163
|
}
|
|
164
164
|
/**
|
|
@@ -32,7 +32,7 @@ const prompt_js_1 = require("./prompt.cjs");
|
|
|
32
32
|
* });
|
|
33
33
|
* ```
|
|
34
34
|
*
|
|
35
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createReactAgent.html | createReactAgent method instead}.
|
|
35
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createReactAgent.html | createReactAgent method instead}.
|
|
36
36
|
*/
|
|
37
37
|
class ZeroShotAgent extends agent_js_1.Agent {
|
|
38
38
|
static lc_name() {
|
|
@@ -46,7 +46,7 @@ export type ZeroShotAgentInput = Optional<AgentInput, "outputParser">;
|
|
|
46
46
|
* });
|
|
47
47
|
* ```
|
|
48
48
|
*
|
|
49
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createReactAgent.html | createReactAgent method instead}.
|
|
49
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createReactAgent.html | createReactAgent method instead}.
|
|
50
50
|
*/
|
|
51
51
|
export declare class ZeroShotAgent extends Agent {
|
|
52
52
|
static lc_name(): string;
|
|
@@ -29,7 +29,7 @@ import { FORMAT_INSTRUCTIONS, PREFIX, SUFFIX } from "./prompt.js";
|
|
|
29
29
|
* });
|
|
30
30
|
* ```
|
|
31
31
|
*
|
|
32
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createReactAgent.html | createReactAgent method instead}.
|
|
32
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createReactAgent.html | createReactAgent method instead}.
|
|
33
33
|
*/
|
|
34
34
|
export class ZeroShotAgent extends Agent {
|
|
35
35
|
static lc_name() {
|
|
@@ -35,7 +35,7 @@ exports._formatIntermediateSteps = _formatIntermediateSteps;
|
|
|
35
35
|
* extends the Agent class and provides additional functionality specific
|
|
36
36
|
* to the OpenAIAgent type.
|
|
37
37
|
*
|
|
38
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createOpenAIFunctionsAgent.html | createOpenAIFunctionsAgent method instead}.
|
|
38
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createOpenAIFunctionsAgent.html | createOpenAIFunctionsAgent method instead}.
|
|
39
39
|
*/
|
|
40
40
|
class OpenAIAgent extends agent_js_1.Agent {
|
|
41
41
|
static lc_name() {
|
|
@@ -29,7 +29,7 @@ export interface OpenAIAgentCreatePromptArgs {
|
|
|
29
29
|
* extends the Agent class and provides additional functionality specific
|
|
30
30
|
* to the OpenAIAgent type.
|
|
31
31
|
*
|
|
32
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createOpenAIFunctionsAgent.html | createOpenAIFunctionsAgent method instead}.
|
|
32
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createOpenAIFunctionsAgent.html | createOpenAIFunctionsAgent method instead}.
|
|
33
33
|
*/
|
|
34
34
|
export declare class OpenAIAgent extends Agent {
|
|
35
35
|
static lc_name(): string;
|
|
@@ -31,7 +31,7 @@ export function _formatIntermediateSteps(intermediateSteps) {
|
|
|
31
31
|
* extends the Agent class and provides additional functionality specific
|
|
32
32
|
* to the OpenAIAgent type.
|
|
33
33
|
*
|
|
34
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createOpenAIFunctionsAgent.html | createOpenAIFunctionsAgent method instead}.
|
|
34
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createOpenAIFunctionsAgent.html | createOpenAIFunctionsAgent method instead}.
|
|
35
35
|
*/
|
|
36
36
|
export class OpenAIAgent extends Agent {
|
|
37
37
|
static lc_name() {
|
|
@@ -13,7 +13,7 @@ const log_js_1 = require("../format_scratchpad/log.cjs");
|
|
|
13
13
|
/**
|
|
14
14
|
* Agent that interoperates with Structured Tools using React logic.
|
|
15
15
|
* @augments Agent
|
|
16
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
16
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
17
17
|
*/
|
|
18
18
|
class StructuredChatAgent extends agent_js_1.Agent {
|
|
19
19
|
static lc_name() {
|
|
@@ -31,7 +31,7 @@ export type StructuredChatAgentInput = Optional<AgentInput, "outputParser">;
|
|
|
31
31
|
/**
|
|
32
32
|
* Agent that interoperates with Structured Tools using React logic.
|
|
33
33
|
* @augments Agent
|
|
34
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
34
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
35
35
|
*/
|
|
36
36
|
export declare class StructuredChatAgent extends Agent {
|
|
37
37
|
static lc_name(): string;
|
|
@@ -10,7 +10,7 @@ import { formatLogToString } from "../format_scratchpad/log.js";
|
|
|
10
10
|
/**
|
|
11
11
|
* Agent that interoperates with Structured Tools using React logic.
|
|
12
12
|
* @augments Agent
|
|
13
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
13
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createStructuredChatAgent.html | createStructuredChatAgent method instead}.
|
|
14
14
|
*/
|
|
15
15
|
export class StructuredChatAgent extends Agent {
|
|
16
16
|
static lc_name() {
|
|
@@ -12,7 +12,7 @@ const xml_js_1 = require("../format_scratchpad/xml.cjs");
|
|
|
12
12
|
/**
|
|
13
13
|
* Class that represents an agent that uses XML tags.
|
|
14
14
|
*
|
|
15
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createXmlAgent.html | createXmlAgent method instead}.
|
|
15
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createXmlAgent.html | createXmlAgent method instead}.
|
|
16
16
|
*/
|
|
17
17
|
class XMLAgent extends agent_js_1.BaseSingleActionAgent {
|
|
18
18
|
static lc_name() {
|
|
@@ -18,7 +18,7 @@ export interface XMLAgentInput {
|
|
|
18
18
|
/**
|
|
19
19
|
* Class that represents an agent that uses XML tags.
|
|
20
20
|
*
|
|
21
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createXmlAgent.html | createXmlAgent method instead}.
|
|
21
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createXmlAgent.html | createXmlAgent method instead}.
|
|
22
22
|
*/
|
|
23
23
|
export declare class XMLAgent extends BaseSingleActionAgent implements XMLAgentInput {
|
|
24
24
|
static lc_name(): string;
|
package/dist/agents/xml/index.js
CHANGED
|
@@ -9,7 +9,7 @@ import { formatXml } from "../format_scratchpad/xml.js";
|
|
|
9
9
|
/**
|
|
10
10
|
* Class that represents an agent that uses XML tags.
|
|
11
11
|
*
|
|
12
|
-
* @deprecated Use the {@link https://api.js.langchain.com/functions/langchain_agents.createXmlAgent.html | createXmlAgent method instead}.
|
|
12
|
+
* @deprecated Use the {@link https://v02.api.js.langchain.com/functions/langchain_agents.createXmlAgent.html | createXmlAgent method instead}.
|
|
13
13
|
*/
|
|
14
14
|
export class XMLAgent extends BaseSingleActionAgent {
|
|
15
15
|
static lc_name() {
|
package/dist/chains/load.cjs
CHANGED
|
@@ -27,7 +27,7 @@ const loadChainFromFile = async (file, path, values = {}) => {
|
|
|
27
27
|
* const chain = await loadChain("/path/to/chain.json");
|
|
28
28
|
* ```
|
|
29
29
|
*
|
|
30
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | load method}.
|
|
30
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | load method}.
|
|
31
31
|
*/
|
|
32
32
|
const loadChain = async (uri, values = {}) => {
|
|
33
33
|
const hubResult = await (0, hub_js_1.loadFromHub)(uri, loadChainFromFile, "chains", new Set(["json", "yaml"]), values);
|
package/dist/chains/load.d.ts
CHANGED
|
@@ -18,6 +18,6 @@ import { LoadValues } from "../util/load.js";
|
|
|
18
18
|
* const chain = await loadChain("/path/to/chain.json");
|
|
19
19
|
* ```
|
|
20
20
|
*
|
|
21
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | load method}.
|
|
21
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | load method}.
|
|
22
22
|
*/
|
|
23
23
|
export declare const loadChain: (uri: string, values?: LoadValues) => Promise<BaseChain>;
|
package/dist/chains/load.js
CHANGED
|
@@ -24,7 +24,7 @@ const loadChainFromFile = async (file, path, values = {}) => {
|
|
|
24
24
|
* const chain = await loadChain("/path/to/chain.json");
|
|
25
25
|
* ```
|
|
26
26
|
*
|
|
27
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | load method}.
|
|
27
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | load method}.
|
|
28
28
|
*/
|
|
29
29
|
export const loadChain = async (uri, values = {}) => {
|
|
30
30
|
const hubResult = await loadFromHub(uri, loadChainFromFile, "chains", new Set(["json", "yaml"]), values);
|
|
@@ -102,7 +102,7 @@ class FunctionCallStructuredOutputParser extends output_parsers_1.BaseLLMOutputP
|
|
|
102
102
|
}
|
|
103
103
|
exports.FunctionCallStructuredOutputParser = FunctionCallStructuredOutputParser;
|
|
104
104
|
/**
|
|
105
|
-
* @deprecated Use {@link https://api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead
|
|
105
|
+
* @deprecated Use {@link https://v02.api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead
|
|
106
106
|
* Create a chain that returns output matching a JSON Schema.
|
|
107
107
|
* @param input Object that includes all LLMChainInput fields except "outputParser"
|
|
108
108
|
* as well as an additional required "outputSchema" JSON Schema object.
|
|
@@ -138,7 +138,7 @@ function createStructuredOutputChain(input) {
|
|
|
138
138
|
});
|
|
139
139
|
}
|
|
140
140
|
exports.createStructuredOutputChain = createStructuredOutputChain;
|
|
141
|
-
/** @deprecated Use {@link https://api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead */
|
|
141
|
+
/** @deprecated Use {@link https://v02.api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead */
|
|
142
142
|
function createStructuredOutputChainFromZod(zodSchema, input) {
|
|
143
143
|
return createStructuredOutputChain({
|
|
144
144
|
...input,
|
|
@@ -49,12 +49,12 @@ export declare class FunctionCallStructuredOutputParser<T extends z.AnyZodObject
|
|
|
49
49
|
parseResult(generations: ChatGeneration[]): Promise<any>;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
|
-
* @deprecated Use {@link https://api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead
|
|
52
|
+
* @deprecated Use {@link https://v02.api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead
|
|
53
53
|
* Create a chain that returns output matching a JSON Schema.
|
|
54
54
|
* @param input Object that includes all LLMChainInput fields except "outputParser"
|
|
55
55
|
* as well as an additional required "outputSchema" JSON Schema object.
|
|
56
56
|
* @returns OpenAPIChain
|
|
57
57
|
*/
|
|
58
58
|
export declare function createStructuredOutputChain<T extends z.AnyZodObject = z.AnyZodObject>(input: StructuredOutputChainInput<T>): LLMChain<any, BaseChatModel<BaseFunctionCallOptions, import("@langchain/core/messages").BaseMessageChunk> | ChatOpenAI<BaseFunctionCallOptions>>;
|
|
59
|
-
/** @deprecated Use {@link https://api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead */
|
|
59
|
+
/** @deprecated Use {@link https://v02.api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead */
|
|
60
60
|
export declare function createStructuredOutputChainFromZod<T extends z.AnyZodObject>(zodSchema: T, input: Omit<StructuredOutputChainInput<T>, "outputSchema">): LLMChain<any, BaseChatModel<BaseFunctionCallOptions, import("@langchain/core/messages").BaseMessageChunk> | ChatOpenAI<BaseFunctionCallOptions>>;
|
|
@@ -98,7 +98,7 @@ export class FunctionCallStructuredOutputParser extends BaseLLMOutputParser {
|
|
|
98
98
|
}
|
|
99
99
|
}
|
|
100
100
|
/**
|
|
101
|
-
* @deprecated Use {@link https://api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead
|
|
101
|
+
* @deprecated Use {@link https://v02.api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead
|
|
102
102
|
* Create a chain that returns output matching a JSON Schema.
|
|
103
103
|
* @param input Object that includes all LLMChainInput fields except "outputParser"
|
|
104
104
|
* as well as an additional required "outputSchema" JSON Schema object.
|
|
@@ -133,7 +133,7 @@ export function createStructuredOutputChain(input) {
|
|
|
133
133
|
...rest,
|
|
134
134
|
});
|
|
135
135
|
}
|
|
136
|
-
/** @deprecated Use {@link https://api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead */
|
|
136
|
+
/** @deprecated Use {@link https://v02.api.js.langchain.com/functions/langchain_chains_openai_functions.createStructuredOutputRunnable.html | createStructuredOutputRunnable} instead */
|
|
137
137
|
export function createStructuredOutputChainFromZod(zodSchema, input) {
|
|
138
138
|
return createStructuredOutputChain({
|
|
139
139
|
...input,
|
package/dist/chains/serde.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { SerializedBasePromptTemplate } from "@langchain/core/prompts";
|
|
|
4
4
|
* Represents the serialized form of an LLMChain. It includes properties
|
|
5
5
|
* such as `_type`, `llm`, and `prompt`.
|
|
6
6
|
*
|
|
7
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
7
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
8
8
|
*/
|
|
9
9
|
export type SerializedLLMChain = {
|
|
10
10
|
_type: "llm_chain";
|
|
@@ -16,7 +16,7 @@ export type SerializedLLMChain = {
|
|
|
16
16
|
* properties such as `_type`, `input_variables`, `output_variables`, and
|
|
17
17
|
* `chains`.
|
|
18
18
|
*
|
|
19
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
19
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
20
20
|
*/
|
|
21
21
|
export type SerializedSequentialChain = {
|
|
22
22
|
_type: "sequential_chain";
|
|
@@ -28,7 +28,7 @@ export type SerializedSequentialChain = {
|
|
|
28
28
|
* Represents the serialized form of a SimpleSequentialChain. It includes
|
|
29
29
|
* properties such as `_type` and `chains`.
|
|
30
30
|
*
|
|
31
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
31
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
32
32
|
*/
|
|
33
33
|
export type SerializedSimpleSequentialChain = {
|
|
34
34
|
_type: "simple_sequential_chain";
|
|
@@ -38,7 +38,7 @@ export type SerializedSimpleSequentialChain = {
|
|
|
38
38
|
* Represents the serialized form of a VectorDBQAChain. It includes
|
|
39
39
|
* properties such as `_type`, `k`, and `combine_documents_chain`.
|
|
40
40
|
*
|
|
41
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
41
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
42
42
|
*/
|
|
43
43
|
export type SerializedVectorDBQAChain = {
|
|
44
44
|
_type: "vector_db_qa";
|
|
@@ -50,7 +50,7 @@ export type SerializedVectorDBQAChain = {
|
|
|
50
50
|
* such as `_type`, `api_request_chain`, `api_answer_chain`, and
|
|
51
51
|
* `api_docs`.
|
|
52
52
|
*
|
|
53
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
53
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
54
54
|
*/
|
|
55
55
|
export type SerializedAPIChain = {
|
|
56
56
|
_type: "api_chain";
|
|
@@ -62,7 +62,7 @@ export type SerializedAPIChain = {
|
|
|
62
62
|
* Represents the serialized form of a StuffDocumentsChain. It includes
|
|
63
63
|
* properties such as `_type` and `llm_chain`.
|
|
64
64
|
*
|
|
65
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
65
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
66
66
|
*/
|
|
67
67
|
export type SerializedStuffDocumentsChain = {
|
|
68
68
|
_type: "stuff_documents_chain";
|
|
@@ -73,7 +73,7 @@ export type SerializedStuffDocumentsChain = {
|
|
|
73
73
|
* properties such as `_type`, `k`, `combine_documents_chain`, and
|
|
74
74
|
* `question_generator`.
|
|
75
75
|
*
|
|
76
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
76
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
77
77
|
*/
|
|
78
78
|
export type SerializedChatVectorDBQAChain = {
|
|
79
79
|
_type: "chat-vector-db";
|
|
@@ -86,7 +86,7 @@ export type SerializedChatVectorDBQAChain = {
|
|
|
86
86
|
* includes properties such as `_type`, `llm_chain`, and
|
|
87
87
|
* `combine_document_chain`.
|
|
88
88
|
*
|
|
89
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
89
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
90
90
|
*/
|
|
91
91
|
export type SerializedMapReduceDocumentsChain = {
|
|
92
92
|
_type: "map_reduce_documents_chain";
|
|
@@ -97,7 +97,7 @@ export type SerializedMapReduceDocumentsChain = {
|
|
|
97
97
|
* Represents the serialized form of a RefineDocumentsChain. It includes
|
|
98
98
|
* properties such as `_type`, `llm_chain`, and `refine_llm_chain`.
|
|
99
99
|
*
|
|
100
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
100
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
101
101
|
*/
|
|
102
102
|
export type SerializedRefineDocumentsChain = {
|
|
103
103
|
_type: "refine_documents_chain";
|
|
@@ -108,7 +108,7 @@ export type SerializedRefineDocumentsChain = {
|
|
|
108
108
|
* Represents the serialized form of an AnalyzeDocumentChain. It includes
|
|
109
109
|
* properties such as `_type` and `combine_document_chain`.
|
|
110
110
|
*
|
|
111
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
111
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
112
112
|
*/
|
|
113
113
|
export type SerializedAnalyzeDocumentChain = {
|
|
114
114
|
_type: "analyze_document_chain";
|
|
@@ -119,7 +119,7 @@ export type SerializedAnalyzeDocumentChain = {
|
|
|
119
119
|
* includes properties such as `_type`, `critiqueRequest`,
|
|
120
120
|
* `revisionRequest`, and `name`.
|
|
121
121
|
*
|
|
122
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
122
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
123
123
|
*/
|
|
124
124
|
export type SerializedConstitutionalPrinciple = {
|
|
125
125
|
_type: "constitutional_principle";
|
|
@@ -145,6 +145,6 @@ export type SerializedConstitutionalChain = {
|
|
|
145
145
|
* Represents the serialized form of a BaseChain. It can be one of the
|
|
146
146
|
* above serialized chain types.
|
|
147
147
|
*
|
|
148
|
-
* @deprecated Use newer {@link https://api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
148
|
+
* @deprecated Use newer {@link https://v02.api.js.langchain.com/functions/langchain_load.load.html | serialization methods}.
|
|
149
149
|
*/
|
|
150
150
|
export type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain | SerializedChatVectorDBQAChain | SerializedMapReduceDocumentsChain | SerializedAnalyzeDocumentChain | SerializedRefineDocumentsChain | SerializedConstitutionalChain;
|
|
@@ -9,6 +9,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
9
9
|
newPackageName: "@langchain/community",
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/docx" instead. This entrypoint will be removed in 0.3.0.
|
|
13
|
+
*
|
|
12
14
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
13
15
|
* loader that loads documents from DOCX files.
|
|
14
16
|
*/
|
|
@@ -2,6 +2,8 @@
|
|
|
2
2
|
import { Document } from "@langchain/core/documents";
|
|
3
3
|
import { BufferLoader } from "./buffer.js";
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/docx" instead. This entrypoint will be removed in 0.3.0.
|
|
6
|
+
*
|
|
5
7
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
6
8
|
* loader that loads documents from DOCX files.
|
|
7
9
|
*/
|
|
@@ -6,6 +6,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
6
6
|
newPackageName: "@langchain/community",
|
|
7
7
|
});
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/docx" instead. This entrypoint will be removed in 0.3.0.
|
|
10
|
+
*
|
|
9
11
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
10
12
|
* loader that loads documents from DOCX files.
|
|
11
13
|
*/
|
|
@@ -9,6 +9,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
9
9
|
newPackageName: "@langchain/community",
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/epub" instead. This entrypoint will be removed in 0.3.0.
|
|
13
|
+
*
|
|
12
14
|
* A class that extends the `BaseDocumentLoader` class. It represents a
|
|
13
15
|
* document loader that loads documents from EPUB files.
|
|
14
16
|
*/
|
|
@@ -2,6 +2,8 @@ import type { EPub } from "epub2";
|
|
|
2
2
|
import { Document } from "@langchain/core/documents";
|
|
3
3
|
import { BaseDocumentLoader } from "../base.js";
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/epub" instead. This entrypoint will be removed in 0.3.0.
|
|
6
|
+
*
|
|
5
7
|
* A class that extends the `BaseDocumentLoader` class. It represents a
|
|
6
8
|
* document loader that loads documents from EPUB files.
|
|
7
9
|
*/
|
|
@@ -6,6 +6,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
6
6
|
newPackageName: "@langchain/community",
|
|
7
7
|
});
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/epub" instead. This entrypoint will be removed in 0.3.0.
|
|
10
|
+
*
|
|
9
11
|
* A class that extends the `BaseDocumentLoader` class. It represents a
|
|
10
12
|
* document loader that loads documents from EPUB files.
|
|
11
13
|
*/
|
|
@@ -9,6 +9,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
9
9
|
newPackageName: "@langchain/community",
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/notion" instead. This entrypoint will be removed in 0.3.0.
|
|
13
|
+
*
|
|
12
14
|
* A class that extends the DirectoryLoader class. It represents a
|
|
13
15
|
* document loader that loads documents from a directory in the Notion
|
|
14
16
|
* format. It uses the TextLoader for loading '.md' files and ignores
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { DirectoryLoader } from "./directory.js";
|
|
2
2
|
/**
|
|
3
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/notion" instead. This entrypoint will be removed in 0.3.0.
|
|
4
|
+
*
|
|
3
5
|
* A class that extends the DirectoryLoader class. It represents a
|
|
4
6
|
* document loader that loads documents from a directory in the Notion
|
|
5
7
|
* format. It uses the TextLoader for loading '.md' files and ignores
|
|
@@ -6,6 +6,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
6
6
|
newPackageName: "@langchain/community",
|
|
7
7
|
});
|
|
8
8
|
/**
|
|
9
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/notion" instead. This entrypoint will be removed in 0.3.0.
|
|
10
|
+
*
|
|
9
11
|
* A class that extends the DirectoryLoader class. It represents a
|
|
10
12
|
* document loader that loads documents from a directory in the Notion
|
|
11
13
|
* format. It uses the TextLoader for loading '.md' files and ignores
|
|
@@ -225,6 +225,8 @@ Object.defineProperty(ObsidianFileLoader, "DATAVIEW_INLINE_PAREN_REGEX", {
|
|
|
225
225
|
value: /\((\w+)::\s*(.*)\)/gm
|
|
226
226
|
});
|
|
227
227
|
/**
|
|
228
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/obsidian" instead. This entrypoint will be removed in 0.3.0.
|
|
229
|
+
*
|
|
228
230
|
* Represents a loader for directories containing Obsidian markdown files. This loader extends
|
|
229
231
|
* the DirectoryLoader and provides functionality to load and parse '.md' files with YAML frontmatter,
|
|
230
232
|
* Obsidian tags, and Dataview fields.
|
|
@@ -11,6 +11,8 @@ export interface ObsidianFileLoaderOptions {
|
|
|
11
11
|
collectMetadata?: boolean;
|
|
12
12
|
}
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/obsidian" instead. This entrypoint will be removed in 0.3.0.
|
|
15
|
+
*
|
|
14
16
|
* Represents a loader for directories containing Obsidian markdown files. This loader extends
|
|
15
17
|
* the DirectoryLoader and provides functionality to load and parse '.md' files with YAML frontmatter,
|
|
16
18
|
* Obsidian tags, and Dataview fields.
|
|
@@ -219,6 +219,8 @@ Object.defineProperty(ObsidianFileLoader, "DATAVIEW_INLINE_PAREN_REGEX", {
|
|
|
219
219
|
value: /\((\w+)::\s*(.*)\)/gm
|
|
220
220
|
});
|
|
221
221
|
/**
|
|
222
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/obsidian" instead. This entrypoint will be removed in 0.3.0.
|
|
223
|
+
*
|
|
222
224
|
* Represents a loader for directories containing Obsidian markdown files. This loader extends
|
|
223
225
|
* the DirectoryLoader and provides functionality to load and parse '.md' files with YAML frontmatter,
|
|
224
226
|
* Obsidian tags, and Dataview fields.
|
|
@@ -11,6 +11,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
11
11
|
});
|
|
12
12
|
const MODEL_NAME = "whisper-1";
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/openai_whisper_audio" instead. This entrypoint will be removed in 0.3.0.
|
|
15
|
+
*
|
|
14
16
|
* @example
|
|
15
17
|
* ```typescript
|
|
16
18
|
* const loader = new OpenAIWhisperAudio(
|
|
@@ -3,6 +3,8 @@ import { type ClientOptions } from "@langchain/openai";
|
|
|
3
3
|
import { Document } from "@langchain/core/documents";
|
|
4
4
|
import { BufferLoader } from "./buffer.js";
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/openai_whisper_audio" instead. This entrypoint will be removed in 0.3.0.
|
|
7
|
+
*
|
|
6
8
|
* @example
|
|
7
9
|
* ```typescript
|
|
8
10
|
* const loader = new OpenAIWhisperAudio(
|
|
@@ -8,6 +8,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
8
8
|
});
|
|
9
9
|
const MODEL_NAME = "whisper-1";
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/openai_whisper_audio" instead. This entrypoint will be removed in 0.3.0.
|
|
12
|
+
*
|
|
11
13
|
* @example
|
|
12
14
|
* ```typescript
|
|
13
15
|
* const loader = new OpenAIWhisperAudio(
|
|
@@ -10,6 +10,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
10
10
|
newPackageName: "@langchain/community",
|
|
11
11
|
});
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/pdf" instead. This entrypoint will be removed in 0.3.0.
|
|
14
|
+
*
|
|
13
15
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
14
16
|
* loader that loads documents from PDF files.
|
|
15
17
|
* @example
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
import { Document } from "@langchain/core/documents";
|
|
4
4
|
import { BufferLoader } from "./buffer.js";
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/pdf" instead. This entrypoint will be removed in 0.3.0.
|
|
7
|
+
*
|
|
6
8
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
7
9
|
* loader that loads documents from PDF files.
|
|
8
10
|
* @example
|