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
|
@@ -7,6 +7,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
7
7
|
newPackageName: "@langchain/community",
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/pdf" instead. This entrypoint will be removed in 0.3.0.
|
|
11
|
+
*
|
|
10
12
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
11
13
|
* loader that loads documents from PDF files.
|
|
12
14
|
* @example
|
|
@@ -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/pptx" 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
|
*/
|
|
@@ -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/pptx" 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 PDF files.
|
|
7
9
|
*/
|
|
@@ -7,6 +7,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
7
7
|
newPackageName: "@langchain/community",
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/pptx" instead. This entrypoint will be removed in 0.3.0.
|
|
11
|
+
*
|
|
10
12
|
* A class that extends the `BufferLoader` class. It represents a document
|
|
11
13
|
* loader that loads documents from PDF files.
|
|
12
14
|
*/
|
|
@@ -12,6 +12,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
12
12
|
newPackageName: "@langchain/community",
|
|
13
13
|
});
|
|
14
14
|
/**
|
|
15
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/srt" instead. This entrypoint will be removed in 0.3.0.
|
|
16
|
+
*
|
|
15
17
|
* A class that extends the `TextLoader` class. It represents a document
|
|
16
18
|
* loader that loads documents from SRT (SubRip) subtitle files. It has a
|
|
17
19
|
* constructor that takes a `filePathOrBlob` parameter representing the
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
import { TextLoader } from "./text.js";
|
|
2
2
|
/**
|
|
3
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/srt" instead. This entrypoint will be removed in 0.3.0.
|
|
4
|
+
*
|
|
3
5
|
* A class that extends the `TextLoader` class. It represents a document
|
|
4
6
|
* loader that loads documents from SRT (SubRip) subtitle files. It has a
|
|
5
7
|
* constructor that takes a `filePathOrBlob` parameter representing the
|
|
@@ -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/srt" instead. This entrypoint will be removed in 0.3.0.
|
|
10
|
+
*
|
|
9
11
|
* A class that extends the `TextLoader` class. It represents a document
|
|
10
12
|
* loader that loads documents from SRT (SubRip) subtitle files. It has a
|
|
11
13
|
* constructor that takes a `filePathOrBlob` parameter representing the
|
|
@@ -33,6 +33,8 @@ const UNSTRUCTURED_API_FILETYPES = [
|
|
|
33
33
|
".epub",
|
|
34
34
|
];
|
|
35
35
|
/**
|
|
36
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/unstructured" instead. This entrypoint will be removed in 0.3.0.
|
|
37
|
+
*
|
|
36
38
|
* A document loader that uses the Unstructured API to load unstructured
|
|
37
39
|
* documents. It supports both the new syntax with options object and the
|
|
38
40
|
* legacy syntax for backward compatibility. The load() method sends a
|
|
@@ -244,7 +246,7 @@ class UnstructuredLoader extends base_js_1.BaseDocumentLoader {
|
|
|
244
246
|
const documents = [];
|
|
245
247
|
for (const element of elements) {
|
|
246
248
|
const { metadata, text } = element;
|
|
247
|
-
if (typeof text === "string") {
|
|
249
|
+
if (typeof text === "string" && text !== "") {
|
|
248
250
|
documents.push(new documents_1.Document({
|
|
249
251
|
pageContent: text,
|
|
250
252
|
metadata: {
|
|
@@ -64,6 +64,8 @@ type UnstructuredDirectoryLoaderOptions = UnstructuredLoaderOptions & {
|
|
|
64
64
|
unknown?: UnknownHandling;
|
|
65
65
|
};
|
|
66
66
|
/**
|
|
67
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/unstructured" instead. This entrypoint will be removed in 0.3.0.
|
|
68
|
+
*
|
|
67
69
|
* A document loader that uses the Unstructured API to load unstructured
|
|
68
70
|
* documents. It supports both the new syntax with options object and the
|
|
69
71
|
* legacy syntax for backward compatibility. The load() method sends a
|
|
@@ -29,6 +29,8 @@ const UNSTRUCTURED_API_FILETYPES = [
|
|
|
29
29
|
".epub",
|
|
30
30
|
];
|
|
31
31
|
/**
|
|
32
|
+
* @deprecated - Import from "@langchain/community/document_loaders/fs/unstructured" instead. This entrypoint will be removed in 0.3.0.
|
|
33
|
+
*
|
|
32
34
|
* A document loader that uses the Unstructured API to load unstructured
|
|
33
35
|
* documents. It supports both the new syntax with options object and the
|
|
34
36
|
* legacy syntax for backward compatibility. The load() method sends a
|
|
@@ -240,7 +242,7 @@ export class UnstructuredLoader extends BaseDocumentLoader {
|
|
|
240
242
|
const documents = [];
|
|
241
243
|
for (const element of elements) {
|
|
242
244
|
const { metadata, text } = element;
|
|
243
|
-
if (typeof text === "string") {
|
|
245
|
+
if (typeof text === "string" && text !== "") {
|
|
244
246
|
documents.push(new Document({
|
|
245
247
|
pageContent: text,
|
|
246
248
|
metadata: {
|
|
@@ -12,6 +12,7 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
12
12
|
newPackageName: "@langchain/community",
|
|
13
13
|
});
|
|
14
14
|
/**
|
|
15
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/apify_dataset" instead. This entrypoint will be removed in 0.3.0.
|
|
15
16
|
* A class that extends the BaseDocumentLoader and implements the
|
|
16
17
|
* DocumentLoader interface. It represents a document loader that loads
|
|
17
18
|
* documents from an Apify dataset.
|
|
@@ -3,6 +3,7 @@ import { Document } from "@langchain/core/documents";
|
|
|
3
3
|
import { AsyncCaller, AsyncCallerParams } from "@langchain/core/utils/async_caller";
|
|
4
4
|
import { BaseDocumentLoader, DocumentLoader } from "../base.js";
|
|
5
5
|
/**
|
|
6
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/apify_dataset" instead. This entrypoint will be removed in 0.3.0.
|
|
6
7
|
* A type that represents a function that takes a single object (an Apify
|
|
7
8
|
* dataset item) and converts it to an instance of the Document class.
|
|
8
9
|
*
|
|
@@ -15,6 +16,7 @@ export interface ApifyDatasetLoaderConfig<Metadata extends Record<string, any>>
|
|
|
15
16
|
clientOptions?: ApifyClientOptions;
|
|
16
17
|
}
|
|
17
18
|
/**
|
|
19
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/apify_dataset" instead. This entrypoint will be removed in 0.3.0.
|
|
18
20
|
* A class that extends the BaseDocumentLoader and implements the
|
|
19
21
|
* DocumentLoader interface. It represents a document loader that loads
|
|
20
22
|
* documents from an Apify dataset.
|
|
@@ -9,6 +9,7 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
9
9
|
newPackageName: "@langchain/community",
|
|
10
10
|
});
|
|
11
11
|
/**
|
|
12
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/apify_dataset" instead. This entrypoint will be removed in 0.3.0.
|
|
12
13
|
* A class that extends the BaseDocumentLoader and implements the
|
|
13
14
|
* DocumentLoader interface. It represents a document loader that loads
|
|
14
15
|
* documents from an Apify dataset.
|
|
@@ -11,6 +11,7 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
11
11
|
newPackageName: "@langchain/community",
|
|
12
12
|
});
|
|
13
13
|
/**
|
|
14
|
+
* @deprecated
|
|
14
15
|
* Base class for AssemblyAI loaders.
|
|
15
16
|
*/
|
|
16
17
|
class AssemblyAILoader extends base_js_1.BaseDocumentLoader {
|
|
@@ -40,6 +41,9 @@ class AssemblyAILoader extends base_js_1.BaseDocumentLoader {
|
|
|
40
41
|
this.client = new assemblyai_1.AssemblyAI(options);
|
|
41
42
|
}
|
|
42
43
|
}
|
|
44
|
+
/**
|
|
45
|
+
* @deprecated
|
|
46
|
+
*/
|
|
43
47
|
class CreateTranscriptLoader extends AssemblyAILoader {
|
|
44
48
|
/**
|
|
45
49
|
* Transcribe audio or retrieve an existing transcript by its ID.
|
|
@@ -91,6 +95,7 @@ class CreateTranscriptLoader extends AssemblyAILoader {
|
|
|
91
95
|
}
|
|
92
96
|
}
|
|
93
97
|
/**
|
|
98
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
94
99
|
* Transcribe audio and load the transcript as a document using AssemblyAI.
|
|
95
100
|
*/
|
|
96
101
|
class AudioTranscriptLoader extends CreateTranscriptLoader {
|
|
@@ -111,6 +116,7 @@ class AudioTranscriptLoader extends CreateTranscriptLoader {
|
|
|
111
116
|
}
|
|
112
117
|
exports.AudioTranscriptLoader = AudioTranscriptLoader;
|
|
113
118
|
/**
|
|
119
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
114
120
|
* Transcribe audio and load the paragraphs of the transcript, creating a document for each paragraph.
|
|
115
121
|
*/
|
|
116
122
|
class AudioTranscriptParagraphsLoader extends CreateTranscriptLoader {
|
|
@@ -129,6 +135,7 @@ class AudioTranscriptParagraphsLoader extends CreateTranscriptLoader {
|
|
|
129
135
|
}
|
|
130
136
|
exports.AudioTranscriptParagraphsLoader = AudioTranscriptParagraphsLoader;
|
|
131
137
|
/**
|
|
138
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
132
139
|
* Transcribe audio and load the sentences of the transcript, creating a document for each sentence.
|
|
133
140
|
*/
|
|
134
141
|
class AudioTranscriptSentencesLoader extends CreateTranscriptLoader {
|
|
@@ -147,6 +154,7 @@ class AudioTranscriptSentencesLoader extends CreateTranscriptLoader {
|
|
|
147
154
|
}
|
|
148
155
|
exports.AudioTranscriptSentencesLoader = AudioTranscriptSentencesLoader;
|
|
149
156
|
/**
|
|
157
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
150
158
|
* Transcribe audio and load subtitles for the transcript as `srt` or `vtt` format.
|
|
151
159
|
*/
|
|
152
160
|
class AudioSubtitleLoader extends CreateTranscriptLoader {
|
|
@@ -4,6 +4,7 @@ import { BaseDocumentLoader } from "../base.js";
|
|
|
4
4
|
import { AssemblyAIOptions } from "../../types/assemblyai-types.js";
|
|
5
5
|
export type * from "../../types/assemblyai-types.js";
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated
|
|
7
8
|
* Base class for AssemblyAI loaders.
|
|
8
9
|
*/
|
|
9
10
|
declare abstract class AssemblyAILoader extends BaseDocumentLoader {
|
|
@@ -15,6 +16,9 @@ declare abstract class AssemblyAILoader extends BaseDocumentLoader {
|
|
|
15
16
|
*/
|
|
16
17
|
constructor(assemblyAIOptions?: AssemblyAIOptions);
|
|
17
18
|
}
|
|
19
|
+
/**
|
|
20
|
+
* @deprecated
|
|
21
|
+
*/
|
|
18
22
|
declare abstract class CreateTranscriptLoader extends AssemblyAILoader {
|
|
19
23
|
protected transcribeParams?: TranscribeParams | CreateTranscriptParameters;
|
|
20
24
|
protected transcriptId?: string;
|
|
@@ -28,6 +32,7 @@ declare abstract class CreateTranscriptLoader extends AssemblyAILoader {
|
|
|
28
32
|
protected transcribeOrGetTranscript(): Promise<Transcript>;
|
|
29
33
|
}
|
|
30
34
|
/**
|
|
35
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
31
36
|
* Transcribe audio and load the transcript as a document using AssemblyAI.
|
|
32
37
|
*/
|
|
33
38
|
export declare class AudioTranscriptLoader extends CreateTranscriptLoader {
|
|
@@ -39,6 +44,7 @@ export declare class AudioTranscriptLoader extends CreateTranscriptLoader {
|
|
|
39
44
|
load(): Promise<Document<Transcript>[]>;
|
|
40
45
|
}
|
|
41
46
|
/**
|
|
47
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
42
48
|
* Transcribe audio and load the paragraphs of the transcript, creating a document for each paragraph.
|
|
43
49
|
*/
|
|
44
50
|
export declare class AudioTranscriptParagraphsLoader extends CreateTranscriptLoader {
|
|
@@ -49,6 +55,7 @@ export declare class AudioTranscriptParagraphsLoader extends CreateTranscriptLoa
|
|
|
49
55
|
load(): Promise<Document<TranscriptParagraph>[]>;
|
|
50
56
|
}
|
|
51
57
|
/**
|
|
58
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
52
59
|
* Transcribe audio and load the sentences of the transcript, creating a document for each sentence.
|
|
53
60
|
*/
|
|
54
61
|
export declare class AudioTranscriptSentencesLoader extends CreateTranscriptLoader {
|
|
@@ -59,6 +66,7 @@ export declare class AudioTranscriptSentencesLoader extends CreateTranscriptLoad
|
|
|
59
66
|
load(): Promise<Document<TranscriptSentence>[]>;
|
|
60
67
|
}
|
|
61
68
|
/**
|
|
69
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
62
70
|
* Transcribe audio and load subtitles for the transcript as `srt` or `vtt` format.
|
|
63
71
|
*/
|
|
64
72
|
export declare class AudioSubtitleLoader extends CreateTranscriptLoader {
|
|
@@ -8,6 +8,7 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
8
8
|
newPackageName: "@langchain/community",
|
|
9
9
|
});
|
|
10
10
|
/**
|
|
11
|
+
* @deprecated
|
|
11
12
|
* Base class for AssemblyAI loaders.
|
|
12
13
|
*/
|
|
13
14
|
class AssemblyAILoader extends BaseDocumentLoader {
|
|
@@ -37,6 +38,9 @@ class AssemblyAILoader extends BaseDocumentLoader {
|
|
|
37
38
|
this.client = new AssemblyAI(options);
|
|
38
39
|
}
|
|
39
40
|
}
|
|
41
|
+
/**
|
|
42
|
+
* @deprecated
|
|
43
|
+
*/
|
|
40
44
|
class CreateTranscriptLoader extends AssemblyAILoader {
|
|
41
45
|
/**
|
|
42
46
|
* Transcribe audio or retrieve an existing transcript by its ID.
|
|
@@ -88,6 +92,7 @@ class CreateTranscriptLoader extends AssemblyAILoader {
|
|
|
88
92
|
}
|
|
89
93
|
}
|
|
90
94
|
/**
|
|
95
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
91
96
|
* Transcribe audio and load the transcript as a document using AssemblyAI.
|
|
92
97
|
*/
|
|
93
98
|
export class AudioTranscriptLoader extends CreateTranscriptLoader {
|
|
@@ -107,6 +112,7 @@ export class AudioTranscriptLoader extends CreateTranscriptLoader {
|
|
|
107
112
|
}
|
|
108
113
|
}
|
|
109
114
|
/**
|
|
115
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
110
116
|
* Transcribe audio and load the paragraphs of the transcript, creating a document for each paragraph.
|
|
111
117
|
*/
|
|
112
118
|
export class AudioTranscriptParagraphsLoader extends CreateTranscriptLoader {
|
|
@@ -124,6 +130,7 @@ export class AudioTranscriptParagraphsLoader extends CreateTranscriptLoader {
|
|
|
124
130
|
}
|
|
125
131
|
}
|
|
126
132
|
/**
|
|
133
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
127
134
|
* Transcribe audio and load the sentences of the transcript, creating a document for each sentence.
|
|
128
135
|
*/
|
|
129
136
|
export class AudioTranscriptSentencesLoader extends CreateTranscriptLoader {
|
|
@@ -141,6 +148,7 @@ export class AudioTranscriptSentencesLoader extends CreateTranscriptLoader {
|
|
|
141
148
|
}
|
|
142
149
|
}
|
|
143
150
|
/**
|
|
151
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/assemblyai" instead. This entrypoint will be removed in 0.3.0.
|
|
144
152
|
* Transcribe audio and load subtitles for the transcript as `srt` or `vtt` format.
|
|
145
153
|
*/
|
|
146
154
|
export class AudioSubtitleLoader extends CreateTranscriptLoader {
|
|
@@ -10,6 +10,7 @@ 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/web/azure_blog_storage_container" instead. This entrypoint will be removed in 0.3.0.
|
|
13
14
|
* Class representing a document loader that loads documents from an Azure
|
|
14
15
|
* Blob Storage container. It extends the BaseDocumentLoader class.
|
|
15
16
|
*/
|
|
@@ -23,6 +23,7 @@ interface AzureBlobStorageContainerLoaderConfig {
|
|
|
23
23
|
unstructuredConfig?: UnstructuredLoaderOptions;
|
|
24
24
|
}
|
|
25
25
|
/**
|
|
26
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/azure_blog_storage_container" instead. This entrypoint will be removed in 0.3.0.
|
|
26
27
|
* Class representing a document loader that loads documents from an Azure
|
|
27
28
|
* Blob Storage container. It extends the BaseDocumentLoader class.
|
|
28
29
|
*/
|
|
@@ -7,6 +7,7 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
7
7
|
newPackageName: "@langchain/community",
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/azure_blog_storage_container" instead. This entrypoint will be removed in 0.3.0.
|
|
10
11
|
* Class representing a document loader that loads documents from an Azure
|
|
11
12
|
* Blob Storage container. It extends the BaseDocumentLoader class.
|
|
12
13
|
*/
|
|
@@ -36,6 +36,7 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
36
36
|
newPackageName: "@langchain/community",
|
|
37
37
|
});
|
|
38
38
|
/**
|
|
39
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/azure_blog_storage_file" instead. This entrypoint will be removed in 0.3.0.
|
|
39
40
|
* Class representing a document loader that loads a specific file from
|
|
40
41
|
* Azure Blob Storage. It extends the BaseDocumentLoader class and
|
|
41
42
|
* implements the DocumentLoader interface.
|
|
@@ -19,6 +19,7 @@ interface AzureBlobStorageFileLoaderConfig {
|
|
|
19
19
|
unstructuredConfig?: UnstructuredLoaderOptions;
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/azure_blog_storage_file" instead. This entrypoint will be removed in 0.3.0.
|
|
22
23
|
* Class representing a document loader that loads a specific file from
|
|
23
24
|
* Azure Blob Storage. It extends the BaseDocumentLoader class and
|
|
24
25
|
* implements the DocumentLoader interface.
|
|
@@ -10,6 +10,7 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
10
10
|
newPackageName: "@langchain/community",
|
|
11
11
|
});
|
|
12
12
|
/**
|
|
13
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/azure_blog_storage_file" instead. This entrypoint will be removed in 0.3.0.
|
|
13
14
|
* Class representing a document loader that loads a specific file from
|
|
14
15
|
* Azure Blob Storage. It extends the BaseDocumentLoader class and
|
|
15
16
|
* implements the DocumentLoader interface.
|
|
@@ -7,7 +7,13 @@ exports.BrowserbaseLoader = void 0;
|
|
|
7
7
|
const documents_1 = require("@langchain/core/documents");
|
|
8
8
|
const sdk_1 = __importDefault(require("@browserbasehq/sdk"));
|
|
9
9
|
const base_js_1 = require("../base.cjs");
|
|
10
|
+
const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.cjs");
|
|
11
|
+
/* #__PURE__ */ (0, entrypoint_deprecation_js_1.logVersion020MigrationWarning)({
|
|
12
|
+
oldEntrypointName: "document_loaders/web/browserbase",
|
|
13
|
+
newPackageName: "@langchain/community",
|
|
14
|
+
});
|
|
10
15
|
/**
|
|
16
|
+
* @deprecated Import from "@langchain/community/document_loaders/web/browserbase" instead. This entrypoint will be removed in 0.3.0.
|
|
11
17
|
* Load pre-rendered web pages using a headless browser hosted on Browserbase.
|
|
12
18
|
*
|
|
13
19
|
* Depends on `@browserbasehq/sdk` package.
|
|
@@ -51,7 +57,7 @@ class BrowserbaseLoader extends base_js_1.BaseDocumentLoader {
|
|
|
51
57
|
});
|
|
52
58
|
this.urls = urls;
|
|
53
59
|
this.options = options;
|
|
54
|
-
this.browserbase = new sdk_1.default(options
|
|
60
|
+
this.browserbase = new sdk_1.default(options);
|
|
55
61
|
}
|
|
56
62
|
/**
|
|
57
63
|
* Load pages from URLs.
|
|
@@ -1,11 +1,10 @@
|
|
|
1
1
|
import { Document, type DocumentInterface } from "@langchain/core/documents";
|
|
2
|
-
import Browserbase, {
|
|
2
|
+
import Browserbase, { LoadOptions, ClientOptions } from "@browserbasehq/sdk";
|
|
3
3
|
import { BaseDocumentLoader } from "../base.js";
|
|
4
4
|
import type { DocumentLoader } from "../base.js";
|
|
5
|
-
|
|
6
|
-
apiKey?: string;
|
|
7
|
-
}
|
|
5
|
+
type BrowserbaseLoaderOptions = ClientOptions & LoadOptions;
|
|
8
6
|
/**
|
|
7
|
+
* @deprecated Import from "@langchain/community/document_loaders/web/browserbase" instead. This entrypoint will be removed in 0.3.0.
|
|
9
8
|
* Load pre-rendered web pages using a headless browser hosted on Browserbase.
|
|
10
9
|
*
|
|
11
10
|
* Depends on `@browserbasehq/sdk` package.
|
|
@@ -1,7 +1,13 @@
|
|
|
1
1
|
import { Document } from "@langchain/core/documents";
|
|
2
2
|
import Browserbase from "@browserbasehq/sdk";
|
|
3
3
|
import { BaseDocumentLoader } from "../base.js";
|
|
4
|
+
import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation.js";
|
|
5
|
+
/* #__PURE__ */ logVersion020MigrationWarning({
|
|
6
|
+
oldEntrypointName: "document_loaders/web/browserbase",
|
|
7
|
+
newPackageName: "@langchain/community",
|
|
8
|
+
});
|
|
4
9
|
/**
|
|
10
|
+
* @deprecated Import from "@langchain/community/document_loaders/web/browserbase" instead. This entrypoint will be removed in 0.3.0.
|
|
5
11
|
* Load pre-rendered web pages using a headless browser hosted on Browserbase.
|
|
6
12
|
*
|
|
7
13
|
* Depends on `@browserbasehq/sdk` package.
|
|
@@ -45,7 +51,7 @@ export class BrowserbaseLoader extends BaseDocumentLoader {
|
|
|
45
51
|
});
|
|
46
52
|
this.urls = urls;
|
|
47
53
|
this.options = options;
|
|
48
|
-
this.browserbase = new Browserbase(options
|
|
54
|
+
this.browserbase = new Browserbase(options);
|
|
49
55
|
}
|
|
50
56
|
/**
|
|
51
57
|
* Load pages from URLs.
|
|
@@ -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/web/cheerio" instead. This entrypoint will be removed in 0.3.0.
|
|
14
|
+
*
|
|
13
15
|
* A class that extends the BaseDocumentLoader and implements the
|
|
14
16
|
* DocumentLoader interface. It represents a document loader for loading
|
|
15
17
|
* web-based documents using Cheerio.
|
|
@@ -4,6 +4,8 @@ import { AsyncCaller, AsyncCallerParams } from "@langchain/core/utils/async_call
|
|
|
4
4
|
import { BaseDocumentLoader } from "../base.js";
|
|
5
5
|
import type { DocumentLoader } from "../base.js";
|
|
6
6
|
/**
|
|
7
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/cheerio" instead. This entrypoint will be removed in 0.3.0.
|
|
8
|
+
*
|
|
7
9
|
* Represents the parameters for configuring the CheerioWebBaseLoader. It
|
|
8
10
|
* extends the AsyncCallerParams interface and adds additional parameters
|
|
9
11
|
* specific to web-based loaders.
|
|
@@ -24,6 +26,8 @@ export interface WebBaseLoaderParams extends AsyncCallerParams {
|
|
|
24
26
|
textDecoder?: TextDecoder;
|
|
25
27
|
}
|
|
26
28
|
/**
|
|
29
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/cheerio" instead. This entrypoint will be removed in 0.3.0.
|
|
30
|
+
*
|
|
27
31
|
* A class that extends the BaseDocumentLoader and implements the
|
|
28
32
|
* DocumentLoader interface. It represents a document loader for loading
|
|
29
33
|
* web-based documents using Cheerio.
|
|
@@ -7,6 +7,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
7
7
|
newPackageName: "@langchain/community",
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/cheerio" instead. This entrypoint will be removed in 0.3.0.
|
|
11
|
+
*
|
|
10
12
|
* A class that extends the BaseDocumentLoader and implements the
|
|
11
13
|
* DocumentLoader interface. It represents a document loader for loading
|
|
12
14
|
* web-based documents using Cheerio.
|
|
@@ -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/web/college_confidential" instead. This entrypoint will be removed in 0.3.0.
|
|
13
|
+
*
|
|
12
14
|
* A document loader specifically designed for loading documents from the
|
|
13
15
|
* College Confidential website. It extends the CheerioWebBaseLoader.
|
|
14
16
|
* @example
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Document } from "@langchain/core/documents";
|
|
2
2
|
import { CheerioWebBaseLoader } from "./cheerio.js";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/college_confidential" instead. This entrypoint will be removed in 0.3.0.
|
|
5
|
+
*
|
|
4
6
|
* A document loader specifically designed for loading documents from the
|
|
5
7
|
* College Confidential website. It extends the CheerioWebBaseLoader.
|
|
6
8
|
* @example
|
|
@@ -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/web/college_confidential" instead. This entrypoint will be removed in 0.3.0.
|
|
10
|
+
*
|
|
9
11
|
* A document loader specifically designed for loading documents from the
|
|
10
12
|
* College Confidential website. It extends the CheerioWebBaseLoader.
|
|
11
13
|
* @example
|
|
@@ -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/web/confluence" instead. This entrypoint will be removed in 0.3.0.
|
|
14
|
+
*
|
|
13
15
|
* Class representing a document loader for loading pages from Confluence.
|
|
14
16
|
* @example
|
|
15
17
|
* ```typescript
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Document } from "@langchain/core/documents";
|
|
2
2
|
import { BaseDocumentLoader } from "../base.js";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/confluence" instead. This entrypoint will be removed in 0.3.0.
|
|
5
|
+
*
|
|
4
6
|
* Interface representing the parameters for configuring the
|
|
5
7
|
* ConfluencePagesLoader.
|
|
6
8
|
*/
|
|
@@ -14,6 +16,8 @@ export interface ConfluencePagesLoaderParams {
|
|
|
14
16
|
expand?: string;
|
|
15
17
|
}
|
|
16
18
|
/**
|
|
19
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/confluence" instead. This entrypoint will be removed in 0.3.0.
|
|
20
|
+
*
|
|
17
21
|
* Interface representing a Confluence page.
|
|
18
22
|
*/
|
|
19
23
|
export interface ConfluencePage {
|
|
@@ -35,6 +39,8 @@ export interface ConfluencePage {
|
|
|
35
39
|
};
|
|
36
40
|
}
|
|
37
41
|
/**
|
|
42
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/confluence" instead. This entrypoint will be removed in 0.3.0.
|
|
43
|
+
*
|
|
38
44
|
* Interface representing the response from the Confluence API.
|
|
39
45
|
*/
|
|
40
46
|
export interface ConfluenceAPIResponse {
|
|
@@ -42,6 +48,8 @@ export interface ConfluenceAPIResponse {
|
|
|
42
48
|
results: ConfluencePage[];
|
|
43
49
|
}
|
|
44
50
|
/**
|
|
51
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/confluence" instead. This entrypoint will be removed in 0.3.0.
|
|
52
|
+
*
|
|
45
53
|
* Class representing a document loader for loading pages from Confluence.
|
|
46
54
|
* @example
|
|
47
55
|
* ```typescript
|
|
@@ -7,6 +7,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
7
7
|
newPackageName: "@langchain/community",
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/confluence" instead. This entrypoint will be removed in 0.3.0.
|
|
11
|
+
*
|
|
10
12
|
* Class representing a document loader for loading pages from Confluence.
|
|
11
13
|
* @example
|
|
12
14
|
* ```typescript
|
|
@@ -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/web/couchbase" instead. This entrypoint will be removed in 0.3.0.
|
|
13
|
+
*
|
|
12
14
|
* loader for couchbase document
|
|
13
15
|
*/
|
|
14
16
|
class CouchbaseDocumentLoader extends base_js_1.BaseDocumentLoader {
|
|
@@ -2,6 +2,8 @@ import { Cluster } from "couchbase";
|
|
|
2
2
|
import { Document } from "@langchain/core/documents";
|
|
3
3
|
import { BaseDocumentLoader, DocumentLoader } from "../base.js";
|
|
4
4
|
/**
|
|
5
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/couchbase" instead. This entrypoint will be removed in 0.3.0.
|
|
6
|
+
*
|
|
5
7
|
* loader for couchbase document
|
|
6
8
|
*/
|
|
7
9
|
export declare class CouchbaseDocumentLoader extends BaseDocumentLoader implements DocumentLoader {
|
|
@@ -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/web/couchbase" instead. This entrypoint will be removed in 0.3.0.
|
|
10
|
+
*
|
|
9
11
|
* loader for couchbase document
|
|
10
12
|
*/
|
|
11
13
|
export class CouchbaseDocumentLoader extends BaseDocumentLoader {
|
|
@@ -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/web/figma" instead. This entrypoint will be removed in 0.3.0.
|
|
14
|
+
*
|
|
13
15
|
* Class representing a document loader for loading Figma files. It
|
|
14
16
|
* extends the BaseDocumentLoader and implements the FigmaLoaderParams
|
|
15
17
|
* interface. The constructor takes a config object as a parameter, which
|
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { Document } from "@langchain/core/documents";
|
|
2
2
|
import { BaseDocumentLoader } from "../base.js";
|
|
3
3
|
/**
|
|
4
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/figma" instead. This entrypoint will be removed in 0.3.0.
|
|
5
|
+
*
|
|
4
6
|
* Interface representing a Figma file. It includes properties for the
|
|
5
7
|
* file name, role, last modified date, editor type, thumbnail URL,
|
|
6
8
|
* version, document node, schema version, main file key, and an array of
|
|
@@ -25,6 +27,8 @@ export interface FigmaFile {
|
|
|
25
27
|
}>;
|
|
26
28
|
}
|
|
27
29
|
/**
|
|
30
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/figma" instead. This entrypoint will be removed in 0.3.0.
|
|
31
|
+
*
|
|
28
32
|
* Interface representing the parameters for configuring the FigmaLoader.
|
|
29
33
|
* It includes optional properties for the access token, an array of node
|
|
30
34
|
* IDs, and the file key.
|
|
@@ -35,6 +39,8 @@ export interface FigmaLoaderParams {
|
|
|
35
39
|
fileKey: string;
|
|
36
40
|
}
|
|
37
41
|
/**
|
|
42
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/figma" instead. This entrypoint will be removed in 0.3.0.
|
|
43
|
+
*
|
|
38
44
|
* Class representing a document loader for loading Figma files. It
|
|
39
45
|
* extends the BaseDocumentLoader and implements the FigmaLoaderParams
|
|
40
46
|
* interface. The constructor takes a config object as a parameter, which
|
|
@@ -7,6 +7,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
|
|
|
7
7
|
newPackageName: "@langchain/community",
|
|
8
8
|
});
|
|
9
9
|
/**
|
|
10
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/figma" instead. This entrypoint will be removed in 0.3.0.
|
|
11
|
+
*
|
|
10
12
|
* Class representing a document loader for loading Figma files. It
|
|
11
13
|
* extends the BaseDocumentLoader and implements the FigmaLoaderParams
|
|
12
14
|
* interface. The constructor takes a config object as a parameter, which
|
|
@@ -14,6 +14,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
|
|
|
14
14
|
newPackageName: "@langchain/community",
|
|
15
15
|
});
|
|
16
16
|
/**
|
|
17
|
+
* @deprecated - Import from "@langchain/community/document_loaders/web/firecrawl" instead. This entrypoint will be removed in 0.3.0.
|
|
18
|
+
*
|
|
17
19
|
* Class representing a document loader for loading data from
|
|
18
20
|
* Firecrawl (firecrawl.dev). It extends the BaseDocumentLoader class.
|
|
19
21
|
* @example
|