@n8n/n8n-nodes-langchain 2.38.0 → 2.39.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (159) hide show
  1. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js +26 -1
  2. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js.map +1 -1
  3. package/dist/credentials/AzureOpenAiApi.credentials.js +26 -1
  4. package/dist/credentials/AzureOpenAiApi.credentials.js.map +1 -1
  5. package/dist/known/nodes.json +4 -0
  6. package/dist/node-definitions/.nodes-hash +1 -1
  7. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v3.ts +5 -0
  8. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v31.ts +5 -0
  9. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v1.ts +5 -0
  10. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v11.ts +5 -0
  11. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v12.ts +5 -0
  12. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v13.ts +5 -0
  13. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v14.ts +5 -0
  14. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v15.ts +5 -0
  15. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v16.ts +5 -0
  16. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v17.ts +5 -0
  17. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v18.ts +5 -0
  18. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainLlm/v19.ts +5 -0
  19. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v1.ts +5 -0
  20. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v11.ts +5 -0
  21. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v12.ts +5 -0
  22. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v13.ts +5 -0
  23. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v14.ts +5 -0
  24. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v15.ts +5 -0
  25. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v16.ts +5 -0
  26. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainRetrievalQa/v17.ts +5 -0
  27. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainSummarization/v2.ts +7 -0
  28. package/dist/node-definitions/nodes/n8n-nodes-langchain/chainSummarization/v21.ts +7 -0
  29. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/index.ts +3 -1
  30. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v1.schema.js +1 -0
  31. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v1.ts +6 -0
  32. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v11.schema.js +1 -0
  33. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v11.ts +6 -0
  34. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v12.schema.js +1 -0
  35. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v12.ts +6 -0
  36. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v13.schema.js +1 -0
  37. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v13.ts +6 -0
  38. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v14.schema.js +1 -0
  39. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v14.ts +6 -0
  40. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v15.schema.js +43 -0
  41. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v15.ts +175 -0
  42. package/dist/node-definitions/nodes/n8n-nodes-langchain/informationExtractor/v1.ts +5 -0
  43. package/dist/node-definitions/nodes/n8n-nodes-langchain/informationExtractor/v11.ts +5 -0
  44. package/dist/node-definitions/nodes/n8n-nodes-langchain/informationExtractor/v12.ts +5 -0
  45. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v1.ts +1 -1
  46. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v11.ts +1 -1
  47. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v12.ts +1 -1
  48. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v13.ts +1 -1
  49. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v14.ts +1 -1
  50. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v15.ts +1 -1
  51. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v16.ts +1 -1
  52. package/dist/node-definitions/nodes/n8n-nodes-langchain/sentimentAnalysis/v1.ts +9 -0
  53. package/dist/node-definitions/nodes/n8n-nodes-langchain/sentimentAnalysis/v11.ts +9 -0
  54. package/dist/nodes/ModelSelector/ModelSelector.node.js +11 -1
  55. package/dist/nodes/ModelSelector/ModelSelector.node.js.map +1 -1
  56. package/dist/nodes/agents/Agent/agents/ToolsAgent/common.d.ts +3 -1
  57. package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js +6 -2
  58. package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js.map +1 -1
  59. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +2 -7
  60. package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
  61. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +20 -0
  62. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -1
  63. package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js +10 -1
  64. package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js.map +1 -1
  65. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js +2 -7
  66. package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js.map +1 -1
  67. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +20 -5
  68. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
  69. package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js +2 -1
  70. package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js.map +1 -1
  71. package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js +10 -2
  72. package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js.map +1 -1
  73. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js +2 -7
  74. package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js.map +1 -1
  75. package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js +8 -4
  76. package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js.map +1 -1
  77. package/dist/nodes/llms/LMOllama/LmOllama.node.js +10 -1
  78. package/dist/nodes/llms/LMOllama/LmOllama.node.js.map +1 -1
  79. package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js +3 -14
  80. package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js.map +1 -1
  81. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +32 -0
  82. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -1
  83. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.d.ts +8 -0
  84. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js +12 -3
  85. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js.map +1 -1
  86. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js +15 -0
  87. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js.map +1 -1
  88. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js +3 -0
  89. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js.map +1 -1
  90. package/dist/nodes/llms/LmChatAzureOpenAi/types.d.ts +6 -3
  91. package/dist/nodes/llms/LmChatAzureOpenAi/types.js.map +1 -1
  92. package/dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.d.ts +12 -0
  93. package/dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.js +259 -0
  94. package/dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.js.map +1 -0
  95. package/dist/nodes/llms/LmChatDatabricks/databricks.dark.svg +19 -0
  96. package/dist/nodes/llms/LmChatDatabricks/databricks.svg +19 -0
  97. package/dist/nodes/llms/LmChatDatabricks/token-provider.d.ts +12 -0
  98. package/dist/nodes/llms/LmChatDatabricks/token-provider.js +74 -0
  99. package/dist/nodes/llms/LmChatDatabricks/token-provider.js.map +1 -0
  100. package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js +2 -1
  101. package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js.map +1 -1
  102. package/dist/nodes/llms/N8nNonEstimatingTracing.d.ts +2 -0
  103. package/dist/nodes/llms/N8nNonEstimatingTracing.js +1 -1
  104. package/dist/nodes/llms/N8nNonEstimatingTracing.js.map +1 -1
  105. package/dist/nodes/mcp/McpRegistryClientTool/McpRegistryClientTool.node.d.ts +5 -1
  106. package/dist/nodes/mcp/McpRegistryClientTool/McpRegistryClientTool.node.js +42 -12
  107. package/dist/nodes/mcp/McpRegistryClientTool/McpRegistryClientTool.node.js.map +1 -1
  108. package/dist/nodes/mcp/shared/runtime.d.ts +6 -1
  109. package/dist/nodes/mcp/shared/runtime.js +2 -0
  110. package/dist/nodes/mcp/shared/runtime.js.map +1 -1
  111. package/dist/nodes/mcp/shared/utils.d.ts +7 -2
  112. package/dist/nodes/mcp/shared/utils.js +81 -122
  113. package/dist/nodes/mcp/shared/utils.js.map +1 -1
  114. package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js +3 -0
  115. package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js.map +1 -1
  116. package/dist/nodes/tools/ToolWorkflow/constants.d.ts +2 -0
  117. package/dist/nodes/tools/ToolWorkflow/constants.js +7 -0
  118. package/dist/nodes/tools/ToolWorkflow/constants.js.map +1 -0
  119. package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js +5 -0
  120. package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js.map +1 -1
  121. package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js +8 -0
  122. package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js.map +1 -1
  123. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +129 -34
  124. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
  125. package/dist/nodes/trigger/ChatTrigger/GenericFunctions.d.ts +5 -4
  126. package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js +125 -24
  127. package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js.map +1 -1
  128. package/dist/nodes/trigger/ChatTrigger/connect-panel.d.ts +4 -0
  129. package/dist/nodes/trigger/ChatTrigger/connect-panel.js +48 -0
  130. package/dist/nodes/trigger/ChatTrigger/connect-panel.js.map +1 -0
  131. package/dist/nodes/trigger/ChatTrigger/shell.d.ts +13 -3
  132. package/dist/nodes/trigger/ChatTrigger/shell.js +68 -9
  133. package/dist/nodes/trigger/ChatTrigger/shell.js.map +1 -1
  134. package/dist/nodes/trigger/ChatTrigger/templates.d.ts +1 -5
  135. package/dist/nodes/trigger/ChatTrigger/templates.js +211 -70
  136. package/dist/nodes/trigger/ChatTrigger/templates.js.map +1 -1
  137. package/dist/nodes/trigger/ChatTrigger/types.d.ts +22 -0
  138. package/dist/nodes/trigger/ChatTrigger/types.js.map +1 -1
  139. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js +2 -3
  140. package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js.map +1 -1
  141. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js +2 -1
  142. package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js.map +1 -1
  143. package/dist/nodes/vendors/GoogleGemini/helpers/utils.d.ts +2 -1
  144. package/dist/nodes/vendors/GoogleGemini/helpers/utils.js +13 -1
  145. package/dist/nodes/vendors/GoogleGemini/helpers/utils.js.map +1 -1
  146. package/dist/nodes/vendors/Microsoft/microsoft-utils.d.ts +2 -2
  147. package/dist/nodes/vendors/Microsoft/microsoft-utils.js +11 -6
  148. package/dist/nodes/vendors/Microsoft/microsoft-utils.js.map +1 -1
  149. package/dist/nodes/vendors/OpenAi/helpers/credentials.d.ts +2 -0
  150. package/dist/nodes/vendors/OpenAi/helpers/credentials.js +16 -0
  151. package/dist/nodes/vendors/OpenAi/helpers/credentials.js.map +1 -0
  152. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js +2 -7
  153. package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js.map +1 -1
  154. package/dist/typecheck.tsbuildinfo +1 -1
  155. package/dist/types/credentials.json +2 -2
  156. package/dist/types/nodes.json +4 -3
  157. package/dist/utils/output_parsers/N8nStructuredOutputParser.js +1 -1
  158. package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +1 -1
  159. package/package.json +21 -20
@@ -15,12 +15,24 @@ class AzureEntraCognitiveServicesOAuth2Api {
15
15
  type: 'hidden',
16
16
  default: 'authorizationCode',
17
17
  },
18
+ {
19
+ displayName: 'Endpoint Type',
20
+ name: 'endpointType',
21
+ type: 'options',
22
+ options: [
23
+ { name: 'Classic', value: 'classic' },
24
+ { name: 'Azure AI Foundry', value: 'foundry' },
25
+ ],
26
+ default: 'classic',
27
+ description: 'Classic targets *.openai.azure.com (resource name + deployment-based URLs). Azure AI Foundry targets *.services.ai.azure.com/openai/v1 (full endpoint URL).',
28
+ },
18
29
  {
19
30
  displayName: 'Resource Name',
20
31
  name: 'resourceName',
21
32
  type: 'string',
22
33
  required: true,
23
34
  default: '',
35
+ displayOptions: { show: { endpointType: ['classic'] } },
24
36
  },
25
37
  {
26
38
  displayName: 'API Version',
@@ -28,13 +40,26 @@ class AzureEntraCognitiveServicesOAuth2Api {
28
40
  type: 'string',
29
41
  required: true,
30
42
  default: '2025-03-01-preview',
43
+ displayOptions: { show: { endpointType: ['classic'] } },
44
+ },
45
+ {
46
+ displayName: 'Endpoint',
47
+ name: 'foundryEndpoint',
48
+ type: 'string',
49
+ required: true,
50
+ default: '',
51
+ placeholder: 'https://<resource>.services.ai.azure.com/openai/v1',
52
+ displayOptions: { show: { endpointType: ['foundry'] } },
53
+ hint: 'The full Azure AI Foundry OpenAI-compatible base URL.',
31
54
  },
32
55
  {
33
56
  displayName: 'Endpoint',
34
57
  name: 'endpoint',
35
58
  type: 'string',
36
59
  default: undefined,
37
- placeholder: 'https://westeurope.api.cognitive.microsoft.com',
60
+ placeholder: 'https://<resource>.openai.azure.com',
61
+ displayOptions: { show: { endpointType: ['classic'] } },
62
+ hint: 'Optional. Defaults to https://<resourceName>.openai.azure.com.',
38
63
  },
39
64
  {
40
65
  displayName: 'Tenant ID',
@@ -1 +1 @@
1
- {"version":3,"file":"AzureEntraCognitiveServicesOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAEnD;IAAA;QACC,SAAI,GAAG,sCAAsC,CAAC;QAG9C,gBAAW,GAAG,6CAA6C,CAAC;QAE5D,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,qBAAgB,GAAG,sCAAsC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AAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,KAAK;gBACd,WAAW,EACV,8KAA8K;aAC/K;YACD;gBACC,WAAW,EAAE,2BAA2B;gBACxC,IAAI,EAAE,qBAAqB;gBAC3B,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EACV,wFAAwF;gBACzF,WAAW,EAAE,EAAE;aACf;YACD;gBACC,WAAW,EAAE,gBAAgB;gBAC7B,IAAI,EAAE,eAAe;gBACrB,IAAI,EAAE,QAAQ;gBACd,cAAc,EAAE;oBACf,IAAI,EAAE;wBACL,YAAY,EAAE,CAAC,IAAI,CAAC;qBACpB;iBACD;gBACD,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;gBAChC,WAAW,EAAE,uBAAuB;gBACpC,WAAW,EAAE,4CAA4C;aACzD;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,kDAAkD,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;aAC7F;SACD,CAAC;IACH,CAAC;CAAA"}
1
+ {"version":3,"file":"AzureEntraCognitiveServicesOAuth2Api.credentials.js","sourceRoot":"","sources":["../../credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.ts"],"names":[],"mappings":";;;AAEA,MAAM,aAAa,GAAG,CAAC,QAAQ,EAAE,gBAAgB,CAAC,CAAC;AAEnD;IAAA;QACC,SAAI,GAAG,sCAAsC,CAAC;QAG9C,gBAAW,GAAG,6CAA6C,CAAC;QAE5D,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,qBAAgB,GAAG,sCAAsC,CAAC;QAE1D,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;Y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W,EAAE,4CAA4C;aACzD;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,OAAO;gBACb,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,kDAAkD,GAAG,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC,GAAG,KAAK;aAC7F;SACD,CAAC;IACH,CAAC;CAAA"}
@@ -7,6 +7,17 @@ class AzureOpenAiApi {
7
7
  this.displayName = 'Azure Open AI';
8
8
  this.documentationUrl = 'azureopenai';
9
9
  this.properties = [
10
+ {
11
+ displayName: 'Endpoint Type',
12
+ name: 'endpointType',
13
+ type: 'options',
14
+ options: [
15
+ { name: 'Classic', value: 'classic' },
16
+ { name: 'Azure AI Foundry', value: 'foundry' },
17
+ ],
18
+ default: 'classic',
19
+ description: 'Classic targets *.openai.azure.com (resource name + deployment-based URLs). Azure AI Foundry targets *.services.ai.azure.com/openai/v1 (full endpoint URL).',
20
+ },
10
21
  {
11
22
  displayName: 'API Key',
12
23
  name: 'apiKey',
@@ -21,6 +32,7 @@ class AzureOpenAiApi {
21
32
  type: 'string',
22
33
  required: true,
23
34
  default: '',
35
+ displayOptions: { show: { endpointType: ['classic'] } },
24
36
  },
25
37
  {
26
38
  displayName: 'API Version',
@@ -28,13 +40,26 @@ class AzureOpenAiApi {
28
40
  type: 'string',
29
41
  required: true,
30
42
  default: '2025-03-01-preview',
43
+ displayOptions: { show: { endpointType: ['classic'] } },
44
+ },
45
+ {
46
+ displayName: 'Endpoint',
47
+ name: 'foundryEndpoint',
48
+ type: 'string',
49
+ required: true,
50
+ default: '',
51
+ placeholder: 'https://<resource>.services.ai.azure.com/openai/v1',
52
+ displayOptions: { show: { endpointType: ['foundry'] } },
53
+ hint: 'The full Azure AI Foundry OpenAI-compatible base URL.',
31
54
  },
32
55
  {
33
56
  displayName: 'Endpoint',
34
57
  name: 'endpoint',
35
58
  type: 'string',
36
59
  default: undefined,
37
- placeholder: 'https://westeurope.api.cognitive.microsoft.com',
60
+ placeholder: 'https://<resource>.openai.azure.com',
61
+ displayOptions: { show: { endpointType: ['classic'] } },
62
+ hint: 'Optional. Defaults to https://<resourceName>.openai.azure.com.',
38
63
  },
39
64
  ];
40
65
  this.authenticate = {
@@ -1 +1 @@
1
- {"version":3,"file":"AzureOpenAiApi.credentials.js","sourceRoot":"","sources":["../../credentials/AzureOpenAiApi.credentials.ts"],"names":[],"mappings":";;;AAEA;IAAA;QACC,SAAI,GAAG,gBAAgB,CAAC;QAExB,gBAAW,GAAG,eAAe,CAAC;QAE9B,qBAAgB,GAAG,aAAa,CAAC;QAEjC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,WAAW,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE;gBAC/B,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,oBAAoB;aAC7B;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,gDAAgD;aAC7D;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,SAAS,EAAE,0BAA0B;iBACrC;aACD;SACD,CAAC;IACH,CAAC;CAAA"}
1
+ {"version":3,"file":"AzureOpenAiApi.credentials.js","sourceRoot":"","sources":["../../credentials/AzureOpenAiApi.credentials.ts"],"names":[],"mappings":";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E,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;gBACvD,IAAI,EAAE,uDAAuD;aAC7D;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,SAAS;gBAClB,WAAW,EAAE,qCAAqC;gBAClD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;gBACvD,IAAI,EAAE,gEAAgE;aACtE;SACD,CAAC;QAEF,iBAAY,GAAyB;YACpC,IAAI,EAAE,SAAS;YACf,UAAU,EAAE;gBACX,OAAO,EAAE;oBACR,SAAS,EAAE,0BAA0B;iBACrC;aACD;SACD,CAAC;IACH,CAAC;CAAA"}
@@ -155,6 +155,10 @@
155
155
  "className": "LmChatCohere",
156
156
  "sourcePath": "dist/nodes/llms/LmChatCohere/LmChatCohere.node.js"
157
157
  },
158
+ "lmChatDatabricks": {
159
+ "className": "LmChatDatabricks",
160
+ "sourcePath": "dist/nodes/llms/LmChatDatabricks/LmChatDatabricks.node.js"
161
+ },
158
162
  "lmChatDeepSeek": {
159
163
  "className": "LmChatDeepSeek",
160
164
  "sourcePath": "dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js"
@@ -1 +1 @@
1
- 931df927fc0c4cedc3f7eb8939ad0a7f8d275e733f73e70b48b13121a7a1396e
1
+ d1ad92a789b628e6f5bd798c039a3d3961bde36e123bd20163f3a93452ca924a
@@ -112,6 +112,10 @@ export interface LcAgentV3Params {
112
112
  };
113
113
  }
114
114
 
115
+ export type LcAgentV3Output = {
116
+ output: string;
117
+ };
118
+
115
119
  export interface LcAgentV3SubnodeConfig {
116
120
  model: LanguageModelInstance | LanguageModelInstance[];
117
121
  memory?: MemoryInstance;
@@ -130,6 +134,7 @@ interface LcAgentV3NodeBase {
130
134
 
131
135
  export type LcAgentV3ParamsNode = LcAgentV3NodeBase & {
132
136
  config: NodeConfig<LcAgentV3Params> & { subnodes: LcAgentV3SubnodeConfig };
137
+ output?: Items<LcAgentV3Output>;
133
138
  };
134
139
 
135
140
  export type LcAgentV3Node = LcAgentV3ParamsNode;
@@ -113,6 +113,10 @@ export interface LcAgentV31Params {
113
113
  };
114
114
  }
115
115
 
116
+ export type LcAgentV31Output = {
117
+ output: string;
118
+ };
119
+
116
120
  export interface LcAgentV31SubnodeConfig {
117
121
  model: LanguageModelInstance | LanguageModelInstance[];
118
122
  memory?: MemoryInstance;
@@ -131,6 +135,7 @@ interface LcAgentV31NodeBase {
131
135
 
132
136
  export type LcAgentV31ParamsNode = LcAgentV31NodeBase & {
133
137
  config: NodeConfig<LcAgentV31Params> & { subnodes: LcAgentV31SubnodeConfig };
138
+ output?: Items<LcAgentV31Output>;
134
139
  };
135
140
 
136
141
  export type LcAgentV31Node = LcAgentV31ParamsNode;
@@ -51,6 +51,10 @@ export interface LcChainLlmV1Params {
51
51
  };
52
52
  }
53
53
 
54
+ export type LcChainLlmV1Output = {
55
+ text: string;
56
+ };
57
+
54
58
  export interface LcChainLlmV1SubnodeConfig {
55
59
  model: LanguageModelInstance | LanguageModelInstance[];
56
60
  /**
@@ -67,6 +71,7 @@ interface LcChainLlmV1NodeBase {
67
71
 
68
72
  export type LcChainLlmV1ParamsNode = LcChainLlmV1NodeBase & {
69
73
  config: NodeConfig<LcChainLlmV1Params> & { subnodes: LcChainLlmV1SubnodeConfig };
74
+ output?: Items<LcChainLlmV1Output>;
70
75
  };
71
76
 
72
77
  export type LcChainLlmV1Node = LcChainLlmV1ParamsNode;
@@ -51,6 +51,10 @@ export interface LcChainLlmV11Params {
51
51
  };
52
52
  }
53
53
 
54
+ export type LcChainLlmV11Output = {
55
+ text: string;
56
+ };
57
+
54
58
  export interface LcChainLlmV11SubnodeConfig {
55
59
  model: LanguageModelInstance | LanguageModelInstance[];
56
60
  /**
@@ -67,6 +71,7 @@ interface LcChainLlmV11NodeBase {
67
71
 
68
72
  export type LcChainLlmV11ParamsNode = LcChainLlmV11NodeBase & {
69
73
  config: NodeConfig<LcChainLlmV11Params> & { subnodes: LcChainLlmV11SubnodeConfig };
74
+ output?: Items<LcChainLlmV11Output>;
70
75
  };
71
76
 
72
77
  export type LcChainLlmV11Node = LcChainLlmV11ParamsNode;
@@ -61,6 +61,10 @@ export interface LcChainLlmV12Params {
61
61
  };
62
62
  }
63
63
 
64
+ export type LcChainLlmV12Output = {
65
+ text: string;
66
+ };
67
+
64
68
  export interface LcChainLlmV12SubnodeConfig {
65
69
  model: LanguageModelInstance | LanguageModelInstance[];
66
70
  /**
@@ -77,6 +81,7 @@ interface LcChainLlmV12NodeBase {
77
81
 
78
82
  export type LcChainLlmV12ParamsNode = LcChainLlmV12NodeBase & {
79
83
  config: NodeConfig<LcChainLlmV12Params> & { subnodes: LcChainLlmV12SubnodeConfig };
84
+ output?: Items<LcChainLlmV12Output>;
80
85
  };
81
86
 
82
87
  export type LcChainLlmV12Node = LcChainLlmV12ParamsNode;
@@ -51,6 +51,10 @@ export interface LcChainLlmV13Params {
51
51
  };
52
52
  }
53
53
 
54
+ export type LcChainLlmV13Output = {
55
+ text: string;
56
+ };
57
+
54
58
  export interface LcChainLlmV13SubnodeConfig {
55
59
  model: LanguageModelInstance | LanguageModelInstance[];
56
60
  /**
@@ -67,6 +71,7 @@ interface LcChainLlmV13NodeBase {
67
71
 
68
72
  export type LcChainLlmV13ParamsNode = LcChainLlmV13NodeBase & {
69
73
  config: NodeConfig<LcChainLlmV13Params> & { subnodes: LcChainLlmV13SubnodeConfig };
74
+ output?: Items<LcChainLlmV13Output>;
70
75
  };
71
76
 
72
77
  export type LcChainLlmV13Node = LcChainLlmV13ParamsNode;
@@ -61,6 +61,10 @@ export interface LcChainLlmV14Params {
61
61
  };
62
62
  }
63
63
 
64
+ export type LcChainLlmV14Output = {
65
+ text: string;
66
+ };
67
+
64
68
  export interface LcChainLlmV14SubnodeConfig {
65
69
  model: LanguageModelInstance | LanguageModelInstance[];
66
70
  /**
@@ -77,6 +81,7 @@ interface LcChainLlmV14NodeBase {
77
81
 
78
82
  export type LcChainLlmV14ParamsNode = LcChainLlmV14NodeBase & {
79
83
  config: NodeConfig<LcChainLlmV14Params> & { subnodes: LcChainLlmV14SubnodeConfig };
84
+ output?: Items<LcChainLlmV14Output>;
80
85
  };
81
86
 
82
87
  export type LcChainLlmV14Node = LcChainLlmV14ParamsNode;
@@ -61,6 +61,10 @@ export interface LcChainLlmV15Params {
61
61
  };
62
62
  }
63
63
 
64
+ export type LcChainLlmV15Output = {
65
+ text: string;
66
+ };
67
+
64
68
  export interface LcChainLlmV15SubnodeConfig {
65
69
  model: LanguageModelInstance | LanguageModelInstance[];
66
70
  /**
@@ -77,6 +81,7 @@ interface LcChainLlmV15NodeBase {
77
81
 
78
82
  export type LcChainLlmV15ParamsNode = LcChainLlmV15NodeBase & {
79
83
  config: NodeConfig<LcChainLlmV15Params> & { subnodes: LcChainLlmV15SubnodeConfig };
84
+ output?: Items<LcChainLlmV15Output>;
80
85
  };
81
86
 
82
87
  export type LcChainLlmV15Node = LcChainLlmV15ParamsNode;
@@ -61,6 +61,10 @@ export interface LcChainLlmV16Params {
61
61
  };
62
62
  }
63
63
 
64
+ export type LcChainLlmV16Output = {
65
+ text: string;
66
+ };
67
+
64
68
  export interface LcChainLlmV16SubnodeConfig {
65
69
  model: LanguageModelInstance | LanguageModelInstance[];
66
70
  /**
@@ -77,6 +81,7 @@ interface LcChainLlmV16NodeBase {
77
81
 
78
82
  export type LcChainLlmV16ParamsNode = LcChainLlmV16NodeBase & {
79
83
  config: NodeConfig<LcChainLlmV16Params> & { subnodes: LcChainLlmV16SubnodeConfig };
84
+ output?: Items<LcChainLlmV16Output>;
80
85
  };
81
86
 
82
87
  export type LcChainLlmV16Node = LcChainLlmV16ParamsNode;
@@ -75,6 +75,10 @@ export interface LcChainLlmV17Params {
75
75
  };
76
76
  }
77
77
 
78
+ export type LcChainLlmV17Output = {
79
+ text: string;
80
+ };
81
+
78
82
  export interface LcChainLlmV17SubnodeConfig {
79
83
  model: LanguageModelInstance | LanguageModelInstance[];
80
84
  /**
@@ -91,6 +95,7 @@ interface LcChainLlmV17NodeBase {
91
95
 
92
96
  export type LcChainLlmV17ParamsNode = LcChainLlmV17NodeBase & {
93
97
  config: NodeConfig<LcChainLlmV17Params> & { subnodes: LcChainLlmV17SubnodeConfig };
98
+ output?: Items<LcChainLlmV17Output>;
94
99
  };
95
100
 
96
101
  export type LcChainLlmV17Node = LcChainLlmV17ParamsNode;
@@ -76,6 +76,10 @@ export interface LcChainLlmV18Params {
76
76
  };
77
77
  }
78
78
 
79
+ export type LcChainLlmV18Output = {
80
+ text: string;
81
+ };
82
+
79
83
  export interface LcChainLlmV18SubnodeConfig {
80
84
  model: LanguageModelInstance | LanguageModelInstance[];
81
85
  /**
@@ -92,6 +96,7 @@ interface LcChainLlmV18NodeBase {
92
96
 
93
97
  export type LcChainLlmV18ParamsNode = LcChainLlmV18NodeBase & {
94
98
  config: NodeConfig<LcChainLlmV18Params> & { subnodes: LcChainLlmV18SubnodeConfig };
99
+ output?: Items<LcChainLlmV18Output>;
95
100
  };
96
101
 
97
102
  export type LcChainLlmV18Node = LcChainLlmV18ParamsNode;
@@ -76,6 +76,10 @@ export interface LcChainLlmV19Params {
76
76
  };
77
77
  }
78
78
 
79
+ export type LcChainLlmV19Output = {
80
+ text: string;
81
+ };
82
+
79
83
  export interface LcChainLlmV19SubnodeConfig {
80
84
  model: LanguageModelInstance | LanguageModelInstance[];
81
85
  /**
@@ -92,6 +96,7 @@ interface LcChainLlmV19NodeBase {
92
96
 
93
97
  export type LcChainLlmV19ParamsNode = LcChainLlmV19NodeBase & {
94
98
  config: NodeConfig<LcChainLlmV19Params> & { subnodes: LcChainLlmV19SubnodeConfig };
99
+ output?: Items<LcChainLlmV19Output>;
95
100
  };
96
101
 
97
102
  export type LcChainLlmV19Node = LcChainLlmV19ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV1Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV1Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV1SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV1NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV1ParamsNode = LcChainRetrievalQaV1NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV1Params> & { subnodes: LcChainRetrievalQaV1SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV1Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV1Node = LcChainRetrievalQaV1ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV11Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV11Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV11SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV11NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV11ParamsNode = LcChainRetrievalQaV11NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV11Params> & { subnodes: LcChainRetrievalQaV11SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV11Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV11Node = LcChainRetrievalQaV11ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV12Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV12Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV12SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV12NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV12ParamsNode = LcChainRetrievalQaV12NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV12Params> & { subnodes: LcChainRetrievalQaV12SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV12Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV12Node = LcChainRetrievalQaV12ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV13Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV13Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV13SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV13NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV13ParamsNode = LcChainRetrievalQaV13NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV13Params> & { subnodes: LcChainRetrievalQaV13SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV13Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV13Node = LcChainRetrievalQaV13ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV14Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV14Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV14SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV14NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV14ParamsNode = LcChainRetrievalQaV14NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV14Params> & { subnodes: LcChainRetrievalQaV14SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV14Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV14Node = LcChainRetrievalQaV14ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV15Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV15Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV15SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV15NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV15ParamsNode = LcChainRetrievalQaV15NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV15Params> & { subnodes: LcChainRetrievalQaV15SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV15Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV15Node = LcChainRetrievalQaV15ParamsNode;
@@ -38,6 +38,10 @@ export interface LcChainRetrievalQaV16Params {
38
38
  };
39
39
  }
40
40
 
41
+ export type LcChainRetrievalQaV16Output = {
42
+ response: string;
43
+ };
44
+
41
45
  export interface LcChainRetrievalQaV16SubnodeConfig {
42
46
  model: LanguageModelInstance | LanguageModelInstance[];
43
47
  retriever: RetrieverInstance;
@@ -50,6 +54,7 @@ interface LcChainRetrievalQaV16NodeBase {
50
54
 
51
55
  export type LcChainRetrievalQaV16ParamsNode = LcChainRetrievalQaV16NodeBase & {
52
56
  config: NodeConfig<LcChainRetrievalQaV16Params> & { subnodes: LcChainRetrievalQaV16SubnodeConfig };
57
+ output?: Items<LcChainRetrievalQaV16Output>;
53
58
  };
54
59
 
55
60
  export type LcChainRetrievalQaV16Node = LcChainRetrievalQaV16ParamsNode;
@@ -39,6 +39,10 @@ export interface LcChainRetrievalQaV17Params {
39
39
  };
40
40
  }
41
41
 
42
+ export type LcChainRetrievalQaV17Output = {
43
+ response: string;
44
+ };
45
+
42
46
  export interface LcChainRetrievalQaV17SubnodeConfig {
43
47
  model: LanguageModelInstance | LanguageModelInstance[];
44
48
  retriever: RetrieverInstance;
@@ -51,6 +55,7 @@ interface LcChainRetrievalQaV17NodeBase {
51
55
 
52
56
  export type LcChainRetrievalQaV17ParamsNode = LcChainRetrievalQaV17NodeBase & {
53
57
  config: NodeConfig<LcChainRetrievalQaV17Params> & { subnodes: LcChainRetrievalQaV17SubnodeConfig };
58
+ output?: Items<LcChainRetrievalQaV17Output>;
54
59
  };
55
60
 
56
61
  export type LcChainRetrievalQaV17Node = LcChainRetrievalQaV17ParamsNode;
@@ -87,6 +87,12 @@ export interface LcChainSummarizationV2Params {
87
87
  };
88
88
  }
89
89
 
90
+ export type LcChainSummarizationV2Output = {
91
+ output: {
92
+ output_text: string;
93
+ };
94
+ };
95
+
90
96
  export interface LcChainSummarizationV2SubnodeConfig {
91
97
  model: LanguageModelInstance | LanguageModelInstance[];
92
98
  /**
@@ -107,6 +113,7 @@ interface LcChainSummarizationV2NodeBase {
107
113
 
108
114
  export type LcChainSummarizationV2ParamsNode = LcChainSummarizationV2NodeBase & {
109
115
  config: NodeConfig<LcChainSummarizationV2Params> & { subnodes: LcChainSummarizationV2SubnodeConfig };
116
+ output?: Items<LcChainSummarizationV2Output>;
110
117
  };
111
118
 
112
119
  export type LcChainSummarizationV2Node = LcChainSummarizationV2ParamsNode;
@@ -87,6 +87,12 @@ export interface LcChainSummarizationV21Params {
87
87
  };
88
88
  }
89
89
 
90
+ export type LcChainSummarizationV21Output = {
91
+ output: {
92
+ output_text: string;
93
+ };
94
+ };
95
+
90
96
  export interface LcChainSummarizationV21SubnodeConfig {
91
97
  model: LanguageModelInstance | LanguageModelInstance[];
92
98
  /**
@@ -107,6 +113,7 @@ interface LcChainSummarizationV21NodeBase {
107
113
 
108
114
  export type LcChainSummarizationV21ParamsNode = LcChainSummarizationV21NodeBase & {
109
115
  config: NodeConfig<LcChainSummarizationV21Params> & { subnodes: LcChainSummarizationV21SubnodeConfig };
116
+ output?: Items<LcChainSummarizationV21Output>;
110
117
  };
111
118
 
112
119
  export type LcChainSummarizationV21Node = LcChainSummarizationV21ParamsNode;
@@ -4,12 +4,14 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcChatTriggerV15Node } from './v15';
7
8
  import type { LcChatTriggerV14Node } from './v14';
8
9
  import type { LcChatTriggerV13Node } from './v13';
9
10
  import type { LcChatTriggerV12Node } from './v12';
10
11
  import type { LcChatTriggerV11Node } from './v11';
11
12
  import type { LcChatTriggerV1Node } from './v1';
12
13
 
14
+ export * from './v15';
13
15
  export * from './v14';
14
16
  export * from './v13';
15
17
  export * from './v12';
@@ -17,4 +19,4 @@ export * from './v11';
17
19
  export * from './v1';
18
20
 
19
21
  // Combined union type for all versions
20
- export type LcChatTriggerNode = LcChatTriggerV14Node | LcChatTriggerV13Node | LcChatTriggerV12Node | LcChatTriggerV11Node | LcChatTriggerV1Node;
22
+ export type LcChatTriggerNode = LcChatTriggerV15Node | LcChatTriggerV14Node | LcChatTriggerV13Node | LcChatTriggerV12Node | LcChatTriggerV11Node | LcChatTriggerV1Node;
@@ -25,6 +25,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
25
25
  mode: resolveSchema({ parameters, schema: z.union([z.literal('hostedChat'), z.literal('webhook'), expressionSchema]), required: false, displayOptions: {"show":{"public":[true]}}, defaults: {"public":false} }),
26
26
  authentication: resolveSchema({ parameters, schema: z.union([z.literal('basicAuth'), z.literal('n8nUserAuth'), z.literal('none'), expressionSchema]), required: false, displayOptions: {"show":{"public":[true]}}, defaults: {"public":false} }),
27
27
  requireExecuteAccess: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"authentication":["n8nUserAuth"],"mode":["hostedChat"],"public":[true]}}, defaults: {"authentication":"none","mode":"hostedChat","public":false} }),
28
+ includeUserInOutput: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"authentication":["n8nUserAuth"],"public":[true]}}, defaults: {"authentication":"none","public":false} }),
28
29
  initialMessages: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"mode":["hostedChat"],"public":[true]}}, defaults: {"mode":"hostedChat","public":false} }),
29
30
  availableInChat: z.boolean().optional(),
30
31
  options: resolveOneOfSchemas({ parameters, variants: [{ schema: z.object({ allowFileUploads: booleanOrExpression.optional(), allowedFilesMimeTypes: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"public":[false]}}, defaults: {"public":false} }, { schema: z.object({ allowedOrigins: stringOrExpression.optional(), allowFileUploads: booleanOrExpression.optional(), allowedFilesMimeTypes: stringOrExpression.optional(), inputPlaceholder: stringOrExpression.optional(), loadPreviousSession: z.union([z.literal('notSupported'), z.literal('memory'), z.literal('manually'), expressionSchema]).optional(), showWelcomeScreen: booleanOrExpression.optional(), getStarted: stringOrExpression.optional(), subtitle: stringOrExpression.optional(), title: stringOrExpression.optional(), customCss: stringOrExpression.optional(), responseMode: z.union([z.literal('lastNode'), z.literal('responseNode'), expressionSchema]).optional(), autoSaveHighlightedData: booleanOrExpression.optional() }), required: false, displayOptions: {"show":{"mode":["hostedChat","webhook"],"public":[true]}}, defaults: {"mode":"hostedChat","public":false} }] }),
@@ -29,6 +29,12 @@ export interface LcChatTriggerV1Params {
29
29
  * @default false
30
30
  */
31
31
  requireExecuteAccess?: boolean | Expression<boolean>;
32
+ /**
33
+ * Whether to include the logged-in user's ID, email and name in the trigger output
34
+ * @displayOptions.show { authentication: ["n8nUserAuth"], public: [true] }
35
+ * @default false
36
+ */
37
+ includeUserInOutput?: boolean | Expression<boolean>;
32
38
  /**
33
39
  * Default messages shown at the start of the chat, one per line
34
40
  * @displayOptions.show { mode: ["hostedChat"], public: [true] }
@@ -25,6 +25,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
25
25
  mode: resolveSchema({ parameters, schema: z.union([z.literal('hostedChat'), z.literal('webhook'), expressionSchema]), required: false, displayOptions: {"show":{"public":[true]}}, defaults: {"public":false} }),
26
26
  authentication: resolveSchema({ parameters, schema: z.union([z.literal('basicAuth'), z.literal('n8nUserAuth'), z.literal('none'), expressionSchema]), required: false, displayOptions: {"show":{"public":[true]}}, defaults: {"public":false} }),
27
27
  requireExecuteAccess: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"authentication":["n8nUserAuth"],"mode":["hostedChat"],"public":[true]}}, defaults: {"authentication":"none","mode":"hostedChat","public":false} }),
28
+ includeUserInOutput: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"authentication":["n8nUserAuth"],"public":[true]}}, defaults: {"authentication":"none","public":false} }),
28
29
  initialMessages: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"mode":["hostedChat"],"public":[true]}}, defaults: {"mode":"hostedChat","public":false} }),
29
30
  availableInChat: z.boolean().optional(),
30
31
  options: resolveOneOfSchemas({ parameters, variants: [{ schema: z.object({ allowFileUploads: booleanOrExpression.optional(), allowedFilesMimeTypes: stringOrExpression.optional() }), required: false, displayOptions: {"show":{"public":[false]}}, defaults: {"public":false} }, { schema: z.object({ allowedOrigins: stringOrExpression.optional(), allowFileUploads: booleanOrExpression.optional(), allowedFilesMimeTypes: stringOrExpression.optional(), inputPlaceholder: stringOrExpression.optional(), loadPreviousSession: z.union([z.literal('notSupported'), z.literal('memory'), z.literal('manually'), expressionSchema]).optional(), showWelcomeScreen: booleanOrExpression.optional(), getStarted: stringOrExpression.optional(), subtitle: stringOrExpression.optional(), title: stringOrExpression.optional(), customCss: stringOrExpression.optional(), responseMode: z.union([z.literal('lastNode'), z.literal('responseNode'), expressionSchema]).optional(), autoSaveHighlightedData: booleanOrExpression.optional() }), required: false, displayOptions: {"show":{"mode":["hostedChat","webhook"],"public":[true]}}, defaults: {"mode":"hostedChat","public":false} }] }),