langchain 0.0.101 → 0.0.102
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/agents/toolkits/aws_sfn.cjs +1 -0
- package/agents/toolkits/aws_sfn.d.ts +1 -0
- package/agents/toolkits/aws_sfn.js +1 -0
- package/agents/toolkits/sql.cjs +1 -0
- package/agents/toolkits/sql.d.ts +1 -0
- package/agents/toolkits/sql.js +1 -0
- package/chains/sql_db.cjs +1 -0
- package/chains/sql_db.d.ts +1 -0
- package/chains/sql_db.js +1 -0
- package/dist/agents/index.cjs +3 -5
- package/dist/agents/index.d.ts +2 -2
- package/dist/agents/index.js +2 -2
- package/dist/agents/{agent_toolkits → toolkits}/index.cjs +1 -4
- package/dist/agents/{agent_toolkits → toolkits}/index.d.ts +0 -1
- package/dist/agents/{agent_toolkits → toolkits}/index.js +0 -1
- package/dist/agents/toolkits/sql/index.cjs +6 -0
- package/dist/agents/toolkits/sql/index.d.ts +1 -0
- package/dist/agents/toolkits/sql/index.js +1 -0
- package/dist/chains/constitutional_ai/constitutional_principle.d.ts +1 -1
- package/dist/chains/index.cjs +1 -9
- package/dist/chains/index.d.ts +1 -3
- package/dist/chains/index.js +0 -2
- package/dist/chains/serde.d.ts +1 -7
- package/dist/chains/sql_db/index.cjs +11 -0
- package/dist/chains/sql_db/index.d.ts +2 -0
- package/dist/chains/sql_db/index.js +2 -0
- package/dist/chains/sql_db/sql_db_chain.cjs +0 -16
- package/dist/chains/sql_db/sql_db_chain.d.ts +0 -3
- package/dist/chains/sql_db/sql_db_chain.js +0 -16
- package/dist/chat_models/openai.cjs +1 -1
- package/dist/chat_models/openai.js +1 -1
- package/dist/embeddings/openai.cjs +1 -1
- package/dist/embeddings/openai.js +1 -1
- package/dist/llms/openai-chat.cjs +1 -1
- package/dist/llms/openai-chat.js +1 -1
- package/dist/llms/openai.cjs +1 -1
- package/dist/llms/openai.js +1 -1
- package/dist/load/import_constants.cjs +4 -1
- package/dist/load/import_constants.js +4 -1
- package/dist/tools/index.cjs +1 -6
- package/dist/tools/index.d.ts +0 -1
- package/dist/tools/index.js +0 -1
- package/package.json +32 -8
- package/tools/sql.cjs +1 -0
- package/tools/sql.d.ts +1 -0
- package/tools/sql.js +1 -0
- package/agents/agent_toolkits/aws_sfn.cjs +0 -1
- package/agents/agent_toolkits/aws_sfn.d.ts +0 -1
- package/agents/agent_toolkits/aws_sfn.js +0 -1
- /package/dist/agents/{agent_toolkits → toolkits}/aws_sfn.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/aws_sfn.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/aws_sfn.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/base.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/base.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/base.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/json/json.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/json/json.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/json/json.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/json/prompt.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/json/prompt.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/json/prompt.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/openapi/openapi.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/openapi/openapi.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/openapi/openapi.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/openapi/prompt.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/openapi/prompt.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/openapi/prompt.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/sql/prompt.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/sql/prompt.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/sql/prompt.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/sql/sql.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/sql/sql.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/sql/sql.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/vectorstore/prompt.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/vectorstore/prompt.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/vectorstore/prompt.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/vectorstore/vectorstore.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/vectorstore/vectorstore.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/vectorstore/vectorstore.js +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/zapier/zapier.cjs +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/zapier/zapier.d.ts +0 -0
- /package/dist/agents/{agent_toolkits → toolkits}/zapier/zapier.js +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../dist/agents/toolkits/aws_sfn.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/aws_sfn.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/aws_sfn.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../../dist/agents/toolkits/sql/index.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/sql/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../../dist/agents/toolkits/sql/index.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/chains/sql_db/index.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/sql_db/index.js'
|
package/chains/sql_db.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/chains/sql_db/index.js'
|
package/dist/agents/index.cjs
CHANGED
|
@@ -1,24 +1,22 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.OpenAIAgent = exports.StructuredChatOutputParserWithRetries = exports.StructuredChatOutputParser = exports.StructuredChatAgent = exports.AgentActionOutputParser = exports.ZeroShotAgentOutputParser = exports.ZeroShotAgent = exports.initializeAgentExecutorWithOptions = exports.initializeAgentExecutor = exports.AgentExecutor = exports.ChatConversationalAgentOutputParserWithRetries = exports.ChatConversationalAgentOutputParser = exports.ChatConversationalAgent = exports.ChatAgentOutputParser = exports.ChatAgent = exports.Toolkit = exports.createVectorStoreRouterAgent = exports.createVectorStoreAgent = exports.
|
|
3
|
+
exports.OpenAIAgent = exports.StructuredChatOutputParserWithRetries = exports.StructuredChatOutputParser = exports.StructuredChatAgent = exports.AgentActionOutputParser = exports.ZeroShotAgentOutputParser = exports.ZeroShotAgent = exports.initializeAgentExecutorWithOptions = exports.initializeAgentExecutor = exports.AgentExecutor = exports.ChatConversationalAgentOutputParserWithRetries = exports.ChatConversationalAgentOutputParser = exports.ChatConversationalAgent = exports.ChatAgentOutputParser = exports.ChatAgent = exports.Toolkit = exports.createVectorStoreRouterAgent = exports.createVectorStoreAgent = exports.createOpenApiAgent = exports.createJsonAgent = exports.ZapierToolKit = exports.VectorStoreToolkit = exports.VectorStoreRouterToolkit = exports.RequestsToolkit = exports.OpenApiToolkit = exports.JsonToolkit = exports.LLMSingleActionAgent = exports.BaseSingleActionAgent = exports.Agent = void 0;
|
|
4
4
|
var agent_js_1 = require("./agent.cjs");
|
|
5
5
|
Object.defineProperty(exports, "Agent", { enumerable: true, get: function () { return agent_js_1.Agent; } });
|
|
6
6
|
Object.defineProperty(exports, "BaseSingleActionAgent", { enumerable: true, get: function () { return agent_js_1.BaseSingleActionAgent; } });
|
|
7
7
|
Object.defineProperty(exports, "LLMSingleActionAgent", { enumerable: true, get: function () { return agent_js_1.LLMSingleActionAgent; } });
|
|
8
|
-
var index_js_1 = require("./
|
|
8
|
+
var index_js_1 = require("./toolkits/index.cjs");
|
|
9
9
|
Object.defineProperty(exports, "JsonToolkit", { enumerable: true, get: function () { return index_js_1.JsonToolkit; } });
|
|
10
10
|
Object.defineProperty(exports, "OpenApiToolkit", { enumerable: true, get: function () { return index_js_1.OpenApiToolkit; } });
|
|
11
11
|
Object.defineProperty(exports, "RequestsToolkit", { enumerable: true, get: function () { return index_js_1.RequestsToolkit; } });
|
|
12
|
-
Object.defineProperty(exports, "SqlToolkit", { enumerable: true, get: function () { return index_js_1.SqlToolkit; } });
|
|
13
12
|
Object.defineProperty(exports, "VectorStoreRouterToolkit", { enumerable: true, get: function () { return index_js_1.VectorStoreRouterToolkit; } });
|
|
14
13
|
Object.defineProperty(exports, "VectorStoreToolkit", { enumerable: true, get: function () { return index_js_1.VectorStoreToolkit; } });
|
|
15
14
|
Object.defineProperty(exports, "ZapierToolKit", { enumerable: true, get: function () { return index_js_1.ZapierToolKit; } });
|
|
16
15
|
Object.defineProperty(exports, "createJsonAgent", { enumerable: true, get: function () { return index_js_1.createJsonAgent; } });
|
|
17
16
|
Object.defineProperty(exports, "createOpenApiAgent", { enumerable: true, get: function () { return index_js_1.createOpenApiAgent; } });
|
|
18
|
-
Object.defineProperty(exports, "createSqlAgent", { enumerable: true, get: function () { return index_js_1.createSqlAgent; } });
|
|
19
17
|
Object.defineProperty(exports, "createVectorStoreAgent", { enumerable: true, get: function () { return index_js_1.createVectorStoreAgent; } });
|
|
20
18
|
Object.defineProperty(exports, "createVectorStoreRouterAgent", { enumerable: true, get: function () { return index_js_1.createVectorStoreRouterAgent; } });
|
|
21
|
-
var base_js_1 = require("./
|
|
19
|
+
var base_js_1 = require("./toolkits/base.cjs");
|
|
22
20
|
Object.defineProperty(exports, "Toolkit", { enumerable: true, get: function () { return base_js_1.Toolkit; } });
|
|
23
21
|
var index_js_2 = require("./chat/index.cjs");
|
|
24
22
|
Object.defineProperty(exports, "ChatAgent", { enumerable: true, get: function () { return index_js_2.ChatAgent; } });
|
package/dist/agents/index.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Agent, AgentArgs, BaseSingleActionAgent, LLMSingleActionAgent, LLMSingleActionAgentInput, OutputParserArgs, } from "./agent.js";
|
|
2
|
-
export { JsonToolkit, OpenApiToolkit, RequestsToolkit,
|
|
3
|
-
export { Toolkit } from "./
|
|
2
|
+
export { JsonToolkit, OpenApiToolkit, RequestsToolkit, VectorStoreInfo, VectorStoreRouterToolkit, VectorStoreToolkit, ZapierToolKit, createJsonAgent, createOpenApiAgent, createVectorStoreAgent, createVectorStoreRouterAgent, } from "./toolkits/index.js";
|
|
3
|
+
export { Toolkit } from "./toolkits/base.js";
|
|
4
4
|
export { ChatAgent, ChatAgentInput, ChatCreatePromptArgs, } from "./chat/index.js";
|
|
5
5
|
export { ChatAgentOutputParser } from "./chat/outputParser.js";
|
|
6
6
|
export { ChatConversationalAgent, ChatConversationalAgentInput, ChatConversationalCreatePromptArgs, } from "./chat_convo/index.js";
|
package/dist/agents/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
export { Agent, BaseSingleActionAgent, LLMSingleActionAgent, } from "./agent.js";
|
|
2
|
-
export { JsonToolkit, OpenApiToolkit, RequestsToolkit,
|
|
3
|
-
export { Toolkit } from "./
|
|
2
|
+
export { JsonToolkit, OpenApiToolkit, RequestsToolkit, VectorStoreRouterToolkit, VectorStoreToolkit, ZapierToolKit, createJsonAgent, createOpenApiAgent, createVectorStoreAgent, createVectorStoreRouterAgent, } from "./toolkits/index.js";
|
|
3
|
+
export { Toolkit } from "./toolkits/base.js";
|
|
4
4
|
export { ChatAgent, } from "./chat/index.js";
|
|
5
5
|
export { ChatAgentOutputParser } from "./chat/outputParser.js";
|
|
6
6
|
export { ChatConversationalAgent, } from "./chat_convo/index.js";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.ZapierToolKit = exports.createVectorStoreRouterAgent = exports.createVectorStoreAgent = exports.VectorStoreRouterToolkit = exports.VectorStoreToolkit = exports.createOpenApiAgent = exports.OpenApiToolkit = exports.RequestsToolkit = exports.
|
|
3
|
+
exports.ZapierToolKit = exports.createVectorStoreRouterAgent = exports.createVectorStoreAgent = exports.VectorStoreRouterToolkit = exports.VectorStoreToolkit = exports.createOpenApiAgent = exports.OpenApiToolkit = exports.RequestsToolkit = exports.createJsonAgent = exports.JsonToolkit = void 0;
|
|
4
4
|
var json_js_1 = require("./json/json.cjs");
|
|
5
5
|
Object.defineProperty(exports, "JsonToolkit", { enumerable: true, get: function () { return json_js_1.JsonToolkit; } });
|
|
6
6
|
Object.defineProperty(exports, "createJsonAgent", { enumerable: true, get: function () { return json_js_1.createJsonAgent; } });
|
|
7
|
-
var sql_js_1 = require("./sql/sql.cjs");
|
|
8
|
-
Object.defineProperty(exports, "SqlToolkit", { enumerable: true, get: function () { return sql_js_1.SqlToolkit; } });
|
|
9
|
-
Object.defineProperty(exports, "createSqlAgent", { enumerable: true, get: function () { return sql_js_1.createSqlAgent; } });
|
|
10
7
|
var openapi_js_1 = require("./openapi/openapi.cjs");
|
|
11
8
|
Object.defineProperty(exports, "RequestsToolkit", { enumerable: true, get: function () { return openapi_js_1.RequestsToolkit; } });
|
|
12
9
|
Object.defineProperty(exports, "OpenApiToolkit", { enumerable: true, get: function () { return openapi_js_1.OpenApiToolkit; } });
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { JsonToolkit, createJsonAgent } from "./json/json.js";
|
|
2
|
-
export { SqlToolkit, createSqlAgent, SqlCreatePromptArgs } from "./sql/sql.js";
|
|
3
2
|
export { RequestsToolkit, OpenApiToolkit, createOpenApiAgent, } from "./openapi/openapi.js";
|
|
4
3
|
export { VectorStoreInfo, VectorStoreToolkit, VectorStoreRouterToolkit, createVectorStoreAgent, createVectorStoreRouterAgent, } from "./vectorstore/vectorstore.js";
|
|
5
4
|
export { ZapierToolKit } from "./zapier/zapier.js";
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
export { JsonToolkit, createJsonAgent } from "./json/json.js";
|
|
2
|
-
export { SqlToolkit, createSqlAgent } from "./sql/sql.js";
|
|
3
2
|
export { RequestsToolkit, OpenApiToolkit, createOpenApiAgent, } from "./openapi/openapi.js";
|
|
4
3
|
export { VectorStoreToolkit, VectorStoreRouterToolkit, createVectorStoreAgent, createVectorStoreRouterAgent, } from "./vectorstore/vectorstore.js";
|
|
5
4
|
export { ZapierToolKit } from "./zapier/zapier.js";
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.createSqlAgent = exports.SqlToolkit = void 0;
|
|
4
|
+
var sql_js_1 = require("./sql.cjs");
|
|
5
|
+
Object.defineProperty(exports, "SqlToolkit", { enumerable: true, get: function () { return sql_js_1.SqlToolkit; } });
|
|
6
|
+
Object.defineProperty(exports, "createSqlAgent", { enumerable: true, get: function () { return sql_js_1.createSqlAgent; } });
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SqlCreatePromptArgs, SqlToolkit, createSqlAgent } from "./sql.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { SqlToolkit, createSqlAgent } from "./sql.js";
|
package/dist/chains/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.createOpenAPIChain = exports.createTaggingChainFromZod = exports.createTaggingChain = exports.createExtractionChainFromZod = exports.createExtractionChain = exports.TransformChain = exports.MultiRetrievalQAChain = exports.MultiPromptChain = exports.LLMRouterChain = exports.RouterChain = exports.MultiRouteChain = exports.OpenAIModerationChain = exports.PRINCIPLES = exports.ConstitutionalPrinciple = exports.ConstitutionalChain = exports.RetrievalQAChain = exports.ConversationalRetrievalQAChain = exports.
|
|
3
|
+
exports.createOpenAPIChain = exports.createTaggingChainFromZod = exports.createTaggingChain = exports.createExtractionChainFromZod = exports.createExtractionChain = exports.TransformChain = exports.MultiRetrievalQAChain = exports.MultiPromptChain = exports.LLMRouterChain = exports.RouterChain = exports.MultiRouteChain = exports.OpenAIModerationChain = exports.PRINCIPLES = exports.ConstitutionalPrinciple = exports.ConstitutionalChain = exports.RetrievalQAChain = exports.ConversationalRetrievalQAChain = exports.loadSummarizationChain = exports.loadQARefineChain = exports.loadQAMapReduceChain = exports.loadQAStuffChain = exports.loadQAChain = exports.VectorDBQAChain = exports.AnalyzeDocumentChain = exports.ChatVectorDBQAChain = exports.RefineDocumentsChain = exports.MapReduceDocumentsChain = exports.StuffDocumentsChain = exports.SimpleSequentialChain = exports.SequentialChain = exports.ConversationChain = exports.APIChain = exports.LLMChain = exports.BaseChain = void 0;
|
|
4
4
|
var base_js_1 = require("./base.cjs");
|
|
5
5
|
Object.defineProperty(exports, "BaseChain", { enumerable: true, get: function () { return base_js_1.BaseChain; } });
|
|
6
6
|
var llm_chain_js_1 = require("./llm_chain.cjs");
|
|
@@ -29,14 +29,6 @@ Object.defineProperty(exports, "loadQAMapReduceChain", { enumerable: true, get:
|
|
|
29
29
|
Object.defineProperty(exports, "loadQARefineChain", { enumerable: true, get: function () { return load_js_1.loadQARefineChain; } });
|
|
30
30
|
var load_js_2 = require("./summarization/load.cjs");
|
|
31
31
|
Object.defineProperty(exports, "loadSummarizationChain", { enumerable: true, get: function () { return load_js_2.loadSummarizationChain; } });
|
|
32
|
-
var sql_db_chain_js_1 = require("./sql_db/sql_db_chain.cjs");
|
|
33
|
-
Object.defineProperty(exports, "SqlDatabaseChain", { enumerable: true, get: function () { return sql_db_chain_js_1.SqlDatabaseChain; } });
|
|
34
|
-
var sql_db_prompt_js_1 = require("./sql_db/sql_db_prompt.cjs");
|
|
35
|
-
Object.defineProperty(exports, "DEFAULT_SQL_DATABASE_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.DEFAULT_SQL_DATABASE_PROMPT; } });
|
|
36
|
-
Object.defineProperty(exports, "SQL_POSTGRES_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_POSTGRES_PROMPT; } });
|
|
37
|
-
Object.defineProperty(exports, "SQL_SQLITE_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_SQLITE_PROMPT; } });
|
|
38
|
-
Object.defineProperty(exports, "SQL_MSSQL_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_MSSQL_PROMPT; } });
|
|
39
|
-
Object.defineProperty(exports, "SQL_MYSQL_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_MYSQL_PROMPT; } });
|
|
40
32
|
var conversational_retrieval_chain_js_1 = require("./conversational_retrieval_chain.cjs");
|
|
41
33
|
Object.defineProperty(exports, "ConversationalRetrievalQAChain", { enumerable: true, get: function () { return conversational_retrieval_chain_js_1.ConversationalRetrievalQAChain; } });
|
|
42
34
|
var retrieval_qa_js_1 = require("./retrieval_qa.cjs");
|
package/dist/chains/index.d.ts
CHANGED
|
@@ -9,13 +9,11 @@ export { AnalyzeDocumentChain, AnalyzeDocumentChainInput, } from "./analyze_docu
|
|
|
9
9
|
export { VectorDBQAChain, VectorDBQAChainInput } from "./vector_db_qa.js";
|
|
10
10
|
export { loadQAChain, QAChainParams, loadQAStuffChain, StuffQAChainParams, loadQAMapReduceChain, MapReduceQAChainParams, loadQARefineChain, RefineQAChainParams, } from "./question_answering/load.js";
|
|
11
11
|
export { loadSummarizationChain, SummarizationChainParams, } from "./summarization/load.js";
|
|
12
|
-
export { SqlDatabaseChain, SqlDatabaseChainInput, } from "./sql_db/sql_db_chain.js";
|
|
13
|
-
export { DEFAULT_SQL_DATABASE_PROMPT, SQL_POSTGRES_PROMPT, SQL_SQLITE_PROMPT, SQL_MSSQL_PROMPT, SQL_MYSQL_PROMPT, } from "./sql_db/sql_db_prompt.js";
|
|
14
12
|
export { ConversationalRetrievalQAChain, ConversationalRetrievalQAChainInput, } from "./conversational_retrieval_chain.js";
|
|
15
13
|
export { RetrievalQAChain, RetrievalQAChainInput } from "./retrieval_qa.js";
|
|
16
14
|
export { ConstitutionalChainInput, ConstitutionalChain, } from "./constitutional_ai/constitutional_chain.js";
|
|
17
15
|
export { ConstitutionalPrinciple, PRINCIPLES, } from "./constitutional_ai/constitutional_principle.js";
|
|
18
|
-
export { SerializedLLMChain, SerializedSequentialChain, SerializedSimpleSequentialChain,
|
|
16
|
+
export { SerializedLLMChain, SerializedSequentialChain, SerializedSimpleSequentialChain, SerializedAnalyzeDocumentChain, SerializedAPIChain, SerializedBaseChain, SerializedChatVectorDBQAChain, SerializedMapReduceDocumentsChain, SerializedStuffDocumentsChain, SerializedVectorDBQAChain, SerializedRefineDocumentsChain, } from "./serde.js";
|
|
19
17
|
export { OpenAIModerationChain } from "./openai_moderation.js";
|
|
20
18
|
export { MultiRouteChain, MultiRouteChainInput, RouterChain, } from "./router/multi_route.js";
|
|
21
19
|
export { LLMRouterChain, LLMRouterChainInput, RouterOutputSchema, } from "./router/llm_router.js";
|
package/dist/chains/index.js
CHANGED
|
@@ -9,8 +9,6 @@ export { AnalyzeDocumentChain, } from "./analyze_documents_chain.js";
|
|
|
9
9
|
export { VectorDBQAChain } from "./vector_db_qa.js";
|
|
10
10
|
export { loadQAChain, loadQAStuffChain, loadQAMapReduceChain, loadQARefineChain, } from "./question_answering/load.js";
|
|
11
11
|
export { loadSummarizationChain, } from "./summarization/load.js";
|
|
12
|
-
export { SqlDatabaseChain, } from "./sql_db/sql_db_chain.js";
|
|
13
|
-
export { DEFAULT_SQL_DATABASE_PROMPT, SQL_POSTGRES_PROMPT, SQL_SQLITE_PROMPT, SQL_MSSQL_PROMPT, SQL_MYSQL_PROMPT, } from "./sql_db/sql_db_prompt.js";
|
|
14
12
|
export { ConversationalRetrievalQAChain, } from "./conversational_retrieval_chain.js";
|
|
15
13
|
export { RetrievalQAChain } from "./retrieval_qa.js";
|
|
16
14
|
export { ConstitutionalChain, } from "./constitutional_ai/constitutional_chain.js";
|
package/dist/chains/serde.d.ts
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { SerializedLLM } from "../llms/base.js";
|
|
2
2
|
import type { SerializedBasePromptTemplate } from "../prompts/serde.js";
|
|
3
|
-
import type { SerializedSqlDatabase } from "../util/sql_utils.js";
|
|
4
3
|
export type SerializedLLMChain = {
|
|
5
4
|
_type: "llm_chain";
|
|
6
5
|
llm?: SerializedLLM;
|
|
@@ -16,11 +15,6 @@ export type SerializedSimpleSequentialChain = {
|
|
|
16
15
|
_type: "simple_sequential_chain";
|
|
17
16
|
chains: Array<SerializedBaseChain>;
|
|
18
17
|
};
|
|
19
|
-
export type SerializedSqlDatabaseChain = {
|
|
20
|
-
_type: "sql_database_chain";
|
|
21
|
-
sql_database: SerializedSqlDatabase;
|
|
22
|
-
llm: SerializedLLM;
|
|
23
|
-
};
|
|
24
18
|
export type SerializedVectorDBQAChain = {
|
|
25
19
|
_type: "vector_db_qa";
|
|
26
20
|
k: number;
|
|
@@ -69,4 +63,4 @@ export type SerializedConstitutionalChain = {
|
|
|
69
63
|
revisionChain?: SerializedBaseChain;
|
|
70
64
|
ConstitutionalPrinciple?: SerializedConstitutionalPrinciple[];
|
|
71
65
|
};
|
|
72
|
-
export type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain |
|
|
66
|
+
export type SerializedBaseChain = SerializedLLMChain | SerializedSequentialChain | SerializedSimpleSequentialChain | SerializedVectorDBQAChain | SerializedAPIChain | SerializedStuffDocumentsChain | SerializedChatVectorDBQAChain | SerializedMapReduceDocumentsChain | SerializedAnalyzeDocumentChain | SerializedRefineDocumentsChain | SerializedConstitutionalChain;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.SQL_MYSQL_PROMPT = exports.SQL_MSSQL_PROMPT = exports.SQL_SQLITE_PROMPT = exports.SQL_POSTGRES_PROMPT = exports.DEFAULT_SQL_DATABASE_PROMPT = exports.SqlDatabaseChain = void 0;
|
|
4
|
+
var sql_db_chain_js_1 = require("./sql_db_chain.cjs");
|
|
5
|
+
Object.defineProperty(exports, "SqlDatabaseChain", { enumerable: true, get: function () { return sql_db_chain_js_1.SqlDatabaseChain; } });
|
|
6
|
+
var sql_db_prompt_js_1 = require("./sql_db_prompt.cjs");
|
|
7
|
+
Object.defineProperty(exports, "DEFAULT_SQL_DATABASE_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.DEFAULT_SQL_DATABASE_PROMPT; } });
|
|
8
|
+
Object.defineProperty(exports, "SQL_POSTGRES_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_POSTGRES_PROMPT; } });
|
|
9
|
+
Object.defineProperty(exports, "SQL_SQLITE_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_SQLITE_PROMPT; } });
|
|
10
|
+
Object.defineProperty(exports, "SQL_MSSQL_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_MSSQL_PROMPT; } });
|
|
11
|
+
Object.defineProperty(exports, "SQL_MYSQL_PROMPT", { enumerable: true, get: function () { return sql_db_prompt_js_1.SQL_MYSQL_PROMPT; } });
|
|
@@ -4,7 +4,6 @@ exports.SqlDatabaseChain = void 0;
|
|
|
4
4
|
const sql_db_prompt_js_1 = require("./sql_db_prompt.cjs");
|
|
5
5
|
const base_js_1 = require("../base.cjs");
|
|
6
6
|
const llm_chain_js_1 = require("../llm_chain.cjs");
|
|
7
|
-
const index_js_1 = require("../../base_language/index.cjs");
|
|
8
7
|
const count_tokens_js_1 = require("../../base_language/count_tokens.cjs");
|
|
9
8
|
const sql_utils_js_1 = require("../../util/sql_utils.cjs");
|
|
10
9
|
class SqlDatabaseChain extends base_js_1.BaseChain {
|
|
@@ -132,21 +131,6 @@ class SqlDatabaseChain extends base_js_1.BaseChain {
|
|
|
132
131
|
}
|
|
133
132
|
return [this.outputKey];
|
|
134
133
|
}
|
|
135
|
-
static async deserialize(data, SqlDatabaseFromOptionsParams) {
|
|
136
|
-
const llm = await index_js_1.BaseLanguageModel.deserialize(data.llm);
|
|
137
|
-
const sqlDataBase = await SqlDatabaseFromOptionsParams(data.sql_database);
|
|
138
|
-
return new SqlDatabaseChain({
|
|
139
|
-
llm,
|
|
140
|
-
database: sqlDataBase,
|
|
141
|
-
});
|
|
142
|
-
}
|
|
143
|
-
serialize() {
|
|
144
|
-
return {
|
|
145
|
-
_type: this._chainType(),
|
|
146
|
-
llm: this.llm.serialize(),
|
|
147
|
-
sql_database: this.database.serialize(),
|
|
148
|
-
};
|
|
149
|
-
}
|
|
150
134
|
async verifyNumberOfTokens(inputText, tableinfo) {
|
|
151
135
|
// We verify it only for OpenAI for the moment
|
|
152
136
|
if (this.llm._llmType() !== "openai") {
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { BaseChain, ChainInputs } from "../base.js";
|
|
2
2
|
import type { SqlDatabase } from "../../sql_db.js";
|
|
3
3
|
import { ChainValues } from "../../schema/index.js";
|
|
4
|
-
import { SerializedSqlDatabaseChain } from "../serde.js";
|
|
5
4
|
import { BaseLanguageModel } from "../../base_language/index.js";
|
|
6
5
|
import { CallbackManagerForChainRun } from "../../callbacks/manager.js";
|
|
7
6
|
import { PromptTemplate } from "../../prompts/index.js";
|
|
@@ -29,7 +28,5 @@ export declare class SqlDatabaseChain extends BaseChain {
|
|
|
29
28
|
_chainType(): "sql_database_chain";
|
|
30
29
|
get inputKeys(): string[];
|
|
31
30
|
get outputKeys(): string[];
|
|
32
|
-
static deserialize(data: SerializedSqlDatabaseChain, SqlDatabaseFromOptionsParams: (typeof SqlDatabase)["fromOptionsParams"]): Promise<SqlDatabaseChain>;
|
|
33
|
-
serialize(): SerializedSqlDatabaseChain;
|
|
34
31
|
private verifyNumberOfTokens;
|
|
35
32
|
}
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { DEFAULT_SQL_DATABASE_PROMPT } from "./sql_db_prompt.js";
|
|
2
2
|
import { BaseChain } from "../base.js";
|
|
3
3
|
import { LLMChain } from "../llm_chain.js";
|
|
4
|
-
import { BaseLanguageModel } from "../../base_language/index.js";
|
|
5
4
|
import { calculateMaxTokens, getModelContextSize, } from "../../base_language/count_tokens.js";
|
|
6
5
|
import { getPromptTemplateFromDataSource } from "../../util/sql_utils.js";
|
|
7
6
|
export class SqlDatabaseChain extends BaseChain {
|
|
@@ -129,21 +128,6 @@ export class SqlDatabaseChain extends BaseChain {
|
|
|
129
128
|
}
|
|
130
129
|
return [this.outputKey];
|
|
131
130
|
}
|
|
132
|
-
static async deserialize(data, SqlDatabaseFromOptionsParams) {
|
|
133
|
-
const llm = await BaseLanguageModel.deserialize(data.llm);
|
|
134
|
-
const sqlDataBase = await SqlDatabaseFromOptionsParams(data.sql_database);
|
|
135
|
-
return new SqlDatabaseChain({
|
|
136
|
-
llm,
|
|
137
|
-
database: sqlDataBase,
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
serialize() {
|
|
141
|
-
return {
|
|
142
|
-
_type: this._chainType(),
|
|
143
|
-
llm: this.llm.serialize(),
|
|
144
|
-
sql_database: this.database.serialize(),
|
|
145
|
-
};
|
|
146
|
-
}
|
|
147
131
|
async verifyNumberOfTokens(inputText, tableinfo) {
|
|
148
132
|
// We verify it only for OpenAI for the moment
|
|
149
133
|
if (this.llm._llmType() !== "openai") {
|
|
@@ -216,7 +216,7 @@ class ChatOpenAI extends base_js_1.BaseChatModel {
|
|
|
216
216
|
fields?.azureOpenAIApiKey ??
|
|
217
217
|
(0, env_js_1.getEnvironmentVariable)("AZURE_OPENAI_API_KEY");
|
|
218
218
|
if (!this.azureOpenAIApiKey && !this.openAIApiKey) {
|
|
219
|
-
throw new Error("
|
|
219
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
220
220
|
}
|
|
221
221
|
this.azureOpenAIApiInstanceName =
|
|
222
222
|
fields?.azureOpenAIApiInstanceName ??
|
|
@@ -210,7 +210,7 @@ export class ChatOpenAI extends BaseChatModel {
|
|
|
210
210
|
fields?.azureOpenAIApiKey ??
|
|
211
211
|
getEnvironmentVariable("AZURE_OPENAI_API_KEY");
|
|
212
212
|
if (!this.azureOpenAIApiKey && !this.openAIApiKey) {
|
|
213
|
-
throw new Error("
|
|
213
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
214
214
|
}
|
|
215
215
|
this.azureOpenAIApiInstanceName =
|
|
216
216
|
fields?.azureOpenAIApiInstanceName ??
|
|
@@ -76,7 +76,7 @@ class OpenAIEmbeddings extends base_js_1.Embeddings {
|
|
|
76
76
|
const azureApiKey = fields?.azureOpenAIApiKey ??
|
|
77
77
|
(0, env_js_1.getEnvironmentVariable)("AZURE_OPENAI_API_KEY");
|
|
78
78
|
if (!azureApiKey && !apiKey) {
|
|
79
|
-
throw new Error("
|
|
79
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
80
80
|
}
|
|
81
81
|
const azureApiInstanceName = fields?.azureOpenAIApiInstanceName ??
|
|
82
82
|
(0, env_js_1.getEnvironmentVariable)("AZURE_OPENAI_API_INSTANCE_NAME");
|
|
@@ -70,7 +70,7 @@ export class OpenAIEmbeddings extends Embeddings {
|
|
|
70
70
|
const azureApiKey = fields?.azureOpenAIApiKey ??
|
|
71
71
|
getEnvironmentVariable("AZURE_OPENAI_API_KEY");
|
|
72
72
|
if (!azureApiKey && !apiKey) {
|
|
73
|
-
throw new Error("
|
|
73
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
74
74
|
}
|
|
75
75
|
const azureApiInstanceName = fields?.azureOpenAIApiInstanceName ??
|
|
76
76
|
getEnvironmentVariable("AZURE_OPENAI_API_INSTANCE_NAME");
|
|
@@ -187,7 +187,7 @@ class OpenAIChat extends base_js_1.LLM {
|
|
|
187
187
|
fields?.azureOpenAIApiKey ??
|
|
188
188
|
(0, env_js_1.getEnvironmentVariable)("AZURE_OPENAI_API_KEY");
|
|
189
189
|
if (!this.azureOpenAIApiKey && !this.openAIApiKey) {
|
|
190
|
-
throw new Error("
|
|
190
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
191
191
|
}
|
|
192
192
|
this.azureOpenAIApiInstanceName =
|
|
193
193
|
fields?.azureOpenAIApiInstanceName ??
|
package/dist/llms/openai-chat.js
CHANGED
|
@@ -181,7 +181,7 @@ export class OpenAIChat extends LLM {
|
|
|
181
181
|
fields?.azureOpenAIApiKey ??
|
|
182
182
|
getEnvironmentVariable("AZURE_OPENAI_API_KEY");
|
|
183
183
|
if (!this.azureOpenAIApiKey && !this.openAIApiKey) {
|
|
184
|
-
throw new Error("
|
|
184
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
185
185
|
}
|
|
186
186
|
this.azureOpenAIApiInstanceName =
|
|
187
187
|
fields?.azureOpenAIApiInstanceName ??
|
package/dist/llms/openai.cjs
CHANGED
|
@@ -198,7 +198,7 @@ class OpenAI extends base_js_1.BaseLLM {
|
|
|
198
198
|
fields?.azureOpenAIApiKey ??
|
|
199
199
|
(0, env_js_1.getEnvironmentVariable)("AZURE_OPENAI_API_KEY");
|
|
200
200
|
if (!this.azureOpenAIApiKey && !this.openAIApiKey) {
|
|
201
|
-
throw new Error("
|
|
201
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
202
202
|
}
|
|
203
203
|
this.azureOpenAIApiInstanceName =
|
|
204
204
|
fields?.azureOpenAIApiInstanceName ??
|
package/dist/llms/openai.js
CHANGED
|
@@ -192,7 +192,7 @@ export class OpenAI extends BaseLLM {
|
|
|
192
192
|
fields?.azureOpenAIApiKey ??
|
|
193
193
|
getEnvironmentVariable("AZURE_OPENAI_API_KEY");
|
|
194
194
|
if (!this.azureOpenAIApiKey && !this.openAIApiKey) {
|
|
195
|
-
throw new Error("
|
|
195
|
+
throw new Error("OpenAI or Azure OpenAI API key not found");
|
|
196
196
|
}
|
|
197
197
|
this.azureOpenAIApiInstanceName =
|
|
198
198
|
fields?.azureOpenAIApiInstanceName ??
|
|
@@ -4,14 +4,17 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
4
4
|
exports.optionalImportEntrypoints = void 0;
|
|
5
5
|
exports.optionalImportEntrypoints = [
|
|
6
6
|
"langchain/agents/load",
|
|
7
|
-
"langchain/agents/
|
|
7
|
+
"langchain/agents/toolkits/aws_sfn",
|
|
8
|
+
"langchain/agents/toolkits/sql",
|
|
8
9
|
"langchain/tools/aws_lambda",
|
|
9
10
|
"langchain/tools/aws_sfn",
|
|
10
11
|
"langchain/tools/calculator",
|
|
12
|
+
"langchain/tools/sql",
|
|
11
13
|
"langchain/tools/webbrowser",
|
|
12
14
|
"langchain/chains/load",
|
|
13
15
|
"langchain/chains/query_constructor",
|
|
14
16
|
"langchain/chains/query_constructor/ir",
|
|
17
|
+
"langchain/chains/sql_db",
|
|
15
18
|
"langchain/embeddings/cohere",
|
|
16
19
|
"langchain/embeddings/tensorflow",
|
|
17
20
|
"langchain/embeddings/hf",
|
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// Auto-generated by `scripts/create-entrypoints.js`. Do not edit manually.
|
|
2
2
|
export const optionalImportEntrypoints = [
|
|
3
3
|
"langchain/agents/load",
|
|
4
|
-
"langchain/agents/
|
|
4
|
+
"langchain/agents/toolkits/aws_sfn",
|
|
5
|
+
"langchain/agents/toolkits/sql",
|
|
5
6
|
"langchain/tools/aws_lambda",
|
|
6
7
|
"langchain/tools/aws_sfn",
|
|
7
8
|
"langchain/tools/calculator",
|
|
9
|
+
"langchain/tools/sql",
|
|
8
10
|
"langchain/tools/webbrowser",
|
|
9
11
|
"langchain/chains/load",
|
|
10
12
|
"langchain/chains/query_constructor",
|
|
11
13
|
"langchain/chains/query_constructor/ir",
|
|
14
|
+
"langchain/chains/sql_db",
|
|
12
15
|
"langchain/embeddings/cohere",
|
|
13
16
|
"langchain/embeddings/tensorflow",
|
|
14
17
|
"langchain/embeddings/hf",
|
package/dist/tools/index.cjs
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BraveSearch = exports.WriteFileTool = exports.ReadFileTool = exports.AIPluginTool = exports.GoogleCustomSearch = exports.Serper = exports.ZapierNLAWrapper = exports.ZapierNLARunAction = exports.VectorStoreQATool = exports.RequestsPostTool = exports.RequestsGetTool = exports.JsonGetValueTool = exports.JsonListKeysTool = exports.JsonSpec = exports.
|
|
3
|
+
exports.BraveSearch = exports.WriteFileTool = exports.ReadFileTool = exports.AIPluginTool = exports.GoogleCustomSearch = exports.Serper = exports.ZapierNLAWrapper = exports.ZapierNLARunAction = exports.VectorStoreQATool = exports.RequestsPostTool = exports.RequestsGetTool = exports.JsonGetValueTool = exports.JsonListKeysTool = exports.JsonSpec = exports.ChainTool = exports.IFTTTWebhook = exports.DynamicStructuredTool = exports.DynamicTool = exports.StructuredTool = exports.Tool = exports.BingSerpAPI = exports.DadJokeAPI = exports.SerpAPI = void 0;
|
|
4
4
|
var serpapi_js_1 = require("./serpapi.cjs");
|
|
5
5
|
Object.defineProperty(exports, "SerpAPI", { enumerable: true, get: function () { return serpapi_js_1.SerpAPI; } });
|
|
6
6
|
var dadjokeapi_js_1 = require("./dadjokeapi.cjs");
|
|
@@ -17,11 +17,6 @@ var IFTTTWebhook_js_1 = require("./IFTTTWebhook.cjs");
|
|
|
17
17
|
Object.defineProperty(exports, "IFTTTWebhook", { enumerable: true, get: function () { return IFTTTWebhook_js_1.IFTTTWebhook; } });
|
|
18
18
|
var chain_js_1 = require("./chain.cjs");
|
|
19
19
|
Object.defineProperty(exports, "ChainTool", { enumerable: true, get: function () { return chain_js_1.ChainTool; } });
|
|
20
|
-
var sql_js_1 = require("./sql.cjs");
|
|
21
|
-
Object.defineProperty(exports, "QuerySqlTool", { enumerable: true, get: function () { return sql_js_1.QuerySqlTool; } });
|
|
22
|
-
Object.defineProperty(exports, "InfoSqlTool", { enumerable: true, get: function () { return sql_js_1.InfoSqlTool; } });
|
|
23
|
-
Object.defineProperty(exports, "ListTablesSqlTool", { enumerable: true, get: function () { return sql_js_1.ListTablesSqlTool; } });
|
|
24
|
-
Object.defineProperty(exports, "QueryCheckerTool", { enumerable: true, get: function () { return sql_js_1.QueryCheckerTool; } });
|
|
25
20
|
var json_js_1 = require("./json.cjs");
|
|
26
21
|
Object.defineProperty(exports, "JsonSpec", { enumerable: true, get: function () { return json_js_1.JsonSpec; } });
|
|
27
22
|
Object.defineProperty(exports, "JsonListKeysTool", { enumerable: true, get: function () { return json_js_1.JsonListKeysTool; } });
|
package/dist/tools/index.d.ts
CHANGED
|
@@ -5,7 +5,6 @@ export { Tool, ToolParams, StructuredTool } from "./base.js";
|
|
|
5
5
|
export { DynamicTool, DynamicToolInput, DynamicStructuredTool, DynamicStructuredToolInput, } from "./dynamic.js";
|
|
6
6
|
export { IFTTTWebhook } from "./IFTTTWebhook.js";
|
|
7
7
|
export { ChainTool, ChainToolInput } from "./chain.js";
|
|
8
|
-
export { QuerySqlTool, InfoSqlTool, ListTablesSqlTool, QueryCheckerTool, } from "./sql.js";
|
|
9
8
|
export { JsonSpec, JsonListKeysTool, JsonGetValueTool, JsonObject, Json, } from "./json.js";
|
|
10
9
|
export { RequestsGetTool, RequestsPostTool } from "./requests.js";
|
|
11
10
|
export { VectorStoreQATool } from "./vectorstore.js";
|
package/dist/tools/index.js
CHANGED
|
@@ -5,7 +5,6 @@ export { Tool, StructuredTool } from "./base.js";
|
|
|
5
5
|
export { DynamicTool, DynamicStructuredTool, } from "./dynamic.js";
|
|
6
6
|
export { IFTTTWebhook } from "./IFTTTWebhook.js";
|
|
7
7
|
export { ChainTool } from "./chain.js";
|
|
8
|
-
export { QuerySqlTool, InfoSqlTool, ListTablesSqlTool, QueryCheckerTool, } from "./sql.js";
|
|
9
8
|
export { JsonSpec, JsonListKeysTool, JsonGetValueTool, } from "./json.js";
|
|
10
9
|
export { RequestsGetTool, RequestsPostTool } from "./requests.js";
|
|
11
10
|
export { VectorStoreQATool } from "./vectorstore.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.102",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -22,9 +22,12 @@
|
|
|
22
22
|
"agents/load.cjs",
|
|
23
23
|
"agents/load.js",
|
|
24
24
|
"agents/load.d.ts",
|
|
25
|
-
"agents/
|
|
26
|
-
"agents/
|
|
27
|
-
"agents/
|
|
25
|
+
"agents/toolkits/aws_sfn.cjs",
|
|
26
|
+
"agents/toolkits/aws_sfn.js",
|
|
27
|
+
"agents/toolkits/aws_sfn.d.ts",
|
|
28
|
+
"agents/toolkits/sql.cjs",
|
|
29
|
+
"agents/toolkits/sql.js",
|
|
30
|
+
"agents/toolkits/sql.d.ts",
|
|
28
31
|
"base_language.cjs",
|
|
29
32
|
"base_language.js",
|
|
30
33
|
"base_language.d.ts",
|
|
@@ -40,6 +43,9 @@
|
|
|
40
43
|
"tools/calculator.cjs",
|
|
41
44
|
"tools/calculator.js",
|
|
42
45
|
"tools/calculator.d.ts",
|
|
46
|
+
"tools/sql.cjs",
|
|
47
|
+
"tools/sql.js",
|
|
48
|
+
"tools/sql.d.ts",
|
|
43
49
|
"tools/webbrowser.cjs",
|
|
44
50
|
"tools/webbrowser.js",
|
|
45
51
|
"tools/webbrowser.d.ts",
|
|
@@ -55,6 +61,9 @@
|
|
|
55
61
|
"chains/query_constructor/ir.cjs",
|
|
56
62
|
"chains/query_constructor/ir.js",
|
|
57
63
|
"chains/query_constructor/ir.d.ts",
|
|
64
|
+
"chains/sql_db.cjs",
|
|
65
|
+
"chains/sql_db.js",
|
|
66
|
+
"chains/sql_db.d.ts",
|
|
58
67
|
"embeddings.cjs",
|
|
59
68
|
"embeddings.js",
|
|
60
69
|
"embeddings.d.ts",
|
|
@@ -827,10 +836,15 @@
|
|
|
827
836
|
"import": "./agents/load.js",
|
|
828
837
|
"require": "./agents/load.cjs"
|
|
829
838
|
},
|
|
830
|
-
"./agents/
|
|
831
|
-
"types": "./agents/
|
|
832
|
-
"import": "./agents/
|
|
833
|
-
"require": "./agents/
|
|
839
|
+
"./agents/toolkits/aws_sfn": {
|
|
840
|
+
"types": "./agents/toolkits/aws_sfn.d.ts",
|
|
841
|
+
"import": "./agents/toolkits/aws_sfn.js",
|
|
842
|
+
"require": "./agents/toolkits/aws_sfn.cjs"
|
|
843
|
+
},
|
|
844
|
+
"./agents/toolkits/sql": {
|
|
845
|
+
"types": "./agents/toolkits/sql.d.ts",
|
|
846
|
+
"import": "./agents/toolkits/sql.js",
|
|
847
|
+
"require": "./agents/toolkits/sql.cjs"
|
|
834
848
|
},
|
|
835
849
|
"./base_language": {
|
|
836
850
|
"types": "./base_language.d.ts",
|
|
@@ -857,6 +871,11 @@
|
|
|
857
871
|
"import": "./tools/calculator.js",
|
|
858
872
|
"require": "./tools/calculator.cjs"
|
|
859
873
|
},
|
|
874
|
+
"./tools/sql": {
|
|
875
|
+
"types": "./tools/sql.d.ts",
|
|
876
|
+
"import": "./tools/sql.js",
|
|
877
|
+
"require": "./tools/sql.cjs"
|
|
878
|
+
},
|
|
860
879
|
"./tools/webbrowser": {
|
|
861
880
|
"types": "./tools/webbrowser.d.ts",
|
|
862
881
|
"import": "./tools/webbrowser.js",
|
|
@@ -882,6 +901,11 @@
|
|
|
882
901
|
"import": "./chains/query_constructor/ir.js",
|
|
883
902
|
"require": "./chains/query_constructor/ir.cjs"
|
|
884
903
|
},
|
|
904
|
+
"./chains/sql_db": {
|
|
905
|
+
"types": "./chains/sql_db.d.ts",
|
|
906
|
+
"import": "./chains/sql_db.js",
|
|
907
|
+
"require": "./chains/sql_db.cjs"
|
|
908
|
+
},
|
|
885
909
|
"./embeddings": {
|
|
886
910
|
"node": {
|
|
887
911
|
"types": "./embeddings.d.ts",
|
package/tools/sql.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/tools/sql.cjs');
|
package/tools/sql.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/tools/sql.js'
|
package/tools/sql.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/tools/sql.js'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
module.exports = require('../../dist/agents/agent_toolkits/aws_sfn.cjs');
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../dist/agents/agent_toolkits/aws_sfn.js'
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from '../../dist/agents/agent_toolkits/aws_sfn.js'
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|