├── vectorstore ├── args.json ├── hnswlib.index └── docstore.json ├── .gitignore ├── LICENSE ├── package.json ├── README.md ├── src └── app.ts └── tsconfig.json /vectorstore/args.json: -------------------------------------------------------------------------------- 1 | {"space":"cosine","numDimensions":1536} -------------------------------------------------------------------------------- /vectorstore/hnswlib.index: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/BenGardiner123/langchainjs-chat-with-your-github/HEAD/vectorstore/hnswlib.index -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # See https://help.github.com/articles/ignoring-files/ for more about ignoring files. 2 | 3 | # dependencies 4 | /node_modules 5 | /.pnp 6 | .pnp.js 7 | 8 | # testing 9 | /coverage 10 | 11 | # next.js 12 | /.next/ 13 | /out/ 14 | 15 | # production 16 | /build 17 | 18 | # misc 19 | .DS_Store 20 | *.pem 21 | 22 | # debug 23 | npm-debug.log* 24 | yarn-debug.log* 25 | yarn-error.log* 26 | .pnpm-debug.log* 27 | 28 | # local env files 29 | .env*.local 30 | 31 | # Used env file 32 | .env 33 | 34 | # vercel 35 | .vercel 36 | 37 | # typescript 38 | *.tsbuildinfo 39 | next-env.d.ts 40 | 41 | StripeAPI.md 42 | NextAPI.md 43 | StraightLine.md -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2023 BenG123 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- 1 | { 2 | "name": "", 3 | "version": "1.0.0", 4 | "description": "", 5 | "main": "index.js", 6 | "type": "module", 7 | "license": "AGPL-version-3.0", 8 | "private": false, 9 | "engines": { 10 | "node": ">= 14.0.0", 11 | "npm": ">= 6.0.0" 12 | }, 13 | "homepage": "", 14 | "repository": { 15 | "type": "git", 16 | "url": "" 17 | }, 18 | "bugs": "", 19 | "keywords": [], 20 | "author": { 21 | "name": "", 22 | "email": "", 23 | "url": "" 24 | }, 25 | "contributors": [], 26 | "scripts": { 27 | "build": "tsc", 28 | "start": "node ./dist/app.js", 29 | "dev": "ts-node --esm ./src/app.ts" 30 | }, 31 | "dependencies": { 32 | "@pinecone-database/pinecone": "^0.0.10", 33 | "@types/node": "^18.15.10", 34 | "dotenv": "^16.0.3", 35 | "hnswlib-node": "^1.4.2", 36 | "ignore": "^5.2.4", 37 | "js-yaml": "^4.1.0", 38 | "langchain": "^0.0.92", 39 | "openai": "^3.2.1", 40 | "pinecone": "^0.1.0", 41 | "serpapi": "^1.1.1", 42 | "typescript": "^5.0.2" 43 | }, 44 | "devDependencies": { 45 | "@types/js-yaml": "^4.0.5", 46 | "ts-node": "^10.9.1" 47 | } 48 | } 49 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | ![chat_ur_repo](https://github.com/BenGardiner123/langchainjs-chat-with-your-github/assets/61527372/7ecdb395-d286-47a9-9553-7ad5e34a9b30) 2 | 3 | # Langchain Chat with Your Github 4 | 5 | This repository showcases an exciting implementation of Langchain.js, enabling you to have interactive conversations with a GitHub repository using JavaScript. With this setup, you can extract information, ask questions, and gain insights from the repository's content. 6 | 7 | ## Getting Started 8 | 9 | To use this Langchain Chat with Your Github repository, follow these steps: 10 | 11 | 1. Clone this repository to your local machine. 12 | 2. Install the necessary dependencies by running `npm install`. 13 | 3. Create a `.env` file in the root directory of the project and add your OpenAI API key with the following format: `OPENAI_API_KEY=YOUR_API_KEY` and a GITHUB_ACCESS_TOKEN 14 | 4. Build the project using TypeScript by running `npm run build`. 15 | 5. Start the application by running `npm run dev`. 16 | 17 | ## Usage 18 | 19 | Once the application is running, you can interact with the GitHub repository by having conversations and asking questions by using the query. The Langchain.js library enables you to extract information and gain insights from the repository's content. 20 | 21 | Feel free to explore and customize the code to suit your needs. 22 | 23 | ## Contributing 24 | 25 | Contributions are welcome! If you have any suggestions, improvements, or bug fixes, please submit a pull request. Ensure that your changes align with the repository's coding standards. 26 | 27 | ## License 28 | 29 | This project is licensed under the [MIT License](LICENSE). 30 | 31 | ## Contact 32 | 33 | If you have any questions or inquiries, feel free to contact the repository owner via email or submit an issue in the GitHub repository. 34 | 35 | Happy coding! 36 | 37 | 38 | 39 | -------------------------------------------------------------------------------- /src/app.ts: -------------------------------------------------------------------------------- 1 | import { OpenAI } from "langchain/llms/openai"; 2 | import { GithubRepoLoader } from "langchain/document_loaders/web/github"; 3 | import { HNSWLib } from "langchain/vectorstores"; 4 | import { OpenAIEmbeddings } from "langchain/embeddings/openai"; 5 | import { RecursiveCharacterTextSplitter } from "langchain/text_splitter"; 6 | import { RetrievalQAChain } from "langchain/chains"; 7 | import { Document } from "langchain/document"; 8 | import * as fs from "fs"; 9 | import * as dotenv from "dotenv"; 10 | dotenv.config(); 11 | 12 | function normalizeDocuments(docs: Document>[]) { 13 | return docs.map((doc) => { 14 | if (typeof doc.pageContent === "string") { 15 | return doc.pageContent; 16 | } else if (Array.isArray(doc.pageContent)) { 17 | return (doc.pageContent as string[]).join("\n"); 18 | } 19 | throw new Error("Invalid pageContent type"); 20 | }); 21 | } 22 | 23 | const model = new OpenAI({ 24 | openAIApiKey: process.env.OPENAI_API_KEY, 25 | }); 26 | 27 | async function loadDocuments() { 28 | console.log("Loading docs"); 29 | const loader = new GithubRepoLoader( 30 | "https://github.com/BenGardiner123/langchainjs-typescript", 31 | { 32 | branch: "main", 33 | recursive: true, 34 | unknown: "warn", 35 | accessToken: process.env.GITHUB_ACCESS_TOKEN, 36 | } 37 | ); 38 | const docs = await loader.load(); 39 | console.log("Docs loaded", docs); 40 | return docs; 41 | } 42 | 43 | export const run = async () => { 44 | const directory = "./vectorstore"; 45 | 46 | try { 47 | // Check if the files exist in the directory 48 | const argsFileExists = fs.existsSync(`${directory}/args.json`); 49 | const docstoreFileExists = fs.existsSync(`${directory}/docstore.json`); 50 | 51 | // To save money and time, we only want to load the documents and create the vector store if we need to 52 | if (!argsFileExists || !docstoreFileExists) { 53 | // At least one of the files doesn't exist in the directory 54 | // Load documents, create vector store, and save them 55 | 56 | const docs = await loadDocuments(); 57 | 58 | const textSplitter = new RecursiveCharacterTextSplitter({ 59 | chunkSize: 1000, 60 | }); 61 | 62 | const normalizedDocs = normalizeDocuments(docs); 63 | 64 | const splitDocs = await textSplitter.createDocuments(normalizedDocs); 65 | 66 | // Create a vector store for the documents using HNSWLib 67 | const vectorStore = await HNSWLib.fromDocuments( 68 | splitDocs, 69 | new OpenAIEmbeddings() 70 | ); 71 | 72 | // Save the vector store to the directory 73 | await vectorStore.save(directory); 74 | } 75 | 76 | // Load the vector store from the directory 77 | const loadedVectorStore = await HNSWLib.load( 78 | directory, 79 | new OpenAIEmbeddings() 80 | ); 81 | // Create a chain that uses the OpenAI LLM and HNSWLib vector store. 82 | const chain = RetrievalQAChain.fromLLM( 83 | model, 84 | loadedVectorStore.asRetriever() 85 | ); 86 | const res = await chain.call({ 87 | query: `What can you tell me about the repository ? be specific Can you see a folder called "src". If you can see a folder called "src" can you tell me the name of the files inside it?`, 88 | }); 89 | console.log({ res }); 90 | 91 | // const followUp = await chain.call({ 92 | // query: `Can you see a folder called "src". If you can see a folder called "src" can you tell me the name of the files inside it?`, 93 | // context: res.context, 94 | // }); 95 | // console.log({ followUp }); 96 | } catch (error) { 97 | console.error("An error occurred:", error); 98 | } 99 | }; 100 | 101 | run(); 102 | -------------------------------------------------------------------------------- /tsconfig.json: -------------------------------------------------------------------------------- 1 | { 2 | "compilerOptions": { 3 | /* Visit https://aka.ms/tsconfig to read more about this file */ 4 | 5 | /* Projects */ 6 | // "incremental": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */ 7 | // "composite": true, /* Enable constraints that allow a TypeScript project to be used with project references. */ 8 | // "tsBuildInfoFile": "./.tsbuildinfo", /* Specify the path to .tsbuildinfo incremental compilation file. */ 9 | // "disableSourceOfProjectReferenceRedirect": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */ 10 | // "disableSolutionSearching": true, /* Opt a project out of multi-project reference checking when editing. */ 11 | // "disableReferencedProjectLoad": true, /* Reduce the number of projects loaded automatically by TypeScript. */ 12 | 13 | /* Language and Environment */ 14 | "target": "es2020", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */ 15 | "lib": ["es2020"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */ 16 | // "jsx": "preserve", /* Specify what JSX code is generated. */ 17 | // "experimentalDecorators": true, /* Enable experimental support for legacy experimental decorators. */ 18 | // "emitDecoratorMetadata": true, /* Emit design-type metadata for decorated declarations in source files. */ 19 | // "jsxFactory": "", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */ 20 | // "jsxFragmentFactory": "", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */ 21 | // "jsxImportSource": "", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */ 22 | // "reactNamespace": "", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */ 23 | // "noLib": true, /* Disable including any library files, including the default lib.d.ts. */ 24 | // "useDefineForClassFields": true, /* Emit ECMAScript-standard-compliant class fields. */ 25 | // "moduleDetection": "auto", /* Control what method is used to detect module-format JS files. */ 26 | 27 | /* Modules */ 28 | "module": "nodenext", /* Specify what module code is generated. */ 29 | "rootDir": "src", /* Specify the root folder within your source files. */ 30 | // "moduleResolution": "node10", /* Specify how TypeScript looks up a file from a given module specifier. */ 31 | // "baseUrl": "./", /* Specify the base directory to resolve non-relative module names. */ 32 | // "paths": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */ 33 | // "rootDirs": [], /* Allow multiple folders to be treated as one when resolving modules. */ 34 | // "typeRoots": [], /* Specify multiple folders that act like './node_modules/@types'. */ 35 | // "types": [], /* Specify type package names to be included without being referenced in a source file. */ 36 | // "allowUmdGlobalAccess": true, /* Allow accessing UMD globals from modules. */ 37 | // "moduleSuffixes": [], /* List of file name suffixes to search when resolving a module. */ 38 | // "allowImportingTsExtensions": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */ 39 | // "resolvePackageJsonExports": true, /* Use the package.json 'exports' field when resolving package imports. */ 40 | // "resolvePackageJsonImports": true, /* Use the package.json 'imports' field when resolving imports. */ 41 | // "customConditions": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */ 42 | // "resolveJsonModule": true, /* Enable importing .json files. */ 43 | // "allowArbitraryExtensions": true, /* Enable importing files with any extension, provided a declaration file is present. */ 44 | // "noResolve": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */ 45 | 46 | /* JavaScript Support */ 47 | // "allowJs": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */ 48 | // "checkJs": true, /* Enable error reporting in type-checked JavaScript files. */ 49 | // "maxNodeModuleJsDepth": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */ 50 | 51 | /* Emit */ 52 | // "declaration": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */ 53 | // "declarationMap": true, /* Create sourcemaps for d.ts files. */ 54 | // "emitDeclarationOnly": true, /* Only output d.ts files and not JavaScript files. */ 55 | // "sourceMap": true, /* Create source map files for emitted JavaScript files. */ 56 | // "inlineSourceMap": true, /* Include sourcemap files inside the emitted JavaScript. */ 57 | // "outFile": "./", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */ 58 | "outDir": "./dist", /* Specify an output folder for all emitted files. */ 59 | // "removeComments": true, /* Disable emitting comments. */ 60 | // "noEmit": true, /* Disable emitting files from a compilation. */ 61 | // "importHelpers": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */ 62 | // "importsNotUsedAsValues": "remove", /* Specify emit/checking behavior for imports that are only used for types. */ 63 | // "downlevelIteration": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */ 64 | // "sourceRoot": "", /* Specify the root path for debuggers to find the reference source code. */ 65 | // "mapRoot": "", /* Specify the location where debugger should locate map files instead of generated locations. */ 66 | // "inlineSources": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */ 67 | // "emitBOM": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */ 68 | // "newLine": "crlf", /* Set the newline character for emitting files. */ 69 | // "stripInternal": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */ 70 | // "noEmitHelpers": true, /* Disable generating custom helper functions like '__extends' in compiled output. */ 71 | // "noEmitOnError": true, /* Disable emitting files if any type checking errors are reported. */ 72 | // "preserveConstEnums": true, /* Disable erasing 'const enum' declarations in generated code. */ 73 | // "declarationDir": "./", /* Specify the output directory for generated declaration files. */ 74 | // "preserveValueImports": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */ 75 | 76 | /* Interop Constraints */ 77 | // "isolatedModules": true, /* Ensure that each file can be safely transpiled without relying on other imports. */ 78 | // "verbatimModuleSyntax": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */ 79 | // "allowSyntheticDefaultImports": true, /* Allow 'import x from y' when a module doesn't have a default export. */ 80 | "esModuleInterop": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */ 81 | // "preserveSymlinks": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */ 82 | "forceConsistentCasingInFileNames": true, /* Ensure that casing is correct in imports. */ 83 | 84 | /* Type Checking */ 85 | "strict": true, /* Enable all strict type-checking options. */ 86 | "noImplicitAny": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */ 87 | // "strictNullChecks": true, /* When type checking, take into account 'null' and 'undefined'. */ 88 | // "strictFunctionTypes": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */ 89 | // "strictBindCallApply": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */ 90 | // "strictPropertyInitialization": true, /* Check for class properties that are declared but not set in the constructor. */ 91 | // "noImplicitThis": true, /* Enable error reporting when 'this' is given the type 'any'. */ 92 | // "useUnknownInCatchVariables": true, /* Default catch clause variables as 'unknown' instead of 'any'. */ 93 | // "alwaysStrict": true, /* Ensure 'use strict' is always emitted. */ 94 | // "noUnusedLocals": true, /* Enable error reporting when local variables aren't read. */ 95 | // "noUnusedParameters": true, /* Raise an error when a function parameter isn't read. */ 96 | // "exactOptionalPropertyTypes": true, /* Interpret optional property types as written, rather than adding 'undefined'. */ 97 | // "noImplicitReturns": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */ 98 | // "noFallthroughCasesInSwitch": true, /* Enable error reporting for fallthrough cases in switch statements. */ 99 | // "noUncheckedIndexedAccess": true, /* Add 'undefined' to a type when accessed using an index. */ 100 | // "noImplicitOverride": true, /* Ensure overriding members in derived classes are marked with an override modifier. */ 101 | // "noPropertyAccessFromIndexSignature": true, /* Enforces using indexed accessors for keys declared using an indexed type. */ 102 | // "allowUnusedLabels": true, /* Disable error reporting for unused labels. */ 103 | // "allowUnreachableCode": true, /* Disable error reporting for unreachable code. */ 104 | 105 | /* Completeness */ 106 | // "skipDefaultLibCheck": true, /* Skip type checking .d.ts files that are included with TypeScript. */ 107 | "skipLibCheck": true /* Skip type checking all .d.ts files. */ 108 | } 109 | } 110 | -------------------------------------------------------------------------------- /vectorstore/docstore.json: -------------------------------------------------------------------------------- 1 | [["0",{"pageContent":"# Logs\nlogs\n*.log\nnpm-debug.log*\nyarn-debug.log*\nyarn-error.log*\nlerna-debug.log*\n.pnpm-debug.log*\n\n# Diagnostic reports (https://nodejs.org/api/report.html)\nreport.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json\n\n# Runtime data\npids\n*.pid\n*.seed\n*.pid.lock\n\n# Directory for instrumented libs generated by jscoverage/JSCover\nlib-cov\n\n# Coverage directory used by tools like istanbul\ncoverage\n*.lcov\n\n# nyc test coverage\n.nyc_output\n\n# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)\n.grunt\n\n# Bower dependency directory (https://bower.io/)\nbower_components\n\n# node-waf configuration\n.lock-wscript\n\n# Compiled binary addons (https://nodejs.org/api/addons.html)\nbuild/Release\n\n# Dependency directories\nnode_modules/\njspm_packages/\n\n# Snowpack dependency directory (https://snowpack.dev/)\nweb_modules/\n\n# TypeScript cache\n*.tsbuildinfo\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional stylelint cache\n.stylelintcache","metadata":{"loc":{"lines":{"from":1,"to":58}}}}],["1",{"pageContent":"# TypeScript cache\n*.tsbuildinfo\n\n# Optional npm cache directory\n.npm\n\n# Optional eslint cache\n.eslintcache\n\n# Optional stylelint cache\n.stylelintcache\n\n# Microbundle cache\n.rpt2_cache/\n.rts2_cache_cjs/\n.rts2_cache_es/\n.rts2_cache_umd/\n\n# Optional REPL history\n.node_repl_history\n\n# Output of 'npm pack'\n*.tgz\n\n# Yarn Integrity file\n.yarn-integrity\n\n# dotenv environment variable files\n.env\n.env.development.local\n.env.test.local\n.env.production.local\n.env.local\n\n# parcel-bundler cache (https://parceljs.org/)\n.cache\n.parcel-cache\n\n# Next.js build output\n.next\nout\n\n# Nuxt.js build / generate output\n.nuxt\ndist\n\n# Gatsby files\n.cache/\n# Comment in the public line in if your project uses Gatsby and not Next.js\n# https://nextjs.org/blog/next-9-1#public-directory-support\n# public\n\n# vuepress build output\n.vuepress/dist\n\n# vuepress v2.x temp and cache directory\n.temp\n.cache\n\n# Docusaurus cache and generated files\n.docusaurus\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/","metadata":{"loc":{"lines":{"from":58,"to":124}}}}],["2",{"pageContent":"# vuepress v2.x temp and cache directory\n.temp\n.cache\n\n# Docusaurus cache and generated files\n.docusaurus\n\n# Serverless directories\n.serverless/\n\n# FuseBox cache\n.fusebox/\n\n# DynamoDB Local files\n.dynamodb/\n\n# TernJS port file\n.tern-port\n\n# Stores VSCode versions used for testing VSCode extensions\n.vscode-test\n\n# yarn v2\n.yarn/cache\n.yarn/unplugged\n.yarn/build-state.yml\n.yarn/install-state.gz\n.pnp.*","metadata":{"loc":{"lines":{"from":124,"to":151}}}}],["3",{"pageContent":"MIT License\n\nCopyright (c) 2023 BenG123\n\nPermission is hereby granted, free of charge, to any person obtaining a copy\nof this software and associated documentation files (the \"Software\"), to deal\nin the Software without restriction, including without limitation the rights\nto use, copy, modify, merge, publish, distribute, sublicense, and/or sell\ncopies of the Software, and to permit persons to whom the Software is\nfurnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.","metadata":{"loc":{"lines":{"from":1,"to":13}}}}],["4",{"pageContent":"The above copyright notice and this permission notice shall be included in all\ncopies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\nIMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\nFITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\nAUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\nLIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\nOUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE\nSOFTWARE.","metadata":{"loc":{"lines":{"from":13,"to":22}}}}],["5",{"pageContent":"![langchain_starter_1](https://github.com/BenGardiner123/langchainjs-typescript/assets/61527372/2036a175-d156-4603-a959-8095298fdd99)\n# Langchain JS Starter Template\n\nWelcome to the Langchain JS Starter Template! This repository offers a profound initiation into the realm of TypeScript, harmoniously intertwined with the mystical powers of Langchainjs. Within these hallowed grounds, the essence of OpenAI's language models pulsates, waiting to be harnessed.\n\n## Embarking on the Journey\n\nPrepare thyself, for this odyssey requires Node.js version 18 or higher, serving as the compass for your expedition.","metadata":{"loc":{"lines":{"from":1,"to":8}}}}],["6",{"pageContent":"## Embarking on the Journey\n\nPrepare thyself, for this odyssey requires Node.js version 18 or higher, serving as the compass for your expedition.\n\n1. Venture forth by cloning this repository, embracing the thrill of discovery.\n2. Enchant your environment with the necessary dependencies through the incantation `npm install`, unveiling the secrets that lie dormant.\n3. Craft the key to this sacred gateway: the `.env` file. Add thy OpenAI API key with utmost secrecy, inscribing something like `OPENAI_API_KEY=sk-982734...` upon its concealed parchment.\n4. Shape the code through the fires of TypeScript, invoking its power with the invocation `npm run build`. Witness the metamorphosis of your incantations into tangible creations.\n5. Unleash the magic within by commanding `npm run dev`, as your application breathes life, transcending the boundaries of mere mortal existence.\n\n## Unleashing the Power","metadata":{"loc":{"lines":{"from":8,"to":18}}}}],["7",{"pageContent":"## Unleashing the Power\n\nWithin the confines of this mystical tome lies the `app.ts` file, an anthology of examples drawn from the sacred texts of langchain.js. Embrace the artistry of this code and let it ignite your creativity, as you traverse the realms of possibility.\n\nTo further embrace this arcane craft, immerse thyself in the following grimoires of wisdom:\n\n- [Awesome Langchain](https://github.com/kyrolabs/awesome-langchain): A compendium of enchantments, curated with the wisdom of sages.\n- [Chat with Langchainjs](https://github.com/sullivan-sean/chat-langchainjs): Engage in ethereal conversations, guided by the ethereal essence of Langchainjs.\n\nMay this repository captivate thy senses, like a symphony composed by the gods themselves. As you witness the intricacies of Langchain JS unfurl, remember to bestow a celestial mark upon this sanctuary ⭐, thus embarking on a shared voyage of enlightenment.","metadata":{"loc":{"lines":{"from":18,"to":27}}}}],["8",{"pageContent":"With bated breath, embrace the ethereal dance between words and code. As the ink flows and the compiler hums, let your creation shine with the brilliance of Hemingway's prose. Happy coding, noble adventurer!","metadata":{"loc":{"lines":{"from":29,"to":29}}}}],["9",{"pageContent":"{\n \"name\": \"langchain-typescript-starter\",\n \"version\": \"1.0.0\",\n \"lockfileVersion\": 3,\n \"requires\": true,\n \"packages\": {\n \"\": {\n \"name\": \"langchain-typescript-starter\",\n \"version\": \"1.0.0\",\n \"license\": \"AGPL-version-3.0\",\n \"dependencies\": {\n \"@types/node\": \"^18.15.10\",\n \"dotenv\": \"^16.0.3\",\n \"js-yaml\": \"^4.1.0\",\n \"langchain\": \"^0.0.96\",\n \"typescript\": \"^5.0.2\"\n },\n \"devDependencies\": {\n \"@types/js-yaml\": \"^4.0.5\",\n \"ts-node\": \"^10.9.1\"\n },\n \"engines\": {\n \"node\": \">= 18.0.0\",\n \"npm\": \">= 9.0.0\"\n }\n },\n \"node_modules/@anthropic-ai/sdk\": {\n \"version\": \"0.4.4\",\n \"resolved\": \"https://registry.npmjs.org/@anthropic-ai/sdk/-/sdk-0.4.4.tgz\",\n \"integrity\": \"sha512-Z/39nQi1sSUCeLII3lsAbL1u+0JF6cR2XmUEX9sLH0VtxmIjY6cjOUYjCkYh4oapTxOkhAFnVSAFJ6cxml2qXg==\",\n \"dependencies\": {\n \"@fortaine/fetch-event-source\": \"^3.0.6\",\n \"cross-fetch\": \"^3.1.5\"","metadata":{"loc":{"lines":{"from":1,"to":33}}}}],["10",{"pageContent":"\"dependencies\": {\n \"@fortaine/fetch-event-source\": \"^3.0.6\",\n \"cross-fetch\": \"^3.1.5\"\n }\n },\n \"node_modules/@cspotcode/source-map-support\": {\n \"version\": \"0.8.1\",\n \"resolved\": \"https://registry.npmjs.org/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz\",\n \"integrity\": \"sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw==\",\n \"dev\": true,\n \"dependencies\": {\n \"@jridgewell/trace-mapping\": \"0.3.9\"\n },\n \"engines\": {\n \"node\": \">=12\"\n }\n },\n \"node_modules/@fortaine/fetch-event-source\": {\n \"version\": \"3.0.6\",\n \"resolved\": \"https://registry.npmjs.org/@fortaine/fetch-event-source/-/fetch-event-source-3.0.6.tgz\",\n \"integrity\": \"sha512-621GAuLMvKtyZQ3IA6nlDWhV1V/7PGOTNIGLUifxt0KzM+dZIweJ6F3XvQF3QnqeNfS1N7WQ0Kil1Di/lhChEw==\",\n \"engines\": {\n \"node\": \">=16.15\"\n }\n },\n \"node_modules/@jridgewell/resolve-uri\": {","metadata":{"loc":{"lines":{"from":33,"to":58}}}}],["11",{"pageContent":"\"engines\": {\n \"node\": \">=16.15\"\n }\n },\n \"node_modules/@jridgewell/resolve-uri\": {\n \"version\": \"3.1.1\",\n \"resolved\": \"https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.1.tgz\",\n \"integrity\": \"sha512-dSYZh7HhCDtCKm4QakX0xFpsRDqjjtZf/kjI/v3T3Nwt5r8/qz/M19F9ySyOqU94SXBmeG9ttTul+YnR4LOxFA==\",\n \"dev\": true,\n \"engines\": {\n \"node\": \">=6.0.0\"\n }\n },\n \"node_modules/@jridgewell/sourcemap-codec\": {\n \"version\": \"1.4.15\",\n \"resolved\": \"https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz\",\n \"integrity\": \"sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg==\",\n \"dev\": true\n },\n \"node_modules/@jridgewell/trace-mapping\": {\n \"version\": \"0.3.9\",\n \"resolved\": \"https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz\",","metadata":{"loc":{"lines":{"from":58,"to":79}}}}],["12",{"pageContent":"\"dev\": true\n },\n \"node_modules/@jridgewell/trace-mapping\": {\n \"version\": \"0.3.9\",\n \"resolved\": \"https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz\",\n \"integrity\": \"sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ==\",\n \"dev\": true,\n \"dependencies\": {\n \"@jridgewell/resolve-uri\": \"^3.0.3\",\n \"@jridgewell/sourcemap-codec\": \"^1.4.10\"\n }\n },\n \"node_modules/@tsconfig/node10\": {\n \"version\": \"1.0.9\",\n \"resolved\": \"https://registry.npmjs.org/@tsconfig/node10/-/node10-1.0.9.tgz\",\n \"integrity\": \"sha512-jNsYVVxU8v5g43Erja32laIDHXeoNvFEpX33OK4d6hljo3jDhCBDhx5dhCCTMWUojscpAagGiRkBKxpdl9fxqA==\",\n \"dev\": true\n },\n \"node_modules/@tsconfig/node12\": {\n \"version\": \"1.0.11\",\n \"resolved\": \"https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz\",","metadata":{"loc":{"lines":{"from":79,"to":99}}}}],["13",{"pageContent":"\"dev\": true\n },\n \"node_modules/@tsconfig/node12\": {\n \"version\": \"1.0.11\",\n \"resolved\": \"https://registry.npmjs.org/@tsconfig/node12/-/node12-1.0.11.tgz\",\n \"integrity\": \"sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag==\",\n \"dev\": true\n },\n \"node_modules/@tsconfig/node14\": {\n \"version\": \"1.0.3\",\n \"resolved\": \"https://registry.npmjs.org/@tsconfig/node14/-/node14-1.0.3.tgz\",\n \"integrity\": \"sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow==\",\n \"dev\": true\n },\n \"node_modules/@tsconfig/node16\": {\n \"version\": \"1.0.4\",\n \"resolved\": \"https://registry.npmjs.org/@tsconfig/node16/-/node16-1.0.4.tgz\",\n \"integrity\": \"sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA==\",\n \"dev\": true\n },\n \"node_modules/@types/js-yaml\": {\n \"version\": \"4.0.5\",","metadata":{"loc":{"lines":{"from":99,"to":120}}}}],["14",{"pageContent":"\"dev\": true\n },\n \"node_modules/@types/js-yaml\": {\n \"version\": \"4.0.5\",\n \"resolved\": \"https://registry.npmjs.org/@types/js-yaml/-/js-yaml-4.0.5.tgz\",\n \"integrity\": \"sha512-FhpRzf927MNQdRZP0J5DLIdTXhjLYzeUTmLAu69mnVksLH9CJY3IuSeEgbKUki7GQZm0WqDkGzyxju2EZGD2wA==\",\n \"dev\": true\n },\n \"node_modules/@types/node\": {\n \"version\": \"18.16.18\",\n \"resolved\": \"https://registry.npmjs.org/@types/node/-/node-18.16.18.tgz\",\n \"integrity\": \"sha512-/aNaQZD0+iSBAGnvvN2Cx92HqE5sZCPZtx2TsK+4nvV23fFe09jVDvpArXr2j9DnYlzuU9WuoykDDc6wqvpNcw==\"\n },\n \"node_modules/@types/retry\": {\n \"version\": \"0.12.0\",\n \"resolved\": \"https://registry.npmjs.org/@types/retry/-/retry-0.12.0.tgz\",\n \"integrity\": \"sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA==\"\n },\n \"node_modules/@types/uuid\": {\n \"version\": \"9.0.2\",\n \"resolved\": \"https://registry.npmjs.org/@types/uuid/-/uuid-9.0.2.tgz\",","metadata":{"loc":{"lines":{"from":120,"to":140}}}}],["15",{"pageContent":"},\n \"node_modules/@types/uuid\": {\n \"version\": \"9.0.2\",\n \"resolved\": \"https://registry.npmjs.org/@types/uuid/-/uuid-9.0.2.tgz\",\n \"integrity\": \"sha512-kNnC1GFBLuhImSnV7w4njQkUiJi0ZXUycu1rUaouPqiKlXkh77JKgdRnTAp1x5eBwcIwbtI+3otwzuIDEuDoxQ==\"\n },\n \"node_modules/acorn\": {\n \"version\": \"8.9.0\",\n \"resolved\": \"https://registry.npmjs.org/acorn/-/acorn-8.9.0.tgz\",\n \"integrity\": \"sha512-jaVNAFBHNLXspO543WnNNPZFRtavh3skAkITqD0/2aeMkKZTN+254PyhwxFYrk3vQ1xfY+2wbesJMs/JC8/PwQ==\",\n \"dev\": true,\n \"bin\": {\n \"acorn\": \"bin/acorn\"\n },\n \"engines\": {\n \"node\": \">=0.4.0\"\n }\n },\n \"node_modules/acorn-walk\": {\n \"version\": \"8.2.0\",\n \"resolved\": \"https://registry.npmjs.org/acorn-walk/-/acorn-walk-8.2.0.tgz\",\n \"integrity\": \"sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==\",\n \"dev\": true,\n \"engines\": {\n \"node\": \">=0.4.0\"\n }\n },","metadata":{"loc":{"lines":{"from":140,"to":166}}}}],["16",{"pageContent":"\"integrity\": \"sha512-k+iyHEuPgSw6SbuDpGQM+06HQUa04DZ3o+F6CSzXMvvI5KMvnaEqXe+YVe555R9nn6GPt404fos4wcgpw12SDA==\",\n \"dev\": true,\n \"engines\": {\n \"node\": \">=0.4.0\"\n }\n },\n \"node_modules/ansi-styles\": {\n \"version\": \"5.2.0\",\n \"resolved\": \"https://registry.npmjs.org/ansi-styles/-/ansi-styles-5.2.0.tgz\",\n \"integrity\": \"sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA==\",\n \"engines\": {\n \"node\": \">=10\"\n },\n \"funding\": {\n \"url\": \"https://github.com/chalk/ansi-styles?sponsor=1\"\n }\n },\n \"node_modules/arg\": {\n \"version\": \"4.1.3\",\n \"resolved\": \"https://registry.npmjs.org/arg/-/arg-4.1.3.tgz\",\n \"integrity\": \"sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==\",\n \"dev\": true\n },\n \"node_modules/argparse\": {\n \"version\": \"2.0.1\",","metadata":{"loc":{"lines":{"from":166,"to":190}}}}],["17",{"pageContent":"\"integrity\": \"sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA==\",\n \"dev\": true\n },\n \"node_modules/argparse\": {\n \"version\": \"2.0.1\",\n \"resolved\": \"https://registry.npmjs.org/argparse/-/argparse-2.0.1.tgz\",\n \"integrity\": \"sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q==\"\n },\n \"node_modules/asynckit\": {\n \"version\": \"0.4.0\",\n \"resolved\": \"https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz\",\n \"integrity\": \"sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==\"\n },\n \"node_modules/axios\": {\n \"version\": \"0.26.1\",\n \"resolved\": \"https://registry.npmjs.org/axios/-/axios-0.26.1.tgz\",\n \"integrity\": \"sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.8\"\n }\n },","metadata":{"loc":{"lines":{"from":190,"to":210}}}}],["18",{"pageContent":"\"integrity\": \"sha512-fPwcX4EvnSHuInCMItEhAGnaSEXRBjtzh9fOtsE6E1G6p7vl7edEeZe11QHf18+6+9gR5PbKV/sGKNaD8YaMeA==\",\n \"dependencies\": {\n \"follow-redirects\": \"^1.14.8\"\n }\n },\n \"node_modules/base64-js\": {\n \"version\": \"1.5.1\",\n \"resolved\": \"https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz\",\n \"integrity\": \"sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==\",\n \"funding\": [\n {\n \"type\": \"github\",\n \"url\": \"https://github.com/sponsors/feross\"\n },\n {\n \"type\": \"patreon\",\n \"url\": \"https://www.patreon.com/feross\"\n },\n {\n \"type\": \"consulting\",\n \"url\": \"https://feross.org/support\"\n }\n ]\n },\n \"node_modules/binary-extensions\": {\n \"version\": \"2.2.0\",\n \"resolved\": \"https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz\",","metadata":{"loc":{"lines":{"from":210,"to":236}}}}],["19",{"pageContent":"}\n ]\n },\n \"node_modules/binary-extensions\": {\n \"version\": \"2.2.0\",\n \"resolved\": \"https://registry.npmjs.org/binary-extensions/-/binary-extensions-2.2.0.tgz\",\n \"integrity\": \"sha512-jDctJ/IVQbZoJykoeHbhXpOlNBqGNcwXJKJog42E5HDPUwQTSdjCHdihjj0DlnheQ7blbT6dHOafNAiS8ooQKA==\",\n \"engines\": {\n \"node\": \">=8\"\n }\n },\n \"node_modules/binary-search\": {\n \"version\": \"1.3.6\",\n \"resolved\": \"https://registry.npmjs.org/binary-search/-/binary-search-1.3.6.tgz\",\n \"integrity\": \"sha512-nbE1WxOTTrUWIfsfZ4aHGYu5DOuNkbxGokjV6Z2kxfJK3uaAb8zNK1muzOeipoLHZjInT4Br88BHpzevc681xA==\"\n },\n \"node_modules/camelcase\": {\n \"version\": \"6.3.0\",\n \"resolved\": \"https://registry.npmjs.org/camelcase/-/camelcase-6.3.0.tgz\",\n \"integrity\": \"sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==\",\n \"engines\": {\n \"node\": \">=10\"\n },\n \"funding\": {","metadata":{"loc":{"lines":{"from":236,"to":259}}}}],["20",{"pageContent":"\"integrity\": \"sha512-Gmy6FhYlCY7uOElZUSbxo2UCDH8owEk996gkbrpsgGtrJLM3J7jGxl9Ic7Qwwj4ivOE5AWZWRMecDdF7hqGjFA==\",\n \"engines\": {\n \"node\": \">=10\"\n },\n \"funding\": {\n \"url\": \"https://github.com/sponsors/sindresorhus\"\n }\n },\n \"node_modules/combined-stream\": {\n \"version\": \"1.0.8\",\n \"resolved\": \"https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz\",\n \"integrity\": \"sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==\",\n \"dependencies\": {\n \"delayed-stream\": \"~1.0.0\"\n },\n \"engines\": {\n \"node\": \">= 0.8\"\n }\n },\n \"node_modules/commander\": {\n \"version\": \"10.0.1\",\n \"resolved\": \"https://registry.npmjs.org/commander/-/commander-10.0.1.tgz\",\n \"integrity\": \"sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==\",\n \"engines\": {\n \"node\": \">=14\"\n }\n },","metadata":{"loc":{"lines":{"from":259,"to":285}}}}],["21",{"pageContent":"\"integrity\": \"sha512-y4Mg2tXshplEbSGzx7amzPwKKOCGuoSRP/CjEdwwk0FOGlUbq6lKuoyDZTNZkmxHdJtp54hdfY/JUrdL7Xfdug==\",\n \"engines\": {\n \"node\": \">=14\"\n }\n },\n \"node_modules/create-require\": {\n \"version\": \"1.1.1\",\n \"resolved\": \"https://registry.npmjs.org/create-require/-/create-require-1.1.1.tgz\",\n \"integrity\": \"sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ==\",\n \"dev\": true\n },\n \"node_modules/cross-fetch\": {\n \"version\": \"3.1.6\",\n \"resolved\": \"https://registry.npmjs.org/cross-fetch/-/cross-fetch-3.1.6.tgz\",\n \"integrity\": \"sha512-riRvo06crlE8HiqOwIpQhxwdOk4fOeR7FVM/wXoxchFEqMNUjvbs3bfo4OTgMEMHzppd4DxFBDbyySj8Cv781g==\",\n \"dependencies\": {\n \"node-fetch\": \"^2.6.11\"\n }\n },\n \"node_modules/decamelize\": {\n \"version\": \"5.0.1\",\n \"resolved\": \"https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz\",","metadata":{"loc":{"lines":{"from":285,"to":306}}}}],["22",{"pageContent":"\"node-fetch\": \"^2.6.11\"\n }\n },\n \"node_modules/decamelize\": {\n \"version\": \"5.0.1\",\n \"resolved\": \"https://registry.npmjs.org/decamelize/-/decamelize-5.0.1.tgz\",\n \"integrity\": \"sha512-VfxadyCECXgQlkoEAjeghAr5gY3Hf+IKjKb+X8tGVDtveCjN+USwprd2q3QXBR9T1+x2DG0XZF5/w+7HAtSaXA==\",\n \"engines\": {\n \"node\": \">=10\"\n },\n \"funding\": {\n \"url\": \"https://github.com/sponsors/sindresorhus\"\n }\n },\n \"node_modules/delayed-stream\": {\n \"version\": \"1.0.0\",\n \"resolved\": \"https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz\",\n \"integrity\": \"sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==\",\n \"engines\": {\n \"node\": \">=0.4.0\"\n }\n },\n \"node_modules/diff\": {\n \"version\": \"4.0.2\",\n \"resolved\": \"https://registry.npmjs.org/diff/-/diff-4.0.2.tgz\",","metadata":{"loc":{"lines":{"from":306,"to":330}}}}],["23",{"pageContent":"\"engines\": {\n \"node\": \">=0.4.0\"\n }\n },\n \"node_modules/diff\": {\n \"version\": \"4.0.2\",\n \"resolved\": \"https://registry.npmjs.org/diff/-/diff-4.0.2.tgz\",\n \"integrity\": \"sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A==\",\n \"dev\": true,\n \"engines\": {\n \"node\": \">=0.3.1\"\n }\n },\n \"node_modules/dotenv\": {\n \"version\": \"16.3.1\",\n \"resolved\": \"https://registry.npmjs.org/dotenv/-/dotenv-16.3.1.tgz\",\n \"integrity\": \"sha512-IPzF4w4/Rd94bA9imS68tZBaYyBWSCE47V1RGuMrB94iyTOIEwRmVL2x/4An+6mETpLrKJ5hQkB8W4kFAadeIQ==\",\n \"engines\": {\n \"node\": \">=12\"\n },\n \"funding\": {\n \"url\": \"https://github.com/motdotla/dotenv?sponsor=1\"\n }\n },\n \"node_modules/eventemitter3\": {\n \"version\": \"4.0.7\",\n \"resolved\": \"https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz\",","metadata":{"loc":{"lines":{"from":330,"to":356}}}}],["24",{"pageContent":"}\n },\n \"node_modules/eventemitter3\": {\n \"version\": \"4.0.7\",\n \"resolved\": \"https://registry.npmjs.org/eventemitter3/-/eventemitter3-4.0.7.tgz\",\n \"integrity\": \"sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw==\"\n },\n \"node_modules/expr-eval\": {\n \"version\": \"2.0.2\",\n \"resolved\": \"https://registry.npmjs.org/expr-eval/-/expr-eval-2.0.2.tgz\",\n \"integrity\": \"sha512-4EMSHGOPSwAfBiibw3ndnP0AvjDWLsMvGOvWEZ2F96IGk0bIVdjQisOHxReSkE13mHcfbuCiXw+G4y0zv6N8Eg==\"\n },\n \"node_modules/flat\": {\n \"version\": \"5.0.2\",\n \"resolved\": \"https://registry.npmjs.org/flat/-/flat-5.0.2.tgz\",\n \"integrity\": \"sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ==\",\n \"bin\": {\n \"flat\": \"cli.js\"\n }\n },\n \"node_modules/follow-redirects\": {\n \"version\": \"1.15.2\",","metadata":{"loc":{"lines":{"from":356,"to":377}}}}],["25",{"pageContent":"\"bin\": {\n \"flat\": \"cli.js\"\n }\n },\n \"node_modules/follow-redirects\": {\n \"version\": \"1.15.2\",\n \"resolved\": \"https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.2.tgz\",\n \"integrity\": \"sha512-VQLG33o04KaQ8uYi2tVNbdrWp1QWxNNea+nmIB4EVM28v0hmP17z7aG1+wAkNzVq4KeXTq3221ye5qTJP91JwA==\",\n \"funding\": [\n {\n \"type\": \"individual\",\n \"url\": \"https://github.com/sponsors/RubenVerborgh\"\n }\n ],\n \"engines\": {\n \"node\": \">=4.0\"\n },\n \"peerDependenciesMeta\": {\n \"debug\": {\n \"optional\": true\n }\n }\n },\n \"node_modules/form-data\": {\n \"version\": \"4.0.0\",\n \"resolved\": \"https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz\",\n \"integrity\": \"sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==\",\n \"dependencies\": {\n \"asynckit\": \"^0.4.0\",\n \"combined-stream\": \"^1.0.8\",","metadata":{"loc":{"lines":{"from":377,"to":406}}}}],["26",{"pageContent":"\"dependencies\": {\n \"asynckit\": \"^0.4.0\",\n \"combined-stream\": \"^1.0.8\",\n \"mime-types\": \"^2.1.12\"\n },\n \"engines\": {\n \"node\": \">= 6\"\n }\n },\n \"node_modules/is-any-array\": {\n \"version\": \"2.0.1\",\n \"resolved\": \"https://registry.npmjs.org/is-any-array/-/is-any-array-2.0.1.tgz\",\n \"integrity\": \"sha512-UtilS7hLRu++wb/WBAw9bNuP1Eg04Ivn1vERJck8zJthEvXCBEBpGR/33u/xLKWEQf95803oalHrVDptcAvFdQ==\"\n },\n \"node_modules/js-tiktoken\": {\n \"version\": \"1.0.7\",\n \"resolved\": \"https://registry.npmjs.org/js-tiktoken/-/js-tiktoken-1.0.7.tgz\",\n \"integrity\": \"sha512-biba8u/clw7iesNEWLOLwrNGoBP2lA+hTaBLs/D45pJdUPFXyxD6nhcDVtADChghv4GgyAiMKYMiRx7x6h7Biw==\",\n \"dependencies\": {\n \"base64-js\": \"^1.5.1\"\n }\n },\n \"node_modules/js-yaml\": {\n \"version\": \"4.1.0\",\n \"resolved\": \"https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz\",","metadata":{"loc":{"lines":{"from":406,"to":430}}}}],["27",{"pageContent":"\"base64-js\": \"^1.5.1\"\n }\n },\n \"node_modules/js-yaml\": {\n \"version\": \"4.1.0\",\n \"resolved\": \"https://registry.npmjs.org/js-yaml/-/js-yaml-4.1.0.tgz\",\n \"integrity\": \"sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA==\",\n \"dependencies\": {\n \"argparse\": \"^2.0.1\"\n },\n \"bin\": {\n \"js-yaml\": \"bin/js-yaml.js\"\n }\n },\n \"node_modules/jsonpointer\": {\n \"version\": \"5.0.1\",\n \"resolved\": \"https://registry.npmjs.org/jsonpointer/-/jsonpointer-5.0.1.tgz\",\n \"integrity\": \"sha512-p/nXbhSEcu3pZRdkW1OfJhpsVtW1gd4Wa1fnQc9YLiTfAjn0312eMKimbdIQzuZl9aa9xUGaRlP9T/CJE/ditQ==\",\n \"engines\": {\n \"node\": \">=0.10.0\"\n }\n },\n \"node_modules/langchain\": {\n \"version\": \"0.0.96\",\n \"resolved\": \"https://registry.npmjs.org/langchain/-/langchain-0.0.96.tgz\",","metadata":{"loc":{"lines":{"from":430,"to":454}}}}],["28",{"pageContent":"\"node\": \">=0.10.0\"\n }\n },\n \"node_modules/langchain\": {\n \"version\": \"0.0.96\",\n \"resolved\": \"https://registry.npmjs.org/langchain/-/langchain-0.0.96.tgz\",\n \"integrity\": \"sha512-m1d0IWjwZK+D19uBfgmfp5sUTxJXcjJb/YuIyn2cGNmXGqOH2r2cl0TUnhuFKxTXpMTXgTywd7MYF5U5/qkNTQ==\",\n \"dependencies\": {\n \"@anthropic-ai/sdk\": \"^0.4.3\",\n \"ansi-styles\": \"^5.0.0\",\n \"binary-extensions\": \"^2.2.0\",\n \"camelcase\": \"6\",\n \"decamelize\": \"5\",\n \"expr-eval\": \"^2.0.2\",\n \"flat\": \"^5.0.2\",\n \"js-tiktoken\": \"^1.0.7\",\n \"jsonpointer\": \"^5.0.1\",\n \"langchainplus-sdk\": \"^0.0.11\",\n \"ml-distance\": \"^4.0.0\",\n \"object-hash\": \"^3.0.0\",\n \"openai\": \"^3.3.0\",\n \"p-queue\": \"^6.6.2\",\n \"p-retry\": \"4\",\n \"uuid\": \"^9.0.0\",\n \"yaml\": \"^2.2.1\",\n \"zod\": \"^3.21.4\",\n \"zod-to-json-schema\": \"^3.20.4\"\n },\n \"engines\": {\n \"node\": \">=18\"\n },","metadata":{"loc":{"lines":{"from":454,"to":484}}}}],["29",{"pageContent":"\"uuid\": \"^9.0.0\",\n \"yaml\": \"^2.2.1\",\n \"zod\": \"^3.21.4\",\n \"zod-to-json-schema\": \"^3.20.4\"\n },\n \"engines\": {\n \"node\": \">=18\"\n },\n \"peerDependencies\": {\n \"@aws-sdk/client-dynamodb\": \"^3.310.0\",\n \"@aws-sdk/client-lambda\": \"^3.310.0\",\n \"@aws-sdk/client-s3\": \"^3.310.0\",\n \"@aws-sdk/client-sagemaker-runtime\": \"^3.310.0\",\n \"@clickhouse/client\": \"^0.0.14\",\n \"@getmetal/metal-sdk\": \"*\",\n \"@getzep/zep-js\": \"^0.3.1\",\n \"@gomomento/sdk\": \"^1.23.0\",\n \"@google-cloud/storage\": \"^6.10.1\",\n \"@huggingface/inference\": \"^1.5.1\",\n \"@opensearch-project/opensearch\": \"*\",\n \"@pinecone-database/pinecone\": \"*\",\n \"@qdrant/js-client-rest\": \"^1.2.0\",\n \"@supabase/postgrest-js\": \"^1.1.1\",\n \"@supabase/supabase-js\": \"^2.10.0\",\n \"@tensorflow-models/universal-sentence-encoder\": \"*\",\n \"@tensorflow/tfjs-converter\": \"*\",","metadata":{"loc":{"lines":{"from":484,"to":509}}}}],["30",{"pageContent":"\"@supabase/postgrest-js\": \"^1.1.1\",\n \"@supabase/supabase-js\": \"^2.10.0\",\n \"@tensorflow-models/universal-sentence-encoder\": \"*\",\n \"@tensorflow/tfjs-converter\": \"*\",\n \"@tensorflow/tfjs-core\": \"*\",\n \"@tigrisdata/vector\": \"^1.1.0\",\n \"@upstash/redis\": \"^1.20.6\",\n \"@zilliz/milvus2-sdk-node\": \">=2.2.7\",\n \"apify-client\": \"^2.7.1\",\n \"axios\": \"*\",\n \"cheerio\": \"^1.0.0-rc.12\",\n \"chromadb\": \"^1.5.2\",\n \"cohere-ai\": \"^5.0.2\",\n \"d3-dsv\": \"^2.0.0\",\n \"epub2\": \"^3.0.1\",\n \"faiss-node\": \"^0.2.1\",\n \"google-auth-library\": \"^8.8.0\",\n \"hnswlib-node\": \"^1.4.2\",\n \"html-to-text\": \"^9.0.5\",\n \"ignore\": \"^5.2.0\",\n \"mammoth\": \"*\",\n \"mongodb\": \"^5.2.0\",\n \"mysql2\": \"^3.3.3\",\n \"pdf-parse\": \"1.1.1\",\n \"peggy\": \"^3.0.2\",\n \"pg\": \"^8.11.0\",\n \"pickleparser\": \"^0.1.0\",\n \"playwright\": \"^1.32.1\",\n \"puppeteer\": \"^19.7.2\",","metadata":{"loc":{"lines":{"from":509,"to":537}}}}],["31",{"pageContent":"\"pdf-parse\": \"1.1.1\",\n \"peggy\": \"^3.0.2\",\n \"pg\": \"^8.11.0\",\n \"pickleparser\": \"^0.1.0\",\n \"playwright\": \"^1.32.1\",\n \"puppeteer\": \"^19.7.2\",\n \"redis\": \"^4.6.4\",\n \"replicate\": \"^0.9.0\",\n \"srt-parser-2\": \"^1.2.2\",\n \"typeorm\": \"^0.3.12\",\n \"typesense\": \"^1.5.3\",\n \"weaviate-ts-client\": \"^1.0.0\"\n },\n \"peerDependenciesMeta\": {\n \"@aws-sdk/client-dynamodb\": {\n \"optional\": true\n },\n \"@aws-sdk/client-lambda\": {\n \"optional\": true\n },\n \"@aws-sdk/client-s3\": {\n \"optional\": true\n },\n \"@aws-sdk/client-sagemaker-runtime\": {\n \"optional\": true\n },\n \"@clickhouse/client\": {\n \"optional\": true\n },\n \"@getmetal/metal-sdk\": {\n \"optional\": true\n },\n \"@getzep/zep-js\": {\n \"optional\": true\n },\n \"@gomomento/sdk\": {\n \"optional\": true\n },","metadata":{"loc":{"lines":{"from":537,"to":574}}}}],["32",{"pageContent":"\"optional\": true\n },\n \"@getzep/zep-js\": {\n \"optional\": true\n },\n \"@gomomento/sdk\": {\n \"optional\": true\n },\n \"@google-cloud/storage\": {\n \"optional\": true\n },\n \"@huggingface/inference\": {\n \"optional\": true\n },\n \"@opensearch-project/opensearch\": {\n \"optional\": true\n },\n \"@pinecone-database/pinecone\": {\n \"optional\": true\n },\n \"@qdrant/js-client-rest\": {\n \"optional\": true\n },\n \"@supabase/postgrest-js\": {\n \"optional\": true\n },\n \"@supabase/supabase-js\": {\n \"optional\": true\n },\n \"@tensorflow-models/universal-sentence-encoder\": {\n \"optional\": true\n },\n \"@tensorflow/tfjs-converter\": {\n \"optional\": true\n },\n \"@tensorflow/tfjs-core\": {\n \"optional\": true\n },\n \"@tigrisdata/vector\": {","metadata":{"loc":{"lines":{"from":574,"to":612}}}}],["33",{"pageContent":"},\n \"@tensorflow/tfjs-converter\": {\n \"optional\": true\n },\n \"@tensorflow/tfjs-core\": {\n \"optional\": true\n },\n \"@tigrisdata/vector\": {\n \"optional\": true\n },\n \"@upstash/redis\": {\n \"optional\": true\n },\n \"@zilliz/milvus2-sdk-node\": {\n \"optional\": true\n },\n \"apify-client\": {\n \"optional\": true\n },\n \"axios\": {\n \"optional\": true\n },\n \"cheerio\": {\n \"optional\": true\n },\n \"chromadb\": {\n \"optional\": true\n },\n \"cohere-ai\": {\n \"optional\": true\n },\n \"d3-dsv\": {\n \"optional\": true\n },\n \"epub2\": {\n \"optional\": true\n },\n \"faiss-node\": {\n \"optional\": true\n },\n \"google-auth-library\": {\n \"optional\": true\n },\n \"hnswlib-node\": {\n \"optional\": true\n },","metadata":{"loc":{"lines":{"from":612,"to":657}}}}],["34",{"pageContent":"\"faiss-node\": {\n \"optional\": true\n },\n \"google-auth-library\": {\n \"optional\": true\n },\n \"hnswlib-node\": {\n \"optional\": true\n },\n \"html-to-text\": {\n \"optional\": true\n },\n \"ignore\": {\n \"optional\": true\n },\n \"mammoth\": {\n \"optional\": true\n },\n \"mongodb\": {\n \"optional\": true\n },\n \"mysql2\": {\n \"optional\": true\n },\n \"pdf-parse\": {\n \"optional\": true\n },\n \"peggy\": {\n \"optional\": true\n },\n \"pg\": {\n \"optional\": true\n },\n \"pickleparser\": {\n \"optional\": true\n },\n \"playwright\": {\n \"optional\": true\n },\n \"puppeteer\": {\n \"optional\": true\n },\n \"redis\": {\n \"optional\": true\n },\n \"replicate\": {\n \"optional\": true\n },\n \"srt-parser-2\": {","metadata":{"loc":{"lines":{"from":657,"to":705}}}}],["35",{"pageContent":"\"optional\": true\n },\n \"redis\": {\n \"optional\": true\n },\n \"replicate\": {\n \"optional\": true\n },\n \"srt-parser-2\": {\n \"optional\": true\n },\n \"typeorm\": {\n \"optional\": true\n },\n \"typesense\": {\n \"optional\": true\n },\n \"weaviate-ts-client\": {\n \"optional\": true\n }\n }\n },\n \"node_modules/langchainplus-sdk\": {\n \"version\": \"0.0.11\",\n \"resolved\": \"https://registry.npmjs.org/langchainplus-sdk/-/langchainplus-sdk-0.0.11.tgz\",\n \"integrity\": \"sha512-bEovYVJZq88LYznDfK+ohNVd0lqQ1DMgE/A/8ZkqsiyaRuEjvIQj4PLc0VQ8htWPBljrfTu8oS7g+SGWYTZfNw==\",\n \"dependencies\": {\n \"@types/uuid\": \"^9.0.1\",\n \"commander\": \"^10.0.1\",\n \"p-queue\": \"^6.6.2\",\n \"p-retry\": \"4\",\n \"uuid\": \"^9.0.0\"\n },\n \"bin\": {\n \"langchain\": \"dist/cli/main.cjs\"\n }\n },\n \"node_modules/make-error\": {","metadata":{"loc":{"lines":{"from":705,"to":742}}}}],["36",{"pageContent":"\"p-queue\": \"^6.6.2\",\n \"p-retry\": \"4\",\n \"uuid\": \"^9.0.0\"\n },\n \"bin\": {\n \"langchain\": \"dist/cli/main.cjs\"\n }\n },\n \"node_modules/make-error\": {\n \"version\": \"1.3.6\",\n \"resolved\": \"https://registry.npmjs.org/make-error/-/make-error-1.3.6.tgz\",\n \"integrity\": \"sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw==\",\n \"dev\": true\n },\n \"node_modules/mime-db\": {\n \"version\": \"1.52.0\",\n \"resolved\": \"https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz\",\n \"integrity\": \"sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==\",\n \"engines\": {\n \"node\": \">= 0.6\"\n }\n },\n \"node_modules/mime-types\": {\n \"version\": \"2.1.35\",\n \"resolved\": \"https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz\",","metadata":{"loc":{"lines":{"from":742,"to":766}}}}],["37",{"pageContent":"\"node\": \">= 0.6\"\n }\n },\n \"node_modules/mime-types\": {\n \"version\": \"2.1.35\",\n \"resolved\": \"https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz\",\n \"integrity\": \"sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==\",\n \"dependencies\": {\n \"mime-db\": \"1.52.0\"\n },\n \"engines\": {\n \"node\": \">= 0.6\"\n }\n },\n \"node_modules/ml-array-mean\": {\n \"version\": \"1.1.6\",\n \"resolved\": \"https://registry.npmjs.org/ml-array-mean/-/ml-array-mean-1.1.6.tgz\",\n \"integrity\": \"sha512-MIdf7Zc8HznwIisyiJGRH9tRigg3Yf4FldW8DxKxpCCv/g5CafTw0RRu51nojVEOXuCQC7DRVVu5c7XXO/5joQ==\",\n \"dependencies\": {\n \"ml-array-sum\": \"^1.1.6\"\n }\n },\n \"node_modules/ml-array-sum\": {\n \"version\": \"1.1.6\",\n \"resolved\": \"https://registry.npmjs.org/ml-array-sum/-/ml-array-sum-1.1.6.tgz\",","metadata":{"loc":{"lines":{"from":766,"to":790}}}}],["38",{"pageContent":"\"ml-array-sum\": \"^1.1.6\"\n }\n },\n \"node_modules/ml-array-sum\": {\n \"version\": \"1.1.6\",\n \"resolved\": \"https://registry.npmjs.org/ml-array-sum/-/ml-array-sum-1.1.6.tgz\",\n \"integrity\": \"sha512-29mAh2GwH7ZmiRnup4UyibQZB9+ZLyMShvt4cH4eTK+cL2oEMIZFnSyB3SS8MlsTh6q/w/yh48KmqLxmovN4Dw==\",\n \"dependencies\": {\n \"is-any-array\": \"^2.0.0\"\n }\n },\n \"node_modules/ml-distance\": {\n \"version\": \"4.0.1\",\n \"resolved\": \"https://registry.npmjs.org/ml-distance/-/ml-distance-4.0.1.tgz\",\n \"integrity\": \"sha512-feZ5ziXs01zhyFUUUeZV5hwc0f5JW0Sh0ckU1koZe/wdVkJdGxcP06KNQuF0WBTj8FttQUzcvQcpcrOp/XrlEw==\",\n \"dependencies\": {\n \"ml-array-mean\": \"^1.1.6\",\n \"ml-distance-euclidean\": \"^2.0.0\",\n \"ml-tree-similarity\": \"^1.0.0\"\n }\n },\n \"node_modules/ml-distance-euclidean\": {\n \"version\": \"2.0.0\",\n \"resolved\": \"https://registry.npmjs.org/ml-distance-euclidean/-/ml-distance-euclidean-2.0.0.tgz\",","metadata":{"loc":{"lines":{"from":790,"to":813}}}}],["39",{"pageContent":"}\n },\n \"node_modules/ml-distance-euclidean\": {\n \"version\": \"2.0.0\",\n \"resolved\": \"https://registry.npmjs.org/ml-distance-euclidean/-/ml-distance-euclidean-2.0.0.tgz\",\n \"integrity\": \"sha512-yC9/2o8QF0A3m/0IXqCTXCzz2pNEzvmcE/9HFKOZGnTjatvBbsn4lWYJkxENkA4Ug2fnYl7PXQxnPi21sgMy/Q==\"\n },\n \"node_modules/ml-tree-similarity\": {\n \"version\": \"1.0.0\",\n \"resolved\": \"https://registry.npmjs.org/ml-tree-similarity/-/ml-tree-similarity-1.0.0.tgz\",\n \"integrity\": \"sha512-XJUyYqjSuUQkNQHMscr6tcjldsOoAekxADTplt40QKfwW6nd++1wHWV9AArl0Zvw/TIHgNaZZNvr8QGvE8wLRg==\",\n \"dependencies\": {\n \"binary-search\": \"^1.3.5\",\n \"num-sort\": \"^2.0.0\"\n }\n },\n \"node_modules/node-fetch\": {\n \"version\": \"2.6.11\",\n \"resolved\": \"https://registry.npmjs.org/node-fetch/-/node-fetch-2.6.11.tgz\",\n \"integrity\": \"sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==\",\n \"dependencies\": {","metadata":{"loc":{"lines":{"from":813,"to":833}}}}],["40",{"pageContent":"\"integrity\": \"sha512-4I6pdBY1EthSqDmJkiNk3JIT8cswwR9nfeW/cPdUagJYEQG7R95WRH74wpz7ma8Gh/9dI9FP+OU+0E4FvtA55w==\",\n \"dependencies\": {\n \"whatwg-url\": \"^5.0.0\"\n },\n \"engines\": {\n \"node\": \"4.x || >=6.0.0\"\n },\n \"peerDependencies\": {\n \"encoding\": \"^0.1.0\"\n },\n \"peerDependenciesMeta\": {\n \"encoding\": {\n \"optional\": true\n }\n }\n },\n \"node_modules/num-sort\": {\n \"version\": \"2.1.0\",\n \"resolved\": \"https://registry.npmjs.org/num-sort/-/num-sort-2.1.0.tgz\",\n \"integrity\": \"sha512-1MQz1Ed8z2yckoBeSfkQHHO9K1yDRxxtotKSJ9yvcTUUxSvfvzEq5GwBrjjHEpMlq/k5gvXdmJ1SbYxWtpNoVg==\",\n \"engines\": {\n \"node\": \">=8\"\n },\n \"funding\": {\n \"url\": \"https://github.com/sponsors/sindresorhus\"\n }\n },\n \"node_modules/object-hash\": {\n \"version\": \"3.0.0\",\n \"resolved\": \"https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz\",","metadata":{"loc":{"lines":{"from":833,"to":862}}}}],["41",{"pageContent":"}\n },\n \"node_modules/object-hash\": {\n \"version\": \"3.0.0\",\n \"resolved\": \"https://registry.npmjs.org/object-hash/-/object-hash-3.0.0.tgz\",\n \"integrity\": \"sha512-RSn9F68PjH9HqtltsSnqYC1XXoWe9Bju5+213R98cNGttag9q9yAOTzdbsqvIa7aNm5WffBZFpWYr2aWrklWAw==\",\n \"engines\": {\n \"node\": \">= 6\"\n }\n },\n \"node_modules/openai\": {\n \"version\": \"3.3.0\",\n \"resolved\": \"https://registry.npmjs.org/openai/-/openai-3.3.0.tgz\",\n \"integrity\": \"sha512-uqxI/Au+aPRnsaQRe8CojU0eCR7I0mBiKjD3sNMzY6DaC1ZVrc85u98mtJW6voDug8fgGN+DIZmTDxTthxb7dQ==\",\n \"dependencies\": {\n \"axios\": \"^0.26.0\",\n \"form-data\": \"^4.0.0\"\n }\n },\n \"node_modules/p-finally\": {\n \"version\": \"1.0.0\",\n \"resolved\": \"https://registry.npmjs.org/p-finally/-/p-finally-1.0.0.tgz\",\n \"integrity\": \"sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==\",\n \"engines\": {\n \"node\": \">=4\"\n }\n },","metadata":{"loc":{"lines":{"from":862,"to":888}}}}],["42",{"pageContent":"\"integrity\": \"sha512-LICb2p9CB7FS+0eR1oqWnHhp0FljGLZCWBE9aix0Uye9W8LTQPwMTYVGWQWIw9RdQiDg4+epXQODwIYJtSJaow==\",\n \"engines\": {\n \"node\": \">=4\"\n }\n },\n \"node_modules/p-queue\": {\n \"version\": \"6.6.2\",\n \"resolved\": \"https://registry.npmjs.org/p-queue/-/p-queue-6.6.2.tgz\",\n \"integrity\": \"sha512-RwFpb72c/BhQLEXIZ5K2e+AhgNVmIejGlTgiB9MzZ0e93GRvqZ7uSi0dvRF7/XIXDeNkra2fNHBxTyPDGySpjQ==\",\n \"dependencies\": {\n \"eventemitter3\": \"^4.0.4\",\n \"p-timeout\": \"^3.2.0\"\n },\n \"engines\": {\n \"node\": \">=8\"\n },\n \"funding\": {\n \"url\": \"https://github.com/sponsors/sindresorhus\"\n }\n },\n \"node_modules/p-retry\": {\n \"version\": \"4.6.2\",\n \"resolved\": \"https://registry.npmjs.org/p-retry/-/p-retry-4.6.2.tgz\",\n \"integrity\": \"sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ==\",\n \"dependencies\": {\n \"@types/retry\": \"0.12.0\",\n \"retry\": \"^0.13.1\"","metadata":{"loc":{"lines":{"from":888,"to":914}}}}],["43",{"pageContent":"\"dependencies\": {\n \"@types/retry\": \"0.12.0\",\n \"retry\": \"^0.13.1\"\n },\n \"engines\": {\n \"node\": \">=8\"\n }\n },\n \"node_modules/p-timeout\": {\n \"version\": \"3.2.0\",\n \"resolved\": \"https://registry.npmjs.org/p-timeout/-/p-timeout-3.2.0.tgz\",\n \"integrity\": \"sha512-rhIwUycgwwKcP9yTOOFK/AKsAopjjCakVqLHePO3CC6Mir1Z99xT+R63jZxAT5lFZLa2inS5h+ZS2GvR99/FBg==\",\n \"dependencies\": {\n \"p-finally\": \"^1.0.0\"\n },\n \"engines\": {\n \"node\": \">=8\"\n }\n },\n \"node_modules/retry\": {\n \"version\": \"0.13.1\",\n \"resolved\": \"https://registry.npmjs.org/retry/-/retry-0.13.1.tgz\",\n \"integrity\": \"sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg==\",\n \"engines\": {\n \"node\": \">= 4\"\n }\n },\n \"node_modules/tr46\": {\n \"version\": \"0.0.3\",\n \"resolved\": \"https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz\",","metadata":{"loc":{"lines":{"from":914,"to":943}}}}],["44",{"pageContent":"\"engines\": {\n \"node\": \">= 4\"\n }\n },\n \"node_modules/tr46\": {\n \"version\": \"0.0.3\",\n \"resolved\": \"https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz\",\n \"integrity\": \"sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==\"\n },\n \"node_modules/ts-node\": {\n \"version\": \"10.9.1\",\n \"resolved\": \"https://registry.npmjs.org/ts-node/-/ts-node-10.9.1.tgz\",\n \"integrity\": \"sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw==\",\n \"dev\": true,\n \"dependencies\": {\n \"@cspotcode/source-map-support\": \"^0.8.0\",\n \"@tsconfig/node10\": \"^1.0.7\",\n \"@tsconfig/node12\": \"^1.0.7\",\n \"@tsconfig/node14\": \"^1.0.0\",\n \"@tsconfig/node16\": \"^1.0.2\",\n \"acorn\": \"^8.4.1\",\n \"acorn-walk\": \"^8.1.1\",\n \"arg\": \"^4.1.0\",\n \"create-require\": \"^1.1.0\",\n \"diff\": \"^4.0.1\",\n \"make-error\": \"^1.1.1\",","metadata":{"loc":{"lines":{"from":943,"to":968}}}}],["45",{"pageContent":"\"acorn\": \"^8.4.1\",\n \"acorn-walk\": \"^8.1.1\",\n \"arg\": \"^4.1.0\",\n \"create-require\": \"^1.1.0\",\n \"diff\": \"^4.0.1\",\n \"make-error\": \"^1.1.1\",\n \"v8-compile-cache-lib\": \"^3.0.1\",\n \"yn\": \"3.1.1\"\n },\n \"bin\": {\n \"ts-node\": \"dist/bin.js\",\n \"ts-node-cwd\": \"dist/bin-cwd.js\",\n \"ts-node-esm\": \"dist/bin-esm.js\",\n \"ts-node-script\": \"dist/bin-script.js\",\n \"ts-node-transpile-only\": \"dist/bin-transpile.js\",\n \"ts-script\": \"dist/bin-script-deprecated.js\"\n },\n \"peerDependencies\": {\n \"@swc/core\": \">=1.2.50\",\n \"@swc/wasm\": \">=1.2.50\",\n \"@types/node\": \"*\",\n \"typescript\": \">=2.7\"\n },\n \"peerDependenciesMeta\": {\n \"@swc/core\": {\n \"optional\": true\n },\n \"@swc/wasm\": {\n \"optional\": true\n }\n }\n },\n \"node_modules/typescript\": {\n \"version\": \"5.1.3\",","metadata":{"loc":{"lines":{"from":968,"to":1001}}}}],["46",{"pageContent":"\"@swc/core\": {\n \"optional\": true\n },\n \"@swc/wasm\": {\n \"optional\": true\n }\n }\n },\n \"node_modules/typescript\": {\n \"version\": \"5.1.3\",\n \"resolved\": \"https://registry.npmjs.org/typescript/-/typescript-5.1.3.tgz\",\n \"integrity\": \"sha512-XH627E9vkeqhlZFQuL+UsyAXEnibT0kWR2FWONlr4sTjvxyJYnyefgrkyECLzM5NenmKzRAy2rR/OlYLA1HkZw==\",\n \"bin\": {\n \"tsc\": \"bin/tsc\",\n \"tsserver\": \"bin/tsserver\"\n },\n \"engines\": {\n \"node\": \">=14.17\"\n }\n },\n \"node_modules/uuid\": {\n \"version\": \"9.0.0\",\n \"resolved\": \"https://registry.npmjs.org/uuid/-/uuid-9.0.0.tgz\",\n \"integrity\": \"sha512-MXcSTerfPa4uqyzStbRoTgt5XIe3x5+42+q1sDuy3R5MDk66URdLMOZe5aPX/SQd+kuYAh0FdP/pO28IkQyTeg==\",\n \"bin\": {\n \"uuid\": \"dist/bin/uuid\"\n }\n },\n \"node_modules/v8-compile-cache-lib\": {\n \"version\": \"3.0.1\",","metadata":{"loc":{"lines":{"from":1001,"to":1030}}}}],["47",{"pageContent":"\"bin\": {\n \"uuid\": \"dist/bin/uuid\"\n }\n },\n \"node_modules/v8-compile-cache-lib\": {\n \"version\": \"3.0.1\",\n \"resolved\": \"https://registry.npmjs.org/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz\",\n \"integrity\": \"sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg==\",\n \"dev\": true\n },\n \"node_modules/webidl-conversions\": {\n \"version\": \"3.0.1\",\n \"resolved\": \"https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz\",\n \"integrity\": \"sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==\"\n },\n \"node_modules/whatwg-url\": {\n \"version\": \"5.0.0\",\n \"resolved\": \"https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz\",\n \"integrity\": \"sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==\",\n \"dependencies\": {\n \"tr46\": \"~0.0.3\",","metadata":{"loc":{"lines":{"from":1030,"to":1050}}}}],["48",{"pageContent":"\"integrity\": \"sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==\",\n \"dependencies\": {\n \"tr46\": \"~0.0.3\",\n \"webidl-conversions\": \"^3.0.0\"\n }\n },\n \"node_modules/yaml\": {\n \"version\": \"2.3.1\",\n \"resolved\": \"https://registry.npmjs.org/yaml/-/yaml-2.3.1.tgz\",\n \"integrity\": \"sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ==\",\n \"engines\": {\n \"node\": \">= 14\"\n }\n },\n \"node_modules/yn\": {\n \"version\": \"3.1.1\",\n \"resolved\": \"https://registry.npmjs.org/yn/-/yn-3.1.1.tgz\",\n \"integrity\": \"sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q==\",\n \"dev\": true,\n \"engines\": {\n \"node\": \">=6\"\n }\n },\n \"node_modules/zod\": {\n \"version\": \"3.21.4\",\n \"resolved\": \"https://registry.npmjs.org/zod/-/zod-3.21.4.tgz\",","metadata":{"loc":{"lines":{"from":1050,"to":1075}}}}],["49",{"pageContent":"\"dev\": true,\n \"engines\": {\n \"node\": \">=6\"\n }\n },\n \"node_modules/zod\": {\n \"version\": \"3.21.4\",\n \"resolved\": \"https://registry.npmjs.org/zod/-/zod-3.21.4.tgz\",\n \"integrity\": \"sha512-m46AKbrzKVzOzs/DZgVnG5H55N1sv1M8qZU3A8RIKbs3mrACDNeIOeilDymVb2HdmP8uwshOCF4uJ8uM9rCqJw==\",\n \"funding\": {\n \"url\": \"https://github.com/sponsors/colinhacks\"\n }\n },\n \"node_modules/zod-to-json-schema\": {\n \"version\": \"3.21.2\",\n \"resolved\": \"https://registry.npmjs.org/zod-to-json-schema/-/zod-to-json-schema-3.21.2.tgz\",\n \"integrity\": \"sha512-02yfKymfmIf2rM/5LYGlyw0daEel/f3MsSGMNJZWWf44ato+Y+diFugOpDtgvEUn3cYM5oDAGWW2NHeSD4mByw==\",\n \"peerDependencies\": {\n \"zod\": \"^3.21.4\"\n }\n }\n }\n}","metadata":{"loc":{"lines":{"from":1075,"to":1097}}}}],["50",{"pageContent":"{\n \"name\": \"langchain-typescript-starter\",\n \"version\": \"1.0.0\",\n \"description\": \"\",\n \"main\": \"app.ts\",\n \"type\": \"module\",\n \"license\": \"MIT\",\n \"private\": false,\n \"engines\": {\n \"node\": \">= 18.0.0\",\n \"npm\": \">= 9.0.0\"\n },\n \"repository\": {\n \"type\": \"git\",\n \"url\": \"\"\n },\n \"bugs\": \"\",\n \"keywords\": [],\n \"contributors\": [],\n \"scripts\": {\n \"build\": \"tsc\",\n \"start\": \"node ./dist/app.ts\",\n \"dev\": \"ts-node --esm ./src/app.ts\"\n },\n \"dependencies\": {\n \"@types/node\": \"^18.15.10\",\n \"dotenv\": \"^16.0.3\",\n \"js-yaml\": \"^4.1.0\",\n \"langchain\": \"^0.0.96\",\n \"typescript\": \"^5.0.2\"\n },\n \"devDependencies\": {\n \"@types/js-yaml\": \"^4.0.5\",\n \"ts-node\": \"^10.9.1\"\n }\n}","metadata":{"loc":{"lines":{"from":1,"to":36}}}}],["51",{"pageContent":"import { OpenAI } from \"langchain/llms/openai\";\nimport * as dotenv from \"dotenv\";\ndotenv.config();\nif (!process.env.OPENAI_API_KEY) {\n // if you are missing the OPENAI_API_KEY environment variable you probably need to create your .env file in the root of the project\n throw new Error(\"Missing OPENAI_API_KEY environment variable\");\n}\nexport const run = async () => {\n const model = new OpenAI({\n openAIApiKey: process.env.OPENAI_API_KEY,\n });\n const res = await model.call(\"What is the meaning of life ?\");\n console.log({ res });\n};\n\nrun();","metadata":{"loc":{"lines":{"from":1,"to":16}}}}],["52",{"pageContent":"{\n \"compilerOptions\": {\n /* Visit https://aka.ms/tsconfig to read more about this file */\n\n /* Projects */\n // \"incremental\": true, /* Save .tsbuildinfo files to allow for incremental compilation of projects. */\n // \"composite\": true, /* Enable constraints that allow a TypeScript project to be used with project references. */\n // \"tsBuildInfoFile\": \"./.tsbuildinfo\", /* Specify the path to .tsbuildinfo incremental compilation file. */\n // \"disableSourceOfProjectReferenceRedirect\": true, /* Disable preferring source files instead of declaration files when referencing composite projects. */\n // \"disableSolutionSearching\": true, /* Opt a project out of multi-project reference checking when editing. */\n // \"disableReferencedProjectLoad\": true, /* Reduce the number of projects loaded automatically by TypeScript. */","metadata":{"loc":{"lines":{"from":1,"to":11}}}}],["53",{"pageContent":"/* Language and Environment */\n \"target\": \"es2020\", /* Set the JavaScript language version for emitted JavaScript and include compatible library declarations. */\n \"lib\": [\"es2020\"], /* Specify a set of bundled library declaration files that describe the target runtime environment. */\n // \"jsx\": \"preserve\", /* Specify what JSX code is generated. */\n // \"experimentalDecorators\": true, /* Enable experimental support for legacy experimental decorators. */\n // \"emitDecoratorMetadata\": true, /* Emit design-type metadata for decorated declarations in source files. */\n // \"jsxFactory\": \"\", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */","metadata":{"loc":{"lines":{"from":13,"to":19}}}}],["54",{"pageContent":"// \"jsxFactory\": \"\", /* Specify the JSX factory function used when targeting React JSX emit, e.g. 'React.createElement' or 'h'. */\n // \"jsxFragmentFactory\": \"\", /* Specify the JSX Fragment reference used for fragments when targeting React JSX emit e.g. 'React.Fragment' or 'Fragment'. */\n // \"jsxImportSource\": \"\", /* Specify module specifier used to import the JSX factory functions when using 'jsx: react-jsx*'. */\n // \"reactNamespace\": \"\", /* Specify the object invoked for 'createElement'. This only applies when targeting 'react' JSX emit. */\n // \"noLib\": true, /* Disable including any library files, including the default lib.d.ts. */\n // \"useDefineForClassFields\": true, /* Emit ECMAScript-standard-compliant class fields. */","metadata":{"loc":{"lines":{"from":19,"to":24}}}}],["55",{"pageContent":"// \"useDefineForClassFields\": true, /* Emit ECMAScript-standard-compliant class fields. */\n // \"moduleDetection\": \"auto\", /* Control what method is used to detect module-format JS files. */","metadata":{"loc":{"lines":{"from":24,"to":25}}}}],["56",{"pageContent":"/* Modules */\n \"module\": \"nodenext\", /* Specify what module code is generated. */\n \"rootDir\": \"src\", /* Specify the root folder within your source files. */\n // \"moduleResolution\": \"node10\", /* Specify how TypeScript looks up a file from a given module specifier. */\n // \"baseUrl\": \"./\", /* Specify the base directory to resolve non-relative module names. */\n // \"paths\": {}, /* Specify a set of entries that re-map imports to additional lookup locations. */\n // \"rootDirs\": [], /* Allow multiple folders to be treated as one when resolving modules. */\n // \"typeRoots\": [], /* Specify multiple folders that act like './node_modules/@types'. */","metadata":{"loc":{"lines":{"from":27,"to":34}}}}],["57",{"pageContent":"// \"typeRoots\": [], /* Specify multiple folders that act like './node_modules/@types'. */\n // \"types\": [], /* Specify type package names to be included without being referenced in a source file. */\n // \"allowUmdGlobalAccess\": true, /* Allow accessing UMD globals from modules. */\n // \"moduleSuffixes\": [], /* List of file name suffixes to search when resolving a module. */\n // \"allowImportingTsExtensions\": true, /* Allow imports to include TypeScript file extensions. Requires '--moduleResolution bundler' and either '--noEmit' or '--emitDeclarationOnly' to be set. */\n // \"resolvePackageJsonExports\": true, /* Use the package.json 'exports' field when resolving package imports. */\n // \"resolvePackageJsonImports\": true, /* Use the package.json 'imports' field when resolving imports. */","metadata":{"loc":{"lines":{"from":34,"to":40}}}}],["58",{"pageContent":"// \"resolvePackageJsonImports\": true, /* Use the package.json 'imports' field when resolving imports. */\n // \"customConditions\": [], /* Conditions to set in addition to the resolver-specific defaults when resolving imports. */\n // \"resolveJsonModule\": true, /* Enable importing .json files. */\n // \"allowArbitraryExtensions\": true, /* Enable importing files with any extension, provided a declaration file is present. */\n // \"noResolve\": true, /* Disallow 'import's, 'require's or ''s from expanding the number of files TypeScript should add to a project. */","metadata":{"loc":{"lines":{"from":40,"to":44}}}}],["59",{"pageContent":"/* JavaScript Support */\n // \"allowJs\": true, /* Allow JavaScript files to be a part of your program. Use the 'checkJS' option to get errors from these files. */\n // \"checkJs\": true, /* Enable error reporting in type-checked JavaScript files. */\n // \"maxNodeModuleJsDepth\": 1, /* Specify the maximum folder depth used for checking JavaScript files from 'node_modules'. Only applicable with 'allowJs'. */","metadata":{"loc":{"lines":{"from":46,"to":49}}}}],["60",{"pageContent":"/* Emit */\n // \"declaration\": true, /* Generate .d.ts files from TypeScript and JavaScript files in your project. */\n // \"declarationMap\": true, /* Create sourcemaps for d.ts files. */\n // \"emitDeclarationOnly\": true, /* Only output d.ts files and not JavaScript files. */\n // \"sourceMap\": true, /* Create source map files for emitted JavaScript files. */\n // \"inlineSourceMap\": true, /* Include sourcemap files inside the emitted JavaScript. */\n // \"outFile\": \"./\", /* Specify a file that bundles all outputs into one JavaScript file. If 'declaration' is true, also designates a file that bundles all .d.ts output. */\n \"outDir\": \"./dist\", /* Specify an output folder for all emitted files. */","metadata":{"loc":{"lines":{"from":51,"to":58}}}}],["61",{"pageContent":"\"outDir\": \"./dist\", /* Specify an output folder for all emitted files. */\n // \"removeComments\": true, /* Disable emitting comments. */\n // \"noEmit\": true, /* Disable emitting files from a compilation. */\n // \"importHelpers\": true, /* Allow importing helper functions from tslib once per project, instead of including them per-file. */\n // \"importsNotUsedAsValues\": \"remove\", /* Specify emit/checking behavior for imports that are only used for types. */\n // \"downlevelIteration\": true, /* Emit more compliant, but verbose and less performant JavaScript for iteration. */\n // \"sourceRoot\": \"\", /* Specify the root path for debuggers to find the reference source code. */","metadata":{"loc":{"lines":{"from":58,"to":64}}}}],["62",{"pageContent":"// \"sourceRoot\": \"\", /* Specify the root path for debuggers to find the reference source code. */\n // \"mapRoot\": \"\", /* Specify the location where debugger should locate map files instead of generated locations. */\n // \"inlineSources\": true, /* Include source code in the sourcemaps inside the emitted JavaScript. */\n // \"emitBOM\": true, /* Emit a UTF-8 Byte Order Mark (BOM) in the beginning of output files. */\n // \"newLine\": \"crlf\", /* Set the newline character for emitting files. */\n // \"stripInternal\": true, /* Disable emitting declarations that have '@internal' in their JSDoc comments. */\n // \"noEmitHelpers\": true, /* Disable generating custom helper functions like '__extends' in compiled output. */","metadata":{"loc":{"lines":{"from":64,"to":70}}}}],["63",{"pageContent":"// \"noEmitHelpers\": true, /* Disable generating custom helper functions like '__extends' in compiled output. */\n // \"noEmitOnError\": true, /* Disable emitting files if any type checking errors are reported. */\n // \"preserveConstEnums\": true, /* Disable erasing 'const enum' declarations in generated code. */\n // \"declarationDir\": \"./\", /* Specify the output directory for generated declaration files. */\n // \"preserveValueImports\": true, /* Preserve unused imported values in the JavaScript output that would otherwise be removed. */","metadata":{"loc":{"lines":{"from":70,"to":74}}}}],["64",{"pageContent":"/* Interop Constraints */\n // \"isolatedModules\": true, /* Ensure that each file can be safely transpiled without relying on other imports. */\n // \"verbatimModuleSyntax\": true, /* Do not transform or elide any imports or exports not marked as type-only, ensuring they are written in the output file's format based on the 'module' setting. */\n // \"allowSyntheticDefaultImports\": true, /* Allow 'import x from y' when a module doesn't have a default export. */\n \"esModuleInterop\": true, /* Emit additional JavaScript to ease support for importing CommonJS modules. This enables 'allowSyntheticDefaultImports' for type compatibility. */\n // \"preserveSymlinks\": true, /* Disable resolving symlinks to their realpath. This correlates to the same flag in node. */\n \"forceConsistentCasingInFileNames\": true, /* Ensure that casing is correct in imports. */","metadata":{"loc":{"lines":{"from":76,"to":82}}}}],["65",{"pageContent":"/* Type Checking */\n \"strict\": true, /* Enable all strict type-checking options. */\n \"noImplicitAny\": true, /* Enable error reporting for expressions and declarations with an implied 'any' type. */\n // \"strictNullChecks\": true, /* When type checking, take into account 'null' and 'undefined'. */\n // \"strictFunctionTypes\": true, /* When assigning functions, check to ensure parameters and the return values are subtype-compatible. */\n // \"strictBindCallApply\": true, /* Check that the arguments for 'bind', 'call', and 'apply' methods match the original function. */\n // \"strictPropertyInitialization\": true, /* Check for class properties that are declared but not set in the constructor. */\n // \"noImplicitThis\": true, /* Enable error reporting when 'this' is given the type 'any'. */","metadata":{"loc":{"lines":{"from":84,"to":91}}}}],["66",{"pageContent":"// \"noImplicitThis\": true, /* Enable error reporting when 'this' is given the type 'any'. */\n // \"useUnknownInCatchVariables\": true, /* Default catch clause variables as 'unknown' instead of 'any'. */\n // \"alwaysStrict\": true, /* Ensure 'use strict' is always emitted. */\n // \"noUnusedLocals\": true, /* Enable error reporting when local variables aren't read. */\n // \"noUnusedParameters\": true, /* Raise an error when a function parameter isn't read. */\n // \"exactOptionalPropertyTypes\": true, /* Interpret optional property types as written, rather than adding 'undefined'. */\n // \"noImplicitReturns\": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */","metadata":{"loc":{"lines":{"from":91,"to":97}}}}],["67",{"pageContent":"// \"noImplicitReturns\": true, /* Enable error reporting for codepaths that do not explicitly return in a function. */\n // \"noFallthroughCasesInSwitch\": true, /* Enable error reporting for fallthrough cases in switch statements. */\n // \"noUncheckedIndexedAccess\": true, /* Add 'undefined' to a type when accessed using an index. */\n // \"noImplicitOverride\": true, /* Ensure overriding members in derived classes are marked with an override modifier. */\n // \"noPropertyAccessFromIndexSignature\": true, /* Enforces using indexed accessors for keys declared using an indexed type. */\n // \"allowUnusedLabels\": true, /* Disable error reporting for unused labels. */\n // \"allowUnreachableCode\": true, /* Disable error reporting for unreachable code. */","metadata":{"loc":{"lines":{"from":97,"to":103}}}}],["68",{"pageContent":"/* Completeness */\n // \"skipDefaultLibCheck\": true, /* Skip type checking .d.ts files that are included with TypeScript. */\n \"skipLibCheck\": true /* Skip type checking all .d.ts files. */\n }\n}","metadata":{"loc":{"lines":{"from":105,"to":109}}}}]] --------------------------------------------------------------------------------