langchain 0.2.0-rc.1 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/dist/agents/executor.cjs +2 -2
  2. package/dist/agents/executor.js +2 -2
  3. package/dist/document_loaders/fs/docx.cjs +2 -0
  4. package/dist/document_loaders/fs/docx.d.ts +2 -0
  5. package/dist/document_loaders/fs/docx.js +2 -0
  6. package/dist/document_loaders/fs/epub.cjs +2 -0
  7. package/dist/document_loaders/fs/epub.d.ts +2 -0
  8. package/dist/document_loaders/fs/epub.js +2 -0
  9. package/dist/document_loaders/fs/notion.cjs +2 -0
  10. package/dist/document_loaders/fs/notion.d.ts +2 -0
  11. package/dist/document_loaders/fs/notion.js +2 -0
  12. package/dist/document_loaders/fs/obsidian.cjs +2 -0
  13. package/dist/document_loaders/fs/obsidian.d.ts +2 -0
  14. package/dist/document_loaders/fs/obsidian.js +2 -0
  15. package/dist/document_loaders/fs/openai_whisper_audio.cjs +2 -0
  16. package/dist/document_loaders/fs/openai_whisper_audio.d.ts +2 -0
  17. package/dist/document_loaders/fs/openai_whisper_audio.js +2 -0
  18. package/dist/document_loaders/fs/pdf.cjs +2 -0
  19. package/dist/document_loaders/fs/pdf.d.ts +2 -0
  20. package/dist/document_loaders/fs/pdf.js +2 -0
  21. package/dist/document_loaders/fs/pptx.cjs +2 -0
  22. package/dist/document_loaders/fs/pptx.d.ts +2 -0
  23. package/dist/document_loaders/fs/pptx.js +2 -0
  24. package/dist/document_loaders/fs/srt.cjs +2 -0
  25. package/dist/document_loaders/fs/srt.d.ts +2 -0
  26. package/dist/document_loaders/fs/srt.js +2 -0
  27. package/dist/document_loaders/fs/unstructured.cjs +3 -1
  28. package/dist/document_loaders/fs/unstructured.d.ts +2 -0
  29. package/dist/document_loaders/fs/unstructured.js +3 -1
  30. package/dist/document_loaders/web/apify_dataset.cjs +1 -0
  31. package/dist/document_loaders/web/apify_dataset.d.ts +2 -0
  32. package/dist/document_loaders/web/apify_dataset.js +1 -0
  33. package/dist/document_loaders/web/assemblyai.cjs +8 -0
  34. package/dist/document_loaders/web/assemblyai.d.ts +8 -0
  35. package/dist/document_loaders/web/assemblyai.js +8 -0
  36. package/dist/document_loaders/web/azure_blob_storage_container.cjs +1 -0
  37. package/dist/document_loaders/web/azure_blob_storage_container.d.ts +1 -0
  38. package/dist/document_loaders/web/azure_blob_storage_container.js +1 -0
  39. package/dist/document_loaders/web/azure_blob_storage_file.cjs +1 -0
  40. package/dist/document_loaders/web/azure_blob_storage_file.d.ts +1 -0
  41. package/dist/document_loaders/web/azure_blob_storage_file.js +1 -0
  42. package/dist/document_loaders/web/cheerio.cjs +2 -0
  43. package/dist/document_loaders/web/cheerio.d.ts +4 -0
  44. package/dist/document_loaders/web/cheerio.js +2 -0
  45. package/dist/document_loaders/web/college_confidential.cjs +2 -0
  46. package/dist/document_loaders/web/college_confidential.d.ts +2 -0
  47. package/dist/document_loaders/web/college_confidential.js +2 -0
  48. package/dist/document_loaders/web/confluence.cjs +2 -0
  49. package/dist/document_loaders/web/confluence.d.ts +8 -0
  50. package/dist/document_loaders/web/confluence.js +2 -0
  51. package/dist/document_loaders/web/couchbase.cjs +2 -0
  52. package/dist/document_loaders/web/couchbase.d.ts +2 -0
  53. package/dist/document_loaders/web/couchbase.js +2 -0
  54. package/dist/document_loaders/web/figma.cjs +2 -0
  55. package/dist/document_loaders/web/figma.d.ts +6 -0
  56. package/dist/document_loaders/web/figma.js +2 -0
  57. package/dist/document_loaders/web/firecrawl.cjs +2 -0
  58. package/dist/document_loaders/web/firecrawl.d.ts +2 -0
  59. package/dist/document_loaders/web/firecrawl.js +2 -0
  60. package/dist/document_loaders/web/gitbook.cjs +2 -0
  61. package/dist/document_loaders/web/gitbook.d.ts +2 -0
  62. package/dist/document_loaders/web/gitbook.js +2 -0
  63. package/dist/document_loaders/web/github.cjs +2 -0
  64. package/dist/document_loaders/web/github.d.ts +6 -0
  65. package/dist/document_loaders/web/github.js +2 -0
  66. package/dist/document_loaders/web/hn.cjs +2 -0
  67. package/dist/document_loaders/web/hn.d.ts +2 -0
  68. package/dist/document_loaders/web/hn.js +2 -0
  69. package/dist/document_loaders/web/imsdb.cjs +2 -0
  70. package/dist/document_loaders/web/imsdb.d.ts +2 -0
  71. package/dist/document_loaders/web/imsdb.js +2 -0
  72. package/dist/document_loaders/web/notionapi.cjs +2 -0
  73. package/dist/document_loaders/web/notionapi.d.ts +5 -0
  74. package/dist/document_loaders/web/notionapi.js +2 -0
  75. package/dist/document_loaders/web/pdf.cjs +2 -0
  76. package/dist/document_loaders/web/pdf.d.ts +2 -0
  77. package/dist/document_loaders/web/pdf.js +2 -0
  78. package/dist/document_loaders/web/playwright.cjs +2 -0
  79. package/dist/document_loaders/web/playwright.d.ts +4 -0
  80. package/dist/document_loaders/web/playwright.js +2 -0
  81. package/dist/document_loaders/web/puppeteer.cjs +2 -0
  82. package/dist/document_loaders/web/puppeteer.d.ts +2 -0
  83. package/dist/document_loaders/web/puppeteer.js +2 -0
  84. package/dist/document_loaders/web/recursive_url.cjs +3 -0
  85. package/dist/document_loaders/web/recursive_url.d.ts +6 -0
  86. package/dist/document_loaders/web/recursive_url.js +3 -0
  87. package/dist/document_loaders/web/s3.cjs +2 -0
  88. package/dist/document_loaders/web/s3.d.ts +4 -0
  89. package/dist/document_loaders/web/s3.js +2 -0
  90. package/dist/document_loaders/web/searchapi.cjs +2 -0
  91. package/dist/document_loaders/web/searchapi.d.ts +2 -0
  92. package/dist/document_loaders/web/searchapi.js +2 -0
  93. package/dist/document_loaders/web/serpapi.cjs +2 -0
  94. package/dist/document_loaders/web/serpapi.d.ts +2 -0
  95. package/dist/document_loaders/web/serpapi.js +2 -0
  96. package/dist/document_loaders/web/sitemap.cjs +3 -0
  97. package/dist/document_loaders/web/sitemap.d.ts +5 -0
  98. package/dist/document_loaders/web/sitemap.js +3 -0
  99. package/dist/document_loaders/web/sonix_audio.cjs +2 -0
  100. package/dist/document_loaders/web/sonix_audio.d.ts +2 -0
  101. package/dist/document_loaders/web/sonix_audio.js +2 -0
  102. package/dist/document_loaders/web/sort_xyz_blockchain.cjs +2 -0
  103. package/dist/document_loaders/web/sort_xyz_blockchain.d.ts +2 -0
  104. package/dist/document_loaders/web/sort_xyz_blockchain.js +2 -0
  105. package/dist/document_loaders/web/youtube.cjs +2 -0
  106. package/dist/document_loaders/web/youtube.d.ts +2 -0
  107. package/dist/document_loaders/web/youtube.js +2 -0
  108. package/dist/experimental/openai_assistant/index.cjs +3 -0
  109. package/dist/experimental/openai_assistant/index.js +3 -0
  110. package/dist/load/import_map.cjs +5 -2
  111. package/dist/load/import_map.d.ts +3 -0
  112. package/dist/load/import_map.js +3 -0
  113. package/dist/load/index.cjs +1 -1
  114. package/dist/load/index.js +1 -1
  115. package/dist/schema/prompt_template.cjs +34 -0
  116. package/dist/schema/prompt_template.d.ts +13 -0
  117. package/dist/schema/prompt_template.js +30 -0
  118. package/dist/schema/query_constructor.cjs +32 -0
  119. package/dist/schema/query_constructor.d.ts +12 -0
  120. package/dist/schema/query_constructor.js +28 -0
  121. package/dist/tools/index.cjs +26 -0
  122. package/dist/tools/index.d.ts +8 -0
  123. package/dist/tools/index.js +8 -0
  124. package/package.json +46 -7
  125. package/prompts/load.cjs +1 -0
  126. package/prompts/load.d.cts +1 -0
  127. package/prompts/load.d.ts +1 -0
  128. package/prompts/load.js +1 -0
  129. package/schema/document.cjs +1 -0
  130. package/schema/document.d.cts +1 -0
  131. package/schema/document.d.ts +1 -0
  132. package/schema/document.js +1 -0
  133. package/schema/prompt_template.cjs +1 -0
  134. package/schema/prompt_template.d.cts +1 -0
  135. package/schema/prompt_template.d.ts +1 -0
  136. package/schema/prompt_template.js +1 -0
  137. package/schema/query_constructor.cjs +1 -0
  138. package/schema/query_constructor.d.cts +1 -0
  139. package/schema/query_constructor.d.ts +1 -0
  140. package/schema/query_constructor.js +1 -0
  141. package/tools.cjs +1 -0
  142. package/tools.d.cts +1 -0
  143. package/tools.d.ts +1 -0
  144. package/tools.js +1 -0
  145. package/dist/load/dynamic_import_map.cjs +0 -8
  146. package/dist/load/dynamic_import_map.d.ts +0 -1
  147. package/dist/load/dynamic_import_map.js +0 -4
@@ -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
@@ -20,6 +20,8 @@ interface FirecrawlLoaderParameters {
20
20
  params?: Record<string, unknown>;
21
21
  }
22
22
  /**
23
+ * @deprecated - Import from "@langchain/community/document_loaders/web/firecrawl" instead. This entrypoint will be removed in 0.3.0.
24
+ *
23
25
  * Class representing a document loader for loading data from
24
26
  * Firecrawl (firecrawl.dev). It extends the BaseDocumentLoader class.
25
27
  * @example
@@ -8,6 +8,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
8
8
  newPackageName: "@langchain/community",
9
9
  });
10
10
  /**
11
+ * @deprecated - Import from "@langchain/community/document_loaders/web/firecrawl" instead. This entrypoint will be removed in 0.3.0.
12
+ *
11
13
  * Class representing a document loader for loading data from
12
14
  * Firecrawl (firecrawl.dev). It extends the BaseDocumentLoader class.
13
15
  * @example
@@ -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/gitbook" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * Class representing a document loader specifically designed for loading
13
15
  * documents from Gitbook. It extends the CheerioWebBaseLoader.
14
16
  */
@@ -9,6 +9,8 @@ interface GitbookLoaderParams {
9
9
  shouldLoadAllPaths?: boolean;
10
10
  }
11
11
  /**
12
+ * @deprecated - Import from "@langchain/community/document_loaders/web/gitbook" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * Class representing a document loader specifically designed for loading
13
15
  * documents from Gitbook. It extends the CheerioWebBaseLoader.
14
16
  */
@@ -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/gitbook" instead. This entrypoint will be removed in 0.3.0.
10
+ *
9
11
  * Class representing a document loader specifically designed for loading
10
12
  * documents from Gitbook. It extends the CheerioWebBaseLoader.
11
13
  */
@@ -28,6 +28,8 @@ function isBinaryPath(name) {
28
28
  return extensions.has((0, extname_js_1.extname)(name).slice(1).toLowerCase());
29
29
  }
30
30
  /**
31
+ * @deprecated - Import from "@langchain/community/document_loaders/web/github" instead. This entrypoint will be removed in 0.3.0.
32
+ *
31
33
  * A class that extends the BaseDocumentLoader and implements the
32
34
  * GithubRepoLoaderParams interface. It represents a document loader for
33
35
  * loading files from a GitHub repository.
@@ -4,6 +4,8 @@ import { AsyncCaller, AsyncCallerParams } from "@langchain/core/utils/async_call
4
4
  import { BaseDocumentLoader } from "../base.js";
5
5
  import { UnknownHandling } from "../fs/directory.js";
6
6
  /**
7
+ * @deprecated - Import from "@langchain/community/document_loaders/web/github" instead. This entrypoint will be removed in 0.3.0.
8
+ *
7
9
  * An interface that represents a file in a GitHub repository. It has
8
10
  * properties for the file name, path, SHA, size, URLs, type, and links.
9
11
  */
@@ -24,6 +26,8 @@ export interface GithubFile {
24
26
  };
25
27
  }
26
28
  /**
29
+ * @deprecated - Import from "@langchain/community/document_loaders/web/github" instead. This entrypoint will be removed in 0.3.0.
30
+ *
27
31
  * An interface that represents the parameters for the GithubRepoLoader
28
32
  * class. It extends the AsyncCallerParams interface and adds additional
29
33
  * properties specific to the GitHub repository loader.
@@ -61,6 +65,8 @@ export interface GithubRepoLoaderParams extends AsyncCallerParams {
61
65
  maxRetries?: number;
62
66
  }
63
67
  /**
68
+ * @deprecated - Import from "@langchain/community/document_loaders/web/github" instead. This entrypoint will be removed in 0.3.0.
69
+ *
64
70
  * A class that extends the BaseDocumentLoader and implements the
65
71
  * GithubRepoLoaderParams interface. It represents a document loader for
66
72
  * loading files from a GitHub repository.
@@ -22,6 +22,8 @@ function isBinaryPath(name) {
22
22
  return extensions.has(extname(name).slice(1).toLowerCase());
23
23
  }
24
24
  /**
25
+ * @deprecated - Import from "@langchain/community/document_loaders/web/github" instead. This entrypoint will be removed in 0.3.0.
26
+ *
25
27
  * A class that extends the BaseDocumentLoader and implements the
26
28
  * GithubRepoLoaderParams interface. It represents a document loader for
27
29
  * loading files from a GitHub repository.
@@ -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/hn" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * A class that extends the CheerioWebBaseLoader class. It represents a
13
15
  * loader for loading web pages from the Hacker News website.
14
16
  */
@@ -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/hn" instead. This entrypoint will be removed in 0.3.0.
5
+ *
4
6
  * A class that extends the CheerioWebBaseLoader class. It represents a
5
7
  * loader for loading web pages from the Hacker News website.
6
8
  */
@@ -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/hn" instead. This entrypoint will be removed in 0.3.0.
10
+ *
9
11
  * A class that extends the CheerioWebBaseLoader class. It represents a
10
12
  * loader for loading web pages from the Hacker News website.
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/web/imsdb" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * A class that extends the CheerioWebBaseLoader class. It represents a
13
15
  * loader for loading web pages from the IMSDB (Internet Movie Script
14
16
  * Database) website.
@@ -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/imsdb" instead. This entrypoint will be removed in 0.3.0.
5
+ *
4
6
  * A class that extends the CheerioWebBaseLoader class. It represents a
5
7
  * loader for loading web pages from the IMSDB (Internet Movie Script
6
8
  * Database) website.
@@ -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/imsdb" instead. This entrypoint will be removed in 0.3.0.
10
+ *
9
11
  * A class that extends the CheerioWebBaseLoader class. It represents a
10
12
  * loader for loading web pages from the IMSDB (Internet Movie Script
11
13
  * Database) website.
@@ -27,6 +27,8 @@ exports.isPage = isPage;
27
27
  const isDatabase = (res) => (0, exports.isDatabaseResponse)(res) && (0, client_1.isFullDatabase)(res);
28
28
  exports.isDatabase = isDatabase;
29
29
  /**
30
+ * @deprecated - Import from "@langchain/community/document_loaders/web/notionapi" instead. This entrypoint will be removed in 0.3.0.
31
+ *
30
32
  * A class that extends the BaseDocumentLoader class. It represents a
31
33
  * document loader for loading documents from Notion using the Notion API.
32
34
  * @example
@@ -23,6 +23,9 @@ export declare const isDatabase: (res: GetResponse) => res is import("@notionhq/
23
23
  */
24
24
  export type NotionAPIType = "database" | "page";
25
25
  export type OnDocumentLoadedCallback = (current: number, total: number, currentTitle?: string, rootTitle?: string) => void;
26
+ /**
27
+ * @deprecated - Import from "@langchain/community/document_loaders/web/notionapi" instead. This entrypoint will be removed in 0.3.0.
28
+ */
26
29
  export type NotionAPILoaderOptions = {
27
30
  clientOptions: ConstructorParameters<typeof Client>[0];
28
31
  id: string;
@@ -32,6 +35,8 @@ export type NotionAPILoaderOptions = {
32
35
  propertiesAsHeader?: boolean;
33
36
  };
34
37
  /**
38
+ * @deprecated - Import from "@langchain/community/document_loaders/web/notionapi" instead. This entrypoint will be removed in 0.3.0.
39
+ *
35
40
  * A class that extends the BaseDocumentLoader class. It represents a
36
41
  * document loader for loading documents from Notion using the Notion API.
37
42
  * @example
@@ -16,6 +16,8 @@ export const isErrorResponse = (res) => isNotionClientError(res);
16
16
  export const isPage = (res) => isPageResponse(res) && isFullPage(res);
17
17
  export const isDatabase = (res) => isDatabaseResponse(res) && isFullDatabase(res);
18
18
  /**
19
+ * @deprecated - Import from "@langchain/community/document_loaders/web/notionapi" instead. This entrypoint will be removed in 0.3.0.
20
+ *
19
21
  * A class that extends the BaseDocumentLoader class. It represents a
20
22
  * document loader for loading documents from Notion using the Notion API.
21
23
  * @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/pdf" instead. This entrypoint will be removed in 0.3.0.
14
+ *
13
15
  * A document loader for loading data from PDFs.
14
16
  * @example
15
17
  * ```typescript
@@ -2,6 +2,8 @@
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/web/pdf" instead. This entrypoint will be removed in 0.3.0.
6
+ *
5
7
  * A document loader for loading data from PDFs.
6
8
  * @example
7
9
  * ```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/pdf" instead. This entrypoint will be removed in 0.3.0.
11
+ *
10
12
  * A document loader for loading data from PDFs.
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/pplaywrightdf" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * Class representing a document loader for scraping web pages using
13
15
  * Playwright. Extends the BaseDocumentLoader class and implements the
14
16
  * DocumentLoader interface.
@@ -9,6 +9,8 @@ export type PlaywrightGotoOptions = {
9
9
  waitUntil?: "load" | "domcontentloaded" | "networkidle" | "commit";
10
10
  };
11
11
  /**
12
+ * @deprecated - Import from "@langchain/community/document_loaders/web/playwright" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * Type representing a function for evaluating JavaScript code on a web
13
15
  * page using Playwright. Takes a Page, Browser, and Response object as
14
16
  * parameters and returns a Promise that resolves to a string.
@@ -20,6 +22,8 @@ export type PlaywrightWebBaseLoaderOptions = {
20
22
  evaluate?: PlaywrightEvaluate;
21
23
  };
22
24
  /**
25
+ * @deprecated - Import from "@langchain/community/document_loaders/web/pplaywrightdf" instead. This entrypoint will be removed in 0.3.0.
26
+ *
23
27
  * Class representing a document loader for scraping web pages using
24
28
  * Playwright. Extends the BaseDocumentLoader class and implements the
25
29
  * DocumentLoader interface.
@@ -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/pplaywrightdf" instead. This entrypoint will be removed in 0.3.0.
10
+ *
9
11
  * Class representing a document loader for scraping web pages using
10
12
  * Playwright. Extends the BaseDocumentLoader class and implements the
11
13
  * DocumentLoader interface.
@@ -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/puppeteer" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * Class that extends the BaseDocumentLoader class and implements the
13
15
  * DocumentLoader interface. It represents a document loader for scraping
14
16
  * web pages using Puppeteer.
@@ -19,6 +19,8 @@ export type PuppeteerWebBaseLoaderOptions = {
19
19
  evaluate?: PuppeteerEvaluate;
20
20
  };
21
21
  /**
22
+ * @deprecated - Import from "@langchain/community/document_loaders/web/puppeteer" instead. This entrypoint will be removed in 0.3.0.
23
+ *
22
24
  * Class that extends the BaseDocumentLoader class and implements the
23
25
  * DocumentLoader interface. It represents a document loader for scraping
24
26
  * web pages using Puppeteer.
@@ -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/puppeteer" instead. This entrypoint will be removed in 0.3.0.
10
+ *
9
11
  * Class that extends the BaseDocumentLoader class and implements the
10
12
  * DocumentLoader interface. It represents a document loader for scraping
11
13
  * web pages using Puppeteer.
@@ -9,6 +9,9 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
9
9
  oldEntrypointName: "document_loaders/web/recursive_url",
10
10
  newPackageName: "@langchain/community",
11
11
  });
12
+ /**
13
+ * @deprecated - Import from "@langchain/community/document_loaders/web/recursive_url" instead. This entrypoint will be removed in 0.3.0.
14
+ */
12
15
  class RecursiveUrlLoader extends base_js_1.BaseDocumentLoader {
13
16
  constructor(url, options) {
14
17
  super();
@@ -1,6 +1,9 @@
1
1
  import { Document } from "@langchain/core/documents";
2
2
  import { AsyncCaller } from "@langchain/core/utils/async_caller";
3
3
  import { BaseDocumentLoader, DocumentLoader } from "../base.js";
4
+ /**
5
+ * @deprecated - Import from "@langchain/community/document_loaders/web/recursive_url" instead. This entrypoint will be removed in 0.3.0.
6
+ */
4
7
  export interface RecursiveUrlLoaderOptions {
5
8
  excludeDirs?: string[];
6
9
  extractor?: (text: string) => string;
@@ -9,6 +12,9 @@ export interface RecursiveUrlLoaderOptions {
9
12
  preventOutside?: boolean;
10
13
  callerOptions?: ConstructorParameters<typeof AsyncCaller>[0];
11
14
  }
15
+ /**
16
+ * @deprecated - Import from "@langchain/community/document_loaders/web/recursive_url" instead. This entrypoint will be removed in 0.3.0.
17
+ */
12
18
  export declare class RecursiveUrlLoader extends BaseDocumentLoader implements DocumentLoader {
13
19
  private caller;
14
20
  private url;
@@ -6,6 +6,9 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
6
6
  oldEntrypointName: "document_loaders/web/recursive_url",
7
7
  newPackageName: "@langchain/community",
8
8
  });
9
+ /**
10
+ * @deprecated - Import from "@langchain/community/document_loaders/web/recursive_url" instead. This entrypoint will be removed in 0.3.0.
11
+ */
9
12
  export class RecursiveUrlLoader extends BaseDocumentLoader {
10
13
  constructor(url, options) {
11
14
  super();
@@ -37,6 +37,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
37
37
  newPackageName: "@langchain/community",
38
38
  });
39
39
  /**
40
+ * @deprecated - Import from "@langchain/community/document_loaders/web/s3" instead. This entrypoint will be removed in 0.3.0.
41
+ *
40
42
  * A class that extends the BaseDocumentLoader class. It represents a
41
43
  * document loader for loading files from an S3 bucket.
42
44
  * @example
@@ -16,6 +16,8 @@ export type S3Config = S3ClientConfig & {
16
16
  secretAccessKey?: string;
17
17
  };
18
18
  /**
19
+ * @deprecated - Import from "@langchain/community/document_loaders/web/s3" instead. This entrypoint will be removed in 0.3.0.
20
+ *
19
21
  * Represents the parameters for the S3Loader class. It includes
20
22
  * properties such as the S3 bucket, key, unstructured API URL,
21
23
  * unstructured API key, S3 configuration, file system module, and
@@ -36,6 +38,8 @@ export interface S3LoaderParams {
36
38
  UnstructuredLoader?: typeof UnstructuredLoaderDefault;
37
39
  }
38
40
  /**
41
+ * @deprecated - Import from "@langchain/community/document_loaders/web/s3" instead. This entrypoint will be removed in 0.3.0.
42
+ *
39
43
  * A class that extends the BaseDocumentLoader class. It represents a
40
44
  * document loader for loading files from an S3 bucket.
41
45
  * @example
@@ -11,6 +11,8 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
11
11
  newPackageName: "@langchain/community",
12
12
  });
13
13
  /**
14
+ * @deprecated - Import from "@langchain/community/document_loaders/web/s3" instead. This entrypoint will be removed in 0.3.0.
15
+ *
14
16
  * A class that extends the BaseDocumentLoader class. It represents a
15
17
  * document loader for loading files from an S3 bucket.
16
18
  * @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/searchapi" instead. This entrypoint will be removed in 0.3.0.
14
+ *
13
15
  * Class representing a document loader for loading search results from
14
16
  * the SearchApi. It extends the BaseDocumentLoader class.
15
17
  * @example
@@ -22,6 +22,8 @@ type SearchApiParameters = {
22
22
  [key: string]: JSONValue;
23
23
  };
24
24
  /**
25
+ * @deprecated - Import from "@langchain/community/document_loaders/web/searchapi" instead. This entrypoint will be removed in 0.3.0.
26
+ *
25
27
  * Class representing a document loader for loading search results from
26
28
  * the SearchApi. It extends the BaseDocumentLoader class.
27
29
  * @example
@@ -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/searchapi" instead. This entrypoint will be removed in 0.3.0.
11
+ *
10
12
  * Class representing a document loader for loading search results from
11
13
  * the SearchApi. It extends the BaseDocumentLoader class.
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/web/serpapi" instead. This entrypoint will be removed in 0.3.0.
14
+ *
13
15
  * Class representing a document loader for loading search results from
14
16
  * the SerpAPI. It extends the BaseDocumentLoader class.
15
17
  * @example
@@ -12,6 +12,8 @@ interface SerpAPIParameters {
12
12
  apiKey?: string;
13
13
  }
14
14
  /**
15
+ * @deprecated - Import from "@langchain/community/document_loaders/web/serpapi" instead. This entrypoint will be removed in 0.3.0.
16
+ *
15
17
  * Class representing a document loader for loading search results from
16
18
  * the SerpAPI. It extends the BaseDocumentLoader class.
17
19
  * @example
@@ -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/serpapi" instead. This entrypoint will be removed in 0.3.0.
11
+ *
10
12
  * Class representing a document loader for loading search results from
11
13
  * the SerpAPI. It extends the BaseDocumentLoader class.
12
14
  * @example
@@ -10,6 +10,9 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
10
10
  newPackageName: "@langchain/community",
11
11
  });
12
12
  const DEFAULT_CHUNK_SIZE = 300;
13
+ /**
14
+ * @deprecated - Import from "@langchain/community/document_loaders/web/sitemap" instead. This entrypoint will be removed in 0.3.0.
15
+ */
13
16
  class SitemapLoader extends cheerio_js_1.CheerioWebBaseLoader {
14
17
  constructor(webPath, params = {}) {
15
18
  const paramsWithDefaults = { chunkSize: DEFAULT_CHUNK_SIZE, ...params };
@@ -1,6 +1,8 @@
1
1
  import { Document, DocumentInterface } from "@langchain/core/documents";
2
2
  import { CheerioWebBaseLoader, WebBaseLoaderParams } from "./cheerio.js";
3
3
  /**
4
+ * @deprecated - Import from "@langchain/community/document_loaders/web/sitemap" instead. This entrypoint will be removed in 0.3.0.
5
+ *
4
6
  * Interface representing the parameters for initializing a SitemapLoader.
5
7
  * @interface SitemapLoaderParams
6
8
  * @extends WebBaseLoaderParams
@@ -23,6 +25,9 @@ type SiteMapElement = {
23
25
  lastmod?: string;
24
26
  priority?: string;
25
27
  };
28
+ /**
29
+ * @deprecated - Import from "@langchain/community/document_loaders/web/sitemap" instead. This entrypoint will be removed in 0.3.0.
30
+ */
26
31
  export declare class SitemapLoader extends CheerioWebBaseLoader implements SitemapLoaderParams {
27
32
  webPath: string;
28
33
  allowUrlPatterns: (string | RegExp)[] | undefined;
@@ -7,6 +7,9 @@ import { logVersion020MigrationWarning } from "../../util/entrypoint_deprecation
7
7
  newPackageName: "@langchain/community",
8
8
  });
9
9
  const DEFAULT_CHUNK_SIZE = 300;
10
+ /**
11
+ * @deprecated - Import from "@langchain/community/document_loaders/web/sitemap" instead. This entrypoint will be removed in 0.3.0.
12
+ */
10
13
  export class SitemapLoader extends CheerioWebBaseLoader {
11
14
  constructor(webPath, params = {}) {
12
15
  const paramsWithDefaults = { chunkSize: DEFAULT_CHUNK_SIZE, ...params };