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.
Files changed (179) hide show
  1. package/README.md +7 -7
  2. package/dist/agents/chat/index.cjs +1 -1
  3. package/dist/agents/chat/index.d.ts +1 -1
  4. package/dist/agents/chat/index.js +1 -1
  5. package/dist/agents/chat_convo/index.cjs +1 -1
  6. package/dist/agents/chat_convo/index.d.ts +1 -1
  7. package/dist/agents/chat_convo/index.js +1 -1
  8. package/dist/agents/executor.cjs +2 -2
  9. package/dist/agents/executor.js +2 -2
  10. package/dist/agents/mrkl/index.cjs +1 -1
  11. package/dist/agents/mrkl/index.d.ts +1 -1
  12. package/dist/agents/mrkl/index.js +1 -1
  13. package/dist/agents/openai_functions/index.cjs +1 -1
  14. package/dist/agents/openai_functions/index.d.ts +1 -1
  15. package/dist/agents/openai_functions/index.js +1 -1
  16. package/dist/agents/structured_chat/index.cjs +1 -1
  17. package/dist/agents/structured_chat/index.d.ts +1 -1
  18. package/dist/agents/structured_chat/index.js +1 -1
  19. package/dist/agents/xml/index.cjs +1 -1
  20. package/dist/agents/xml/index.d.ts +1 -1
  21. package/dist/agents/xml/index.js +1 -1
  22. package/dist/chains/load.cjs +1 -1
  23. package/dist/chains/load.d.ts +1 -1
  24. package/dist/chains/load.js +1 -1
  25. package/dist/chains/openai_functions/structured_output.cjs +2 -2
  26. package/dist/chains/openai_functions/structured_output.d.ts +2 -2
  27. package/dist/chains/openai_functions/structured_output.js +2 -2
  28. package/dist/chains/serde.d.ts +12 -12
  29. package/dist/document_loaders/fs/docx.cjs +2 -0
  30. package/dist/document_loaders/fs/docx.d.ts +2 -0
  31. package/dist/document_loaders/fs/docx.js +2 -0
  32. package/dist/document_loaders/fs/epub.cjs +2 -0
  33. package/dist/document_loaders/fs/epub.d.ts +2 -0
  34. package/dist/document_loaders/fs/epub.js +2 -0
  35. package/dist/document_loaders/fs/notion.cjs +2 -0
  36. package/dist/document_loaders/fs/notion.d.ts +2 -0
  37. package/dist/document_loaders/fs/notion.js +2 -0
  38. package/dist/document_loaders/fs/obsidian.cjs +2 -0
  39. package/dist/document_loaders/fs/obsidian.d.ts +2 -0
  40. package/dist/document_loaders/fs/obsidian.js +2 -0
  41. package/dist/document_loaders/fs/openai_whisper_audio.cjs +2 -0
  42. package/dist/document_loaders/fs/openai_whisper_audio.d.ts +2 -0
  43. package/dist/document_loaders/fs/openai_whisper_audio.js +2 -0
  44. package/dist/document_loaders/fs/pdf.cjs +2 -0
  45. package/dist/document_loaders/fs/pdf.d.ts +2 -0
  46. package/dist/document_loaders/fs/pdf.js +2 -0
  47. package/dist/document_loaders/fs/pptx.cjs +2 -0
  48. package/dist/document_loaders/fs/pptx.d.ts +2 -0
  49. package/dist/document_loaders/fs/pptx.js +2 -0
  50. package/dist/document_loaders/fs/srt.cjs +2 -0
  51. package/dist/document_loaders/fs/srt.d.ts +2 -0
  52. package/dist/document_loaders/fs/srt.js +2 -0
  53. package/dist/document_loaders/fs/unstructured.cjs +3 -1
  54. package/dist/document_loaders/fs/unstructured.d.ts +2 -0
  55. package/dist/document_loaders/fs/unstructured.js +3 -1
  56. package/dist/document_loaders/web/apify_dataset.cjs +1 -0
  57. package/dist/document_loaders/web/apify_dataset.d.ts +2 -0
  58. package/dist/document_loaders/web/apify_dataset.js +1 -0
  59. package/dist/document_loaders/web/assemblyai.cjs +8 -0
  60. package/dist/document_loaders/web/assemblyai.d.ts +8 -0
  61. package/dist/document_loaders/web/assemblyai.js +8 -0
  62. package/dist/document_loaders/web/azure_blob_storage_container.cjs +1 -0
  63. package/dist/document_loaders/web/azure_blob_storage_container.d.ts +1 -0
  64. package/dist/document_loaders/web/azure_blob_storage_container.js +1 -0
  65. package/dist/document_loaders/web/azure_blob_storage_file.cjs +1 -0
  66. package/dist/document_loaders/web/azure_blob_storage_file.d.ts +1 -0
  67. package/dist/document_loaders/web/azure_blob_storage_file.js +1 -0
  68. package/dist/document_loaders/web/browserbase.cjs +7 -1
  69. package/dist/document_loaders/web/browserbase.d.ts +3 -4
  70. package/dist/document_loaders/web/browserbase.js +7 -1
  71. package/dist/document_loaders/web/cheerio.cjs +2 -0
  72. package/dist/document_loaders/web/cheerio.d.ts +4 -0
  73. package/dist/document_loaders/web/cheerio.js +2 -0
  74. package/dist/document_loaders/web/college_confidential.cjs +2 -0
  75. package/dist/document_loaders/web/college_confidential.d.ts +2 -0
  76. package/dist/document_loaders/web/college_confidential.js +2 -0
  77. package/dist/document_loaders/web/confluence.cjs +2 -0
  78. package/dist/document_loaders/web/confluence.d.ts +8 -0
  79. package/dist/document_loaders/web/confluence.js +2 -0
  80. package/dist/document_loaders/web/couchbase.cjs +2 -0
  81. package/dist/document_loaders/web/couchbase.d.ts +2 -0
  82. package/dist/document_loaders/web/couchbase.js +2 -0
  83. package/dist/document_loaders/web/figma.cjs +2 -0
  84. package/dist/document_loaders/web/figma.d.ts +6 -0
  85. package/dist/document_loaders/web/figma.js +2 -0
  86. package/dist/document_loaders/web/firecrawl.cjs +2 -0
  87. package/dist/document_loaders/web/firecrawl.d.ts +2 -0
  88. package/dist/document_loaders/web/firecrawl.js +2 -0
  89. package/dist/document_loaders/web/gitbook.cjs +2 -0
  90. package/dist/document_loaders/web/gitbook.d.ts +2 -0
  91. package/dist/document_loaders/web/gitbook.js +2 -0
  92. package/dist/document_loaders/web/github.cjs +2 -0
  93. package/dist/document_loaders/web/github.d.ts +6 -0
  94. package/dist/document_loaders/web/github.js +2 -0
  95. package/dist/document_loaders/web/hn.cjs +2 -0
  96. package/dist/document_loaders/web/hn.d.ts +2 -0
  97. package/dist/document_loaders/web/hn.js +2 -0
  98. package/dist/document_loaders/web/imsdb.cjs +2 -0
  99. package/dist/document_loaders/web/imsdb.d.ts +2 -0
  100. package/dist/document_loaders/web/imsdb.js +2 -0
  101. package/dist/document_loaders/web/notionapi.cjs +2 -0
  102. package/dist/document_loaders/web/notionapi.d.ts +5 -0
  103. package/dist/document_loaders/web/notionapi.js +2 -0
  104. package/dist/document_loaders/web/pdf.cjs +2 -0
  105. package/dist/document_loaders/web/pdf.d.ts +2 -0
  106. package/dist/document_loaders/web/pdf.js +2 -0
  107. package/dist/document_loaders/web/playwright.cjs +2 -0
  108. package/dist/document_loaders/web/playwright.d.ts +4 -0
  109. package/dist/document_loaders/web/playwright.js +2 -0
  110. package/dist/document_loaders/web/puppeteer.cjs +2 -0
  111. package/dist/document_loaders/web/puppeteer.d.ts +2 -0
  112. package/dist/document_loaders/web/puppeteer.js +2 -0
  113. package/dist/document_loaders/web/recursive_url.cjs +3 -0
  114. package/dist/document_loaders/web/recursive_url.d.ts +6 -0
  115. package/dist/document_loaders/web/recursive_url.js +3 -0
  116. package/dist/document_loaders/web/s3.cjs +2 -0
  117. package/dist/document_loaders/web/s3.d.ts +4 -0
  118. package/dist/document_loaders/web/s3.js +2 -0
  119. package/dist/document_loaders/web/searchapi.cjs +2 -0
  120. package/dist/document_loaders/web/searchapi.d.ts +2 -0
  121. package/dist/document_loaders/web/searchapi.js +2 -0
  122. package/dist/document_loaders/web/serpapi.cjs +2 -0
  123. package/dist/document_loaders/web/serpapi.d.ts +2 -0
  124. package/dist/document_loaders/web/serpapi.js +2 -0
  125. package/dist/document_loaders/web/sitemap.cjs +3 -0
  126. package/dist/document_loaders/web/sitemap.d.ts +5 -0
  127. package/dist/document_loaders/web/sitemap.js +3 -0
  128. package/dist/document_loaders/web/sonix_audio.cjs +2 -0
  129. package/dist/document_loaders/web/sonix_audio.d.ts +2 -0
  130. package/dist/document_loaders/web/sonix_audio.js +2 -0
  131. package/dist/document_loaders/web/sort_xyz_blockchain.cjs +2 -0
  132. package/dist/document_loaders/web/sort_xyz_blockchain.d.ts +2 -0
  133. package/dist/document_loaders/web/sort_xyz_blockchain.js +2 -0
  134. package/dist/document_loaders/web/youtube.cjs +2 -0
  135. package/dist/document_loaders/web/youtube.d.ts +2 -0
  136. package/dist/document_loaders/web/youtube.js +2 -0
  137. package/dist/experimental/openai_assistant/index.cjs +3 -0
  138. package/dist/experimental/openai_assistant/index.js +3 -0
  139. package/dist/load/import_map.cjs +5 -11
  140. package/dist/load/import_map.d.ts +3 -9
  141. package/dist/load/import_map.js +3 -9
  142. package/dist/load/index.cjs +1 -1
  143. package/dist/load/index.js +1 -1
  144. package/dist/schema/prompt_template.cjs +34 -0
  145. package/dist/schema/prompt_template.d.ts +13 -0
  146. package/dist/schema/prompt_template.js +30 -0
  147. package/dist/schema/query_constructor.cjs +32 -0
  148. package/dist/schema/query_constructor.d.ts +12 -0
  149. package/dist/schema/query_constructor.js +28 -0
  150. package/dist/smith/config.cjs +10 -2
  151. package/dist/smith/config.d.ts +37 -5
  152. package/dist/smith/config.js +10 -2
  153. package/dist/tools/index.cjs +26 -0
  154. package/dist/tools/index.d.ts +8 -0
  155. package/dist/tools/index.js +8 -0
  156. package/package.json +48 -22
  157. package/schema/document.cjs +1 -0
  158. package/schema/document.d.cts +1 -0
  159. package/schema/document.d.ts +1 -0
  160. package/schema/document.js +1 -0
  161. package/schema/prompt_template.cjs +1 -0
  162. package/schema/prompt_template.d.cts +1 -0
  163. package/schema/prompt_template.d.ts +1 -0
  164. package/schema/prompt_template.js +1 -0
  165. package/schema/query_constructor.cjs +1 -0
  166. package/schema/query_constructor.d.cts +1 -0
  167. package/schema/query_constructor.d.ts +1 -0
  168. package/schema/query_constructor.js +1 -0
  169. package/tools.cjs +1 -0
  170. package/tools.d.cts +1 -0
  171. package/tools.d.ts +1 -0
  172. package/tools.js +1 -0
  173. package/dist/load/dynamic_import_map.cjs +0 -8
  174. package/dist/load/dynamic_import_map.d.ts +0 -1
  175. package/dist/load/dynamic_import_map.js +0 -4
  176. package/prompts/index.cjs +0 -1
  177. package/prompts/index.d.cts +0 -1
  178. package/prompts/index.d.ts +0 -1
  179. package/prompts/index.js +0 -1
@@ -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 };
@@ -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/sonix_audio" instead. This entrypoint will be removed in 0.3.0.
14
+ *
13
15
  * A class that represents a document loader for transcribing audio files
14
16
  * using the Sonix Speech Recognition service.
15
17
  * @example
@@ -2,6 +2,8 @@ import { SpeechToTextRequest } from "sonix-speech-recognition/lib/types.js";
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/sonix_audio" instead. This entrypoint will be removed in 0.3.0.
6
+ *
5
7
  * A class that represents a document loader for transcribing audio files
6
8
  * using the Sonix Speech Recognition service.
7
9
  * @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/sonix_audio" instead. This entrypoint will be removed in 0.3.0.
11
+ *
10
12
  * A class that represents a document loader for transcribing audio files
11
13
  * using the Sonix Speech Recognition service.
12
14
  * @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/sortxyz_blockchain" instead. This entrypoint will be removed in 0.3.0.
13
+ *
12
14
  * Class representing a document loader for loading data from the SortXYZ
13
15
  * blockchain using the SortXYZ API.
14
16
  * @example
@@ -33,6 +33,8 @@ export interface SortXYZBlockchainAPIResponse {
33
33
  };
34
34
  }
35
35
  /**
36
+ * @deprecated - Import from "@langchain/community/document_loaders/web/sortxyz_blockchain" instead. This entrypoint will be removed in 0.3.0.
37
+ *
36
38
  * Class representing a document loader for loading data from the SortXYZ
37
39
  * blockchain using the SortXYZ API.
38
40
  * @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/sortxyz_blockchain" instead. This entrypoint will be removed in 0.3.0.
10
+ *
9
11
  * Class representing a document loader for loading data from the SortXYZ
10
12
  * blockchain using the SortXYZ API.
11
13
  * @example
@@ -11,6 +11,8 @@ const entrypoint_deprecation_js_1 = require("../../util/entrypoint_deprecation.c
11
11
  newPackageName: "@langchain/community",
12
12
  });
13
13
  /**
14
+ * @deprecated - Import from "@langchain/community/document_loaders/web/youtube" instead. This entrypoint will be removed in 0.3.0.
15
+ *
14
16
  * A document loader for loading data from YouTube videos. It uses the
15
17
  * youtube-transcript and youtubei.js libraries to fetch the transcript
16
18
  * and video metadata.
@@ -10,6 +10,8 @@ interface YoutubeConfig {
10
10
  addVideoInfo?: boolean;
11
11
  }
12
12
  /**
13
+ * @deprecated - Import from "@langchain/community/document_loaders/web/youtube" instead. This entrypoint will be removed in 0.3.0.
14
+ *
13
15
  * A document loader for loading data from YouTube videos. It uses the
14
16
  * youtube-transcript and youtubei.js libraries to fetch the transcript
15
17
  * and video metadata.
@@ -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/youtube" instead. This entrypoint will be removed in 0.3.0.
12
+ *
11
13
  * A document loader for loading data from YouTube videos. It uses the
12
14
  * youtube-transcript and youtubei.js libraries to fetch the transcript
13
15
  * and video metadata.
@@ -58,6 +58,7 @@ class OpenAIAssistantRunnable extends runnables_1.Runnable {
58
58
  tools: formattedTools,
59
59
  model,
60
60
  file_ids: fileIds,
61
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
61
62
  });
62
63
  return new this({
63
64
  client: oaiClient,
@@ -98,6 +99,7 @@ class OpenAIAssistantRunnable extends runnables_1.Runnable {
98
99
  role: "user",
99
100
  file_ids: input.file_ids,
100
101
  metadata: input.messagesMetadata,
102
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
101
103
  });
102
104
  run = await this._createRun(input);
103
105
  }
@@ -140,6 +142,7 @@ class OpenAIAssistantRunnable extends runnables_1.Runnable {
140
142
  instructions,
141
143
  model,
142
144
  file_ids: fileIds,
145
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
143
146
  });
144
147
  }
145
148
  async _parseStepsInput(input) {
@@ -55,6 +55,7 @@ export class OpenAIAssistantRunnable extends Runnable {
55
55
  tools: formattedTools,
56
56
  model,
57
57
  file_ids: fileIds,
58
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
58
59
  });
59
60
  return new this({
60
61
  client: oaiClient,
@@ -95,6 +96,7 @@ export class OpenAIAssistantRunnable extends Runnable {
95
96
  role: "user",
96
97
  file_ids: input.file_ids,
97
98
  metadata: input.messagesMetadata,
99
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
98
100
  });
99
101
  run = await this._createRun(input);
100
102
  }
@@ -137,6 +139,7 @@ export class OpenAIAssistantRunnable extends Runnable {
137
139
  instructions,
138
140
  model,
139
141
  file_ids: fileIds,
142
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
140
143
  });
141
144
  }
142
145
  async _parseStepsInput(input) {