forked from langchain-ai/langchainjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
langchain.config.js
80 lines (78 loc) · 2.96 KB
/
langchain.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
import { resolve, dirname } from "node:path";
import { fileURLToPath } from "node:url";
/**
* @param {string} relativePath
* @returns {string}
*/
function abs(relativePath) {
return resolve(dirname(fileURLToPath(import.meta.url)), relativePath);
}
export const config = {
internals: [/node\:/, /js-tiktoken/, /langsmith/],
entrypoints: {
agents: "agents",
caches: "caches/base",
"callbacks/base": "callbacks/base",
"callbacks/dispatch": "callbacks/dispatch/index",
"callbacks/dispatch/web": "callbacks/dispatch/web",
"callbacks/manager": "callbacks/manager",
"callbacks/promises": "callbacks/promises",
chat_history: "chat_history",
context: "context",
documents: "documents/index",
"document_loaders/base": "document_loaders/base",
"document_loaders/langsmith": "document_loaders/langsmith",
embeddings: "embeddings",
example_selectors: "example_selectors/index",
indexing: "indexing/index",
"language_models/base": "language_models/base",
"language_models/chat_models": "language_models/chat_models",
"language_models/llms": "language_models/llms",
load: "load/index",
"load/serializable": "load/serializable",
memory: "memory",
messages: "messages/index",
"messages/tool": "messages/tool",
output_parsers: "output_parsers/index",
"output_parsers/openai_tools": "output_parsers/openai_tools/index",
"output_parsers/openai_functions": "output_parsers/openai_functions/index",
outputs: "outputs",
prompts: "prompts/index",
prompt_values: "prompt_values",
runnables: "runnables/index",
"runnables/graph": "runnables/graph",
"runnables/remote": "runnables/remote",
retrievers: "retrievers/index",
"retrievers/document_compressors": "retrievers/document_compressors/base",
singletons: "singletons/index",
stores: "stores",
"structured_query": "structured_query/index",
tools: "tools/index",
"tracers/base": "tracers/base",
"tracers/console": "tracers/console",
"tracers/initialize": "tracers/initialize",
"tracers/log_stream": "tracers/log_stream",
"tracers/run_collector": "tracers/run_collector",
"tracers/tracer_langchain": "tracers/tracer_langchain",
"tracers/tracer_langchain_v1": "tracers/tracer_langchain_v1",
"utils/async_caller": "utils/async_caller",
"utils/chunk_array": "utils/chunk_array",
"utils/env": "utils/env",
"utils/event_source_parse": "utils/event_source_parse",
"utils/function_calling": "utils/function_calling",
"utils/hash": "utils/hash",
"utils/json_patch": "utils/json_patch",
"utils/json_schema": "utils/json_schema",
"utils/math": "utils/math",
"utils/stream": "utils/stream",
"utils/testing": "utils/testing/index",
"utils/tiktoken": "utils/tiktoken",
"utils/types": "utils/types/index",
vectorstores: "vectorstores",
},
tsConfigPath: resolve("./tsconfig.json"),
packageSuffix: "core",
cjsSource: "./dist-cjs",
cjsDestination: "./dist",
abs,
}