langchain 0.0.171 → 0.0.173
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/format_scratchpad/log.cjs +1 -0
- package/agents/format_scratchpad/log.d.ts +1 -0
- package/agents/format_scratchpad/log.js +1 -0
- package/agents/format_scratchpad/log_to_message.cjs +1 -0
- package/agents/format_scratchpad/log_to_message.d.ts +1 -0
- package/agents/format_scratchpad/log_to_message.js +1 -0
- package/agents/format_scratchpad/xml.cjs +1 -0
- package/agents/format_scratchpad/xml.d.ts +1 -0
- package/agents/format_scratchpad/xml.js +1 -0
- package/agents/format_scratchpad.cjs +1 -1
- package/agents/format_scratchpad.d.ts +1 -1
- package/agents/format_scratchpad.js +1 -1
- package/agents/openai/output_parser.cjs +1 -0
- package/agents/openai/output_parser.d.ts +1 -0
- package/agents/openai/output_parser.js +1 -0
- package/agents/react/output_parser.cjs +1 -0
- package/agents/react/output_parser.d.ts +1 -0
- package/agents/react/output_parser.js +1 -0
- package/agents/xml/output_parser.cjs +1 -0
- package/agents/xml/output_parser.d.ts +1 -0
- package/agents/xml/output_parser.js +1 -0
- package/dist/agents/format_scratchpad/log.cjs +16 -0
- package/dist/agents/format_scratchpad/log.d.ts +9 -0
- package/dist/agents/format_scratchpad/log.js +12 -0
- package/dist/agents/format_scratchpad/log_to_message.cjs +22 -0
- package/dist/agents/format_scratchpad/log_to_message.d.ts +2 -0
- package/dist/agents/format_scratchpad/log_to_message.js +18 -0
- package/dist/agents/{format_scratchpad.cjs → format_scratchpad/openai_functions.cjs} +3 -3
- package/dist/agents/{format_scratchpad.d.ts → format_scratchpad/openai_functions.d.ts} +1 -1
- package/dist/agents/{format_scratchpad.js → format_scratchpad/openai_functions.js} +3 -3
- package/dist/agents/format_scratchpad/xml.cjs +12 -0
- package/dist/agents/format_scratchpad/xml.d.ts +2 -0
- package/dist/agents/format_scratchpad/xml.js +8 -0
- package/dist/agents/index.cjs +3 -1
- package/dist/agents/index.d.ts +1 -0
- package/dist/agents/index.js +1 -0
- package/dist/agents/openai/index.cjs +8 -31
- package/dist/agents/openai/index.d.ts +2 -0
- package/dist/agents/openai/index.js +8 -31
- package/dist/agents/openai/output_parser.cjs +65 -0
- package/dist/agents/openai/output_parser.d.ts +22 -0
- package/dist/agents/openai/output_parser.js +61 -0
- package/dist/agents/react/output_parser.cjs +96 -0
- package/dist/agents/react/output_parser.d.ts +47 -0
- package/dist/agents/react/output_parser.js +92 -0
- package/dist/agents/react/prompt.cjs +13 -0
- package/dist/agents/react/prompt.d.ts +1 -0
- package/dist/agents/react/prompt.js +10 -0
- package/dist/agents/toolkits/conversational_retrieval/tool.cjs +2 -1
- package/dist/agents/toolkits/conversational_retrieval/tool.js +2 -1
- package/dist/agents/xml/index.cjs +9 -25
- package/dist/agents/xml/index.d.ts +2 -7
- package/dist/agents/xml/index.js +8 -23
- package/dist/agents/xml/output_parser.cjs +44 -0
- package/dist/agents/xml/output_parser.d.ts +14 -0
- package/dist/agents/xml/output_parser.js +40 -0
- package/dist/document_loaders/fs/pdf.cjs +2 -1
- package/dist/document_loaders/fs/pdf.js +2 -1
- package/dist/document_loaders/web/pdf.cjs +2 -1
- package/dist/document_loaders/web/pdf.js +2 -1
- package/dist/embeddings/openai.cjs +11 -0
- package/dist/embeddings/openai.d.ts +2 -0
- package/dist/embeddings/openai.js +11 -0
- package/dist/load/import_constants.cjs +1 -0
- package/dist/load/import_constants.js +1 -0
- package/dist/load/import_map.cjs +11 -3
- package/dist/load/import_map.d.ts +9 -1
- package/dist/load/import_map.js +9 -1
- package/dist/memory/vector_store.cjs +2 -1
- package/dist/memory/vector_store.js +2 -1
- package/dist/storage/file_system.cjs +167 -0
- package/dist/storage/file_system.d.ts +60 -0
- package/dist/storage/file_system.js +140 -0
- package/dist/tools/index.cjs +3 -1
- package/dist/tools/index.d.ts +1 -0
- package/dist/tools/index.js +1 -0
- package/dist/tools/render.cjs +36 -0
- package/dist/tools/render.d.ts +25 -0
- package/dist/tools/render.js +31 -0
- package/dist/tools/serpapi.d.ts +2 -2
- package/dist/tools/webbrowser.cjs +2 -1
- package/dist/tools/webbrowser.js +2 -1
- package/dist/util/document.cjs +12 -0
- package/dist/util/document.d.ts +9 -0
- package/dist/util/document.js +8 -0
- package/dist/vectorstores/analyticdb.cjs +7 -3
- package/dist/vectorstores/analyticdb.d.ts +1 -1
- package/dist/vectorstores/analyticdb.js +7 -3
- package/dist/vectorstores/cassandra.cjs +130 -35
- package/dist/vectorstores/cassandra.d.ts +21 -10
- package/dist/vectorstores/cassandra.js +130 -35
- package/dist/vectorstores/pgvector.cjs +13 -7
- package/dist/vectorstores/pgvector.d.ts +7 -0
- package/dist/vectorstores/pgvector.js +13 -7
- package/dist/vectorstores/qdrant.cjs +19 -11
- package/dist/vectorstores/qdrant.d.ts +1 -1
- package/dist/vectorstores/qdrant.js +19 -11
- package/dist/vectorstores/redis.cjs +4 -1
- package/dist/vectorstores/redis.d.ts +1 -1
- package/dist/vectorstores/redis.js +4 -1
- package/package.json +75 -3
- package/storage/file_system.cjs +1 -0
- package/storage/file_system.d.ts +1 -0
- package/storage/file_system.js +1 -0
- package/tools/render.cjs +1 -0
- package/tools/render.d.ts +1 -0
- package/tools/render.js +1 -0
- package/util/document.cjs +1 -0
- package/util/document.d.ts +1 -0
- package/util/document.js +1 -0
|
@@ -19,6 +19,12 @@ export interface PGVectorStoreArgs {
|
|
|
19
19
|
};
|
|
20
20
|
filter?: Metadata;
|
|
21
21
|
verbose?: boolean;
|
|
22
|
+
/**
|
|
23
|
+
* The amount of documents to chunk by when
|
|
24
|
+
* adding vectors.
|
|
25
|
+
* @default 500
|
|
26
|
+
*/
|
|
27
|
+
chunkSize?: number;
|
|
22
28
|
}
|
|
23
29
|
/**
|
|
24
30
|
* Class that provides an interface to a Postgres vector database. It
|
|
@@ -37,6 +43,7 @@ export declare class PGVectorStore extends VectorStore {
|
|
|
37
43
|
_verbose?: boolean;
|
|
38
44
|
pool: Pool;
|
|
39
45
|
client?: PoolClient;
|
|
46
|
+
chunkSize: number;
|
|
40
47
|
_vectorstoreType(): string;
|
|
41
48
|
private constructor();
|
|
42
49
|
/**
|
|
@@ -68,6 +68,12 @@ export class PGVectorStore extends VectorStore {
|
|
|
68
68
|
writable: true,
|
|
69
69
|
value: void 0
|
|
70
70
|
});
|
|
71
|
+
Object.defineProperty(this, "chunkSize", {
|
|
72
|
+
enumerable: true,
|
|
73
|
+
configurable: true,
|
|
74
|
+
writable: true,
|
|
75
|
+
value: 500
|
|
76
|
+
});
|
|
71
77
|
this.tableName = config.tableName;
|
|
72
78
|
this.filter = config.filter;
|
|
73
79
|
this.vectorColumnName = config.columns?.vectorColumnName ?? "embedding";
|
|
@@ -76,6 +82,7 @@ export class PGVectorStore extends VectorStore {
|
|
|
76
82
|
this.metadataColumnName = config.columns?.metadataColumnName ?? "metadata";
|
|
77
83
|
const pool = new pg.Pool(config.postgresConnectionOptions);
|
|
78
84
|
this.pool = pool;
|
|
85
|
+
this.chunkSize = config.chunkSize ?? 500;
|
|
79
86
|
this._verbose =
|
|
80
87
|
getEnvironmentVariable("LANGCHAIN_VERBOSE") === "true" ??
|
|
81
88
|
!!config.verbose;
|
|
@@ -126,9 +133,9 @@ export class PGVectorStore extends VectorStore {
|
|
|
126
133
|
* @param chunkIndex - The starting index for generating query placeholders based on chunk positioning.
|
|
127
134
|
* @returns The complete SQL INSERT INTO query string.
|
|
128
135
|
*/
|
|
129
|
-
buildInsertQuery(rows
|
|
136
|
+
buildInsertQuery(rows) {
|
|
130
137
|
const valuesPlaceholders = rows
|
|
131
|
-
.map((_, j) => this.generatePlaceholderForRowAt(
|
|
138
|
+
.map((_, j) => this.generatePlaceholderForRowAt(j))
|
|
132
139
|
.join(", ");
|
|
133
140
|
const text = `
|
|
134
141
|
INSERT INTO ${this.tableName}(
|
|
@@ -157,10 +164,9 @@ export class PGVectorStore extends VectorStore {
|
|
|
157
164
|
documents[idx].metadata,
|
|
158
165
|
];
|
|
159
166
|
});
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
const
|
|
163
|
-
const insertQuery = this.buildInsertQuery(chunk, i);
|
|
167
|
+
for (let i = 0; i < rows.length; i += this.chunkSize) {
|
|
168
|
+
const chunk = rows.slice(i, i + this.chunkSize);
|
|
169
|
+
const insertQuery = this.buildInsertQuery(chunk);
|
|
164
170
|
const flatValues = chunk.flat();
|
|
165
171
|
try {
|
|
166
172
|
await this.pool.query(insertQuery, flatValues);
|
|
@@ -264,7 +270,7 @@ export class PGVectorStore extends VectorStore {
|
|
|
264
270
|
* @returns Promise that resolves when all clients are closed and the pool is terminated.
|
|
265
271
|
*/
|
|
266
272
|
async end() {
|
|
267
|
-
|
|
273
|
+
this.client?.release();
|
|
268
274
|
return this.pool.end();
|
|
269
275
|
}
|
|
270
276
|
}
|
|
@@ -54,12 +54,7 @@ class QdrantVectorStore extends base_js_1.VectorStore {
|
|
|
54
54
|
apiKey,
|
|
55
55
|
});
|
|
56
56
|
this.collectionName = args.collectionName ?? "documents";
|
|
57
|
-
this.collectionConfig = args.collectionConfig
|
|
58
|
-
vectors: {
|
|
59
|
-
size: 1536,
|
|
60
|
-
distance: "Cosine",
|
|
61
|
-
},
|
|
62
|
-
};
|
|
57
|
+
this.collectionConfig = args.collectionConfig;
|
|
63
58
|
}
|
|
64
59
|
/**
|
|
65
60
|
* Method to add documents to the Qdrant database. It generates vectors
|
|
@@ -93,10 +88,17 @@ class QdrantVectorStore extends base_js_1.VectorStore {
|
|
|
93
88
|
metadata: documents[idx].metadata,
|
|
94
89
|
},
|
|
95
90
|
}));
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
91
|
+
try {
|
|
92
|
+
await this.client.upsert(this.collectionName, {
|
|
93
|
+
wait: true,
|
|
94
|
+
points,
|
|
95
|
+
});
|
|
96
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
97
|
+
}
|
|
98
|
+
catch (e) {
|
|
99
|
+
const error = new Error(`${e?.status ?? "Undefined error code"} ${e?.message}: ${e?.data?.status?.error}`);
|
|
100
|
+
throw error;
|
|
101
|
+
}
|
|
100
102
|
}
|
|
101
103
|
/**
|
|
102
104
|
* Method to search for vectors in the Qdrant database that are similar to
|
|
@@ -135,7 +137,13 @@ class QdrantVectorStore extends base_js_1.VectorStore {
|
|
|
135
137
|
const response = await this.client.getCollections();
|
|
136
138
|
const collectionNames = response.collections.map((collection) => collection.name);
|
|
137
139
|
if (!collectionNames.includes(this.collectionName)) {
|
|
138
|
-
|
|
140
|
+
const collectionConfig = this.collectionConfig ?? {
|
|
141
|
+
vectors: {
|
|
142
|
+
size: (await this.embeddings.embedQuery("test")).length,
|
|
143
|
+
distance: "Cosine",
|
|
144
|
+
},
|
|
145
|
+
};
|
|
146
|
+
await this.client.createCollection(this.collectionName, collectionConfig);
|
|
139
147
|
}
|
|
140
148
|
}
|
|
141
149
|
/**
|
|
@@ -28,7 +28,7 @@ export declare class QdrantVectorStore extends VectorStore {
|
|
|
28
28
|
};
|
|
29
29
|
client: QdrantClient;
|
|
30
30
|
collectionName: string;
|
|
31
|
-
collectionConfig
|
|
31
|
+
collectionConfig?: QdrantSchemas["CreateCollection"];
|
|
32
32
|
_vectorstoreType(): string;
|
|
33
33
|
constructor(embeddings: Embeddings, args: QdrantLibArgs);
|
|
34
34
|
/**
|
|
@@ -51,12 +51,7 @@ export class QdrantVectorStore extends VectorStore {
|
|
|
51
51
|
apiKey,
|
|
52
52
|
});
|
|
53
53
|
this.collectionName = args.collectionName ?? "documents";
|
|
54
|
-
this.collectionConfig = args.collectionConfig
|
|
55
|
-
vectors: {
|
|
56
|
-
size: 1536,
|
|
57
|
-
distance: "Cosine",
|
|
58
|
-
},
|
|
59
|
-
};
|
|
54
|
+
this.collectionConfig = args.collectionConfig;
|
|
60
55
|
}
|
|
61
56
|
/**
|
|
62
57
|
* Method to add documents to the Qdrant database. It generates vectors
|
|
@@ -90,10 +85,17 @@ export class QdrantVectorStore extends VectorStore {
|
|
|
90
85
|
metadata: documents[idx].metadata,
|
|
91
86
|
},
|
|
92
87
|
}));
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
88
|
+
try {
|
|
89
|
+
await this.client.upsert(this.collectionName, {
|
|
90
|
+
wait: true,
|
|
91
|
+
points,
|
|
92
|
+
});
|
|
93
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
94
|
+
}
|
|
95
|
+
catch (e) {
|
|
96
|
+
const error = new Error(`${e?.status ?? "Undefined error code"} ${e?.message}: ${e?.data?.status?.error}`);
|
|
97
|
+
throw error;
|
|
98
|
+
}
|
|
97
99
|
}
|
|
98
100
|
/**
|
|
99
101
|
* Method to search for vectors in the Qdrant database that are similar to
|
|
@@ -132,7 +134,13 @@ export class QdrantVectorStore extends VectorStore {
|
|
|
132
134
|
const response = await this.client.getCollections();
|
|
133
135
|
const collectionNames = response.collections.map((collection) => collection.name);
|
|
134
136
|
if (!collectionNames.includes(this.collectionName)) {
|
|
135
|
-
|
|
137
|
+
const collectionConfig = this.collectionConfig ?? {
|
|
138
|
+
vectors: {
|
|
139
|
+
size: (await this.embeddings.embedQuery("test")).length,
|
|
140
|
+
distance: "Cosine",
|
|
141
|
+
},
|
|
142
|
+
};
|
|
143
|
+
await this.client.createCollection(this.collectionName, collectionConfig);
|
|
136
144
|
}
|
|
137
145
|
}
|
|
138
146
|
/**
|
|
@@ -108,6 +108,9 @@ class RedisVectorStore extends base_js_1.VectorStore {
|
|
|
108
108
|
* @returns A promise that resolves when the vectors have been added.
|
|
109
109
|
*/
|
|
110
110
|
async addVectors(vectors, documents, { keys, batchSize = 1000 } = {}) {
|
|
111
|
+
if (!vectors.length || !vectors[0].length) {
|
|
112
|
+
throw new Error("No vectors provided");
|
|
113
|
+
}
|
|
111
114
|
// check if the index exists and create it if it doesn't
|
|
112
115
|
await this.createIndex(vectors[0].length);
|
|
113
116
|
const info = await this.redisClient.ft.info(this.indexName);
|
|
@@ -222,7 +225,7 @@ class RedisVectorStore extends base_js_1.VectorStore {
|
|
|
222
225
|
/**
|
|
223
226
|
* Method for creating an index in the RedisVectorStore. If the index
|
|
224
227
|
* already exists, it does nothing.
|
|
225
|
-
* @param dimensions The dimensions of the index
|
|
228
|
+
* @param dimensions The dimensions of the index
|
|
226
229
|
* @returns A promise that resolves when the index has been created.
|
|
227
230
|
*/
|
|
228
231
|
async createIndex(dimensions = 1536) {
|
|
@@ -137,7 +137,7 @@ export declare class RedisVectorStore extends VectorStore {
|
|
|
137
137
|
/**
|
|
138
138
|
* Method for creating an index in the RedisVectorStore. If the index
|
|
139
139
|
* already exists, it does nothing.
|
|
140
|
-
* @param dimensions The dimensions of the index
|
|
140
|
+
* @param dimensions The dimensions of the index
|
|
141
141
|
* @returns A promise that resolves when the index has been created.
|
|
142
142
|
*/
|
|
143
143
|
createIndex(dimensions?: number): Promise<void>;
|
|
@@ -105,6 +105,9 @@ export class RedisVectorStore extends VectorStore {
|
|
|
105
105
|
* @returns A promise that resolves when the vectors have been added.
|
|
106
106
|
*/
|
|
107
107
|
async addVectors(vectors, documents, { keys, batchSize = 1000 } = {}) {
|
|
108
|
+
if (!vectors.length || !vectors[0].length) {
|
|
109
|
+
throw new Error("No vectors provided");
|
|
110
|
+
}
|
|
108
111
|
// check if the index exists and create it if it doesn't
|
|
109
112
|
await this.createIndex(vectors[0].length);
|
|
110
113
|
const info = await this.redisClient.ft.info(this.indexName);
|
|
@@ -219,7 +222,7 @@ export class RedisVectorStore extends VectorStore {
|
|
|
219
222
|
/**
|
|
220
223
|
* Method for creating an index in the RedisVectorStore. If the index
|
|
221
224
|
* already exists, it does nothing.
|
|
222
|
-
* @param dimensions The dimensions of the index
|
|
225
|
+
* @param dimensions The dimensions of the index
|
|
223
226
|
* @returns A promise that resolves when the index has been created.
|
|
224
227
|
*/
|
|
225
228
|
async createIndex(dimensions = 1536) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "langchain",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.173",
|
|
4
4
|
"description": "Typescript bindings for langchain",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -34,6 +34,24 @@
|
|
|
34
34
|
"agents/format_scratchpad.cjs",
|
|
35
35
|
"agents/format_scratchpad.js",
|
|
36
36
|
"agents/format_scratchpad.d.ts",
|
|
37
|
+
"agents/format_scratchpad/log.cjs",
|
|
38
|
+
"agents/format_scratchpad/log.js",
|
|
39
|
+
"agents/format_scratchpad/log.d.ts",
|
|
40
|
+
"agents/format_scratchpad/xml.cjs",
|
|
41
|
+
"agents/format_scratchpad/xml.js",
|
|
42
|
+
"agents/format_scratchpad/xml.d.ts",
|
|
43
|
+
"agents/format_scratchpad/log_to_message.cjs",
|
|
44
|
+
"agents/format_scratchpad/log_to_message.js",
|
|
45
|
+
"agents/format_scratchpad/log_to_message.d.ts",
|
|
46
|
+
"agents/react/output_parser.cjs",
|
|
47
|
+
"agents/react/output_parser.js",
|
|
48
|
+
"agents/react/output_parser.d.ts",
|
|
49
|
+
"agents/xml/output_parser.cjs",
|
|
50
|
+
"agents/xml/output_parser.js",
|
|
51
|
+
"agents/xml/output_parser.d.ts",
|
|
52
|
+
"agents/openai/output_parser.cjs",
|
|
53
|
+
"agents/openai/output_parser.js",
|
|
54
|
+
"agents/openai/output_parser.d.ts",
|
|
37
55
|
"base_language.cjs",
|
|
38
56
|
"base_language.js",
|
|
39
57
|
"base_language.d.ts",
|
|
@@ -49,6 +67,9 @@
|
|
|
49
67
|
"tools/calculator.cjs",
|
|
50
68
|
"tools/calculator.js",
|
|
51
69
|
"tools/calculator.d.ts",
|
|
70
|
+
"tools/render.cjs",
|
|
71
|
+
"tools/render.js",
|
|
72
|
+
"tools/render.d.ts",
|
|
52
73
|
"tools/sql.cjs",
|
|
53
74
|
"tools/sql.js",
|
|
54
75
|
"tools/sql.d.ts",
|
|
@@ -673,12 +694,18 @@
|
|
|
673
694
|
"storage/upstash_redis.cjs",
|
|
674
695
|
"storage/upstash_redis.js",
|
|
675
696
|
"storage/upstash_redis.d.ts",
|
|
697
|
+
"storage/file_system.cjs",
|
|
698
|
+
"storage/file_system.js",
|
|
699
|
+
"storage/file_system.d.ts",
|
|
676
700
|
"graphs/neo4j_graph.cjs",
|
|
677
701
|
"graphs/neo4j_graph.js",
|
|
678
702
|
"graphs/neo4j_graph.d.ts",
|
|
679
703
|
"hub.cjs",
|
|
680
704
|
"hub.js",
|
|
681
705
|
"hub.d.ts",
|
|
706
|
+
"util/document.cjs",
|
|
707
|
+
"util/document.js",
|
|
708
|
+
"util/document.d.ts",
|
|
682
709
|
"util/math.cjs",
|
|
683
710
|
"util/math.js",
|
|
684
711
|
"util/math.d.ts",
|
|
@@ -819,7 +846,7 @@
|
|
|
819
846
|
"apify-client": "^2.7.1",
|
|
820
847
|
"assemblyai": "^2.0.2",
|
|
821
848
|
"axios": "^0.26.0",
|
|
822
|
-
"cassandra-driver": "^4.
|
|
849
|
+
"cassandra-driver": "^4.7.2",
|
|
823
850
|
"cheerio": "^1.0.0-rc.12",
|
|
824
851
|
"chromadb": "^1.5.3",
|
|
825
852
|
"closevector-common": "0.1.0-alpha.1",
|
|
@@ -935,7 +962,7 @@
|
|
|
935
962
|
"apify-client": "^2.7.1",
|
|
936
963
|
"assemblyai": "^2.0.2",
|
|
937
964
|
"axios": "*",
|
|
938
|
-
"cassandra-driver": "^4.
|
|
965
|
+
"cassandra-driver": "^4.7.2",
|
|
939
966
|
"cheerio": "^1.0.0-rc.12",
|
|
940
967
|
"chromadb": "*",
|
|
941
968
|
"closevector-common": "0.1.0-alpha.1",
|
|
@@ -1353,6 +1380,36 @@
|
|
|
1353
1380
|
"import": "./agents/format_scratchpad.js",
|
|
1354
1381
|
"require": "./agents/format_scratchpad.cjs"
|
|
1355
1382
|
},
|
|
1383
|
+
"./agents/format_scratchpad/log": {
|
|
1384
|
+
"types": "./agents/format_scratchpad/log.d.ts",
|
|
1385
|
+
"import": "./agents/format_scratchpad/log.js",
|
|
1386
|
+
"require": "./agents/format_scratchpad/log.cjs"
|
|
1387
|
+
},
|
|
1388
|
+
"./agents/format_scratchpad/xml": {
|
|
1389
|
+
"types": "./agents/format_scratchpad/xml.d.ts",
|
|
1390
|
+
"import": "./agents/format_scratchpad/xml.js",
|
|
1391
|
+
"require": "./agents/format_scratchpad/xml.cjs"
|
|
1392
|
+
},
|
|
1393
|
+
"./agents/format_scratchpad/log_to_message": {
|
|
1394
|
+
"types": "./agents/format_scratchpad/log_to_message.d.ts",
|
|
1395
|
+
"import": "./agents/format_scratchpad/log_to_message.js",
|
|
1396
|
+
"require": "./agents/format_scratchpad/log_to_message.cjs"
|
|
1397
|
+
},
|
|
1398
|
+
"./agents/react/output_parser": {
|
|
1399
|
+
"types": "./agents/react/output_parser.d.ts",
|
|
1400
|
+
"import": "./agents/react/output_parser.js",
|
|
1401
|
+
"require": "./agents/react/output_parser.cjs"
|
|
1402
|
+
},
|
|
1403
|
+
"./agents/xml/output_parser": {
|
|
1404
|
+
"types": "./agents/xml/output_parser.d.ts",
|
|
1405
|
+
"import": "./agents/xml/output_parser.js",
|
|
1406
|
+
"require": "./agents/xml/output_parser.cjs"
|
|
1407
|
+
},
|
|
1408
|
+
"./agents/openai/output_parser": {
|
|
1409
|
+
"types": "./agents/openai/output_parser.d.ts",
|
|
1410
|
+
"import": "./agents/openai/output_parser.js",
|
|
1411
|
+
"require": "./agents/openai/output_parser.cjs"
|
|
1412
|
+
},
|
|
1356
1413
|
"./base_language": {
|
|
1357
1414
|
"types": "./base_language.d.ts",
|
|
1358
1415
|
"import": "./base_language.js",
|
|
@@ -1378,6 +1435,11 @@
|
|
|
1378
1435
|
"import": "./tools/calculator.js",
|
|
1379
1436
|
"require": "./tools/calculator.cjs"
|
|
1380
1437
|
},
|
|
1438
|
+
"./tools/render": {
|
|
1439
|
+
"types": "./tools/render.d.ts",
|
|
1440
|
+
"import": "./tools/render.js",
|
|
1441
|
+
"require": "./tools/render.cjs"
|
|
1442
|
+
},
|
|
1381
1443
|
"./tools/sql": {
|
|
1382
1444
|
"types": "./tools/sql.d.ts",
|
|
1383
1445
|
"import": "./tools/sql.js",
|
|
@@ -2418,6 +2480,11 @@
|
|
|
2418
2480
|
"import": "./storage/upstash_redis.js",
|
|
2419
2481
|
"require": "./storage/upstash_redis.cjs"
|
|
2420
2482
|
},
|
|
2483
|
+
"./storage/file_system": {
|
|
2484
|
+
"types": "./storage/file_system.d.ts",
|
|
2485
|
+
"import": "./storage/file_system.js",
|
|
2486
|
+
"require": "./storage/file_system.cjs"
|
|
2487
|
+
},
|
|
2421
2488
|
"./graphs/neo4j_graph": {
|
|
2422
2489
|
"types": "./graphs/neo4j_graph.d.ts",
|
|
2423
2490
|
"import": "./graphs/neo4j_graph.js",
|
|
@@ -2428,6 +2495,11 @@
|
|
|
2428
2495
|
"import": "./hub.js",
|
|
2429
2496
|
"require": "./hub.cjs"
|
|
2430
2497
|
},
|
|
2498
|
+
"./util/document": {
|
|
2499
|
+
"types": "./util/document.d.ts",
|
|
2500
|
+
"import": "./util/document.js",
|
|
2501
|
+
"require": "./util/document.cjs"
|
|
2502
|
+
},
|
|
2431
2503
|
"./util/math": {
|
|
2432
2504
|
"types": "./util/math.d.ts",
|
|
2433
2505
|
"import": "./util/math.js",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/storage/file_system.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/storage/file_system.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/storage/file_system.js'
|
package/tools/render.cjs
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/tools/render.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/tools/render.js'
|
package/tools/render.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/tools/render.js'
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
module.exports = require('../dist/util/document.cjs');
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/util/document.js'
|
package/util/document.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from '../dist/util/document.js'
|