@n8n/n8n-nodes-langchain 2.43.1 → 2.44.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 (92) hide show
  1. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js +4 -4
  2. package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js.map +1 -1
  3. package/dist/credentials/AzureOpenAiApi.credentials.js +4 -4
  4. package/dist/credentials/AzureOpenAiApi.credentials.js.map +1 -1
  5. package/dist/credentials/GoogleVertexAiApi.credentials.d.ts +15 -0
  6. package/dist/credentials/GoogleVertexAiApi.credentials.js +83 -0
  7. package/dist/credentials/GoogleVertexAiApi.credentials.js.map +1 -0
  8. package/dist/credentials/icons/google.svg +1 -0
  9. package/dist/known/credentials.json +12 -0
  10. package/dist/known/nodes.json +4 -0
  11. package/dist/node-definitions/.nodes-hash +1 -1
  12. package/dist/node-definitions/nodes/n8n-nodes-langchain/embeddingsAzureOpenAi/index.ts +1 -1
  13. package/dist/node-definitions/nodes/n8n-nodes-langchain/embeddingsAzureOpenAi/v1.schema.js +2 -1
  14. package/dist/node-definitions/nodes/n8n-nodes-langchain/embeddingsAzureOpenAi/v1.ts +4 -2
  15. package/dist/node-definitions/nodes/n8n-nodes-langchain/embeddingsGoogleVertex/v1.schema.js +3 -2
  16. package/dist/node-definitions/nodes/n8n-nodes-langchain/embeddingsGoogleVertex/v1.ts +3 -0
  17. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAzureOpenAi/index.ts +1 -1
  18. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAzureOpenAi/v1.schema.js +2 -1
  19. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAzureOpenAi/v1.ts +11 -2
  20. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAzureOpenAi/v11.schema.js +3 -2
  21. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAzureOpenAi/v11.ts +15 -5
  22. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleGemini/v1.ts +1 -1
  23. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleGemini/v11.ts +1 -1
  24. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleGemini/v12.ts +1 -1
  25. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleVertex/v1.schema.js +3 -2
  26. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatGoogleVertex/v1.ts +3 -0
  27. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.d.ts +6 -1
  28. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js +23 -7
  29. package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js.map +1 -1
  30. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +102 -16
  31. package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -1
  32. package/dist/nodes/embeddings/EmbeddingsDatabricks/EmbeddingsDatabricks.node.js +1 -0
  33. package/dist/nodes/embeddings/EmbeddingsDatabricks/EmbeddingsDatabricks.node.js.map +1 -1
  34. package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.d.ts +5 -6
  35. package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js +9 -41
  36. package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js.map +1 -1
  37. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +1 -15
  38. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
  39. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +59 -8
  40. package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -1
  41. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js +1 -1
  42. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js.map +1 -1
  43. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js +1 -2
  44. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js.map +1 -1
  45. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/requireFoundryEndpoint.js +1 -1
  46. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/requireFoundryEndpoint.js.map +1 -1
  47. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/requireTenantId.js +1 -1
  48. package/dist/nodes/llms/LmChatAzureOpenAi/credentials/requireTenantId.js.map +1 -1
  49. package/dist/nodes/llms/LmChatAzureOpenAi/error-handling.d.ts +1 -1
  50. package/dist/nodes/llms/LmChatAzureOpenAi/error-handling.js +12 -6
  51. package/dist/nodes/llms/LmChatAzureOpenAi/error-handling.js.map +1 -1
  52. package/dist/nodes/llms/LmChatAzureOpenAi/methods/searchModels.js +1 -1
  53. package/dist/nodes/llms/LmChatAzureOpenAi/methods/searchModels.js.map +1 -1
  54. package/dist/nodes/llms/LmChatAzureOpenAi/properties.js +29 -4
  55. package/dist/nodes/llms/LmChatAzureOpenAi/properties.js.map +1 -1
  56. package/dist/nodes/llms/LmChatAzureOpenAi/types.d.ts +1 -0
  57. package/dist/nodes/llms/LmChatAzureOpenAi/types.js +2 -1
  58. package/dist/nodes/llms/LmChatAzureOpenAi/types.js.map +1 -1
  59. package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js +2 -1
  60. package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js.map +1 -1
  61. package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.d.ts +5 -6
  62. package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js +9 -41
  63. package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js.map +1 -1
  64. package/dist/nodes/vector_store/VectorStoreDatabricks/DatabricksVectorStore.d.ts +1 -0
  65. package/dist/nodes/vector_store/VectorStoreDatabricks/DatabricksVectorStore.js +19 -5
  66. package/dist/nodes/vector_store/VectorStoreDatabricks/DatabricksVectorStore.js.map +1 -1
  67. package/dist/nodes/vector_store/VectorStoreDatabricks/VectorStoreDatabricks.node.js +4 -1
  68. package/dist/nodes/vector_store/VectorStoreDatabricks/VectorStoreDatabricks.node.js.map +1 -1
  69. package/dist/nodes/vendors/Databricks/DatabricksAiAgent.node.d.ts +5 -0
  70. package/dist/nodes/vendors/Databricks/DatabricksAiAgent.node.js +170 -0
  71. package/dist/nodes/vendors/Databricks/DatabricksAiAgent.node.js.map +1 -0
  72. package/dist/nodes/vendors/Databricks/databricks.dark.svg +19 -0
  73. package/dist/nodes/vendors/Databricks/databricks.svg +19 -0
  74. package/dist/nodes/vendors/Databricks/mlflow/span-collector.d.ts +48 -0
  75. package/dist/nodes/vendors/Databricks/mlflow/span-collector.js +378 -0
  76. package/dist/nodes/vendors/Databricks/mlflow/span-collector.js.map +1 -0
  77. package/dist/nodes/vendors/Databricks/mlflow/trace-writer.d.ts +41 -0
  78. package/dist/nodes/vendors/Databricks/mlflow/trace-writer.js +129 -0
  79. package/dist/nodes/vendors/Databricks/mlflow/trace-writer.js.map +1 -0
  80. package/dist/nodes/vendors/Databricks/mlflow/transport.d.ts +7 -0
  81. package/dist/nodes/vendors/Databricks/mlflow/transport.js +72 -0
  82. package/dist/nodes/vendors/Databricks/mlflow/transport.js.map +1 -0
  83. package/dist/nodes/vendors/Databricks/mlflow/types.d.ts +54 -0
  84. package/dist/nodes/vendors/Databricks/mlflow/types.js +23 -0
  85. package/dist/nodes/vendors/Databricks/mlflow/types.js.map +1 -0
  86. package/dist/typecheck.tsbuildinfo +1 -1
  87. package/dist/types/credentials.json +3 -2
  88. package/dist/types/nodes.json +6 -5
  89. package/dist/utils/google-vertex.d.ts +14 -0
  90. package/dist/utils/google-vertex.js +130 -0
  91. package/dist/utils/google-vertex.js.map +1 -0
  92. package/package.json +12 -10
@@ -5,7 +5,7 @@ const defaultScopes = ['openid', 'offline_access'];
5
5
  class AzureEntraCognitiveServicesOAuth2Api {
6
6
  constructor() {
7
7
  this.name = 'azureEntraCognitiveServicesOAuth2Api';
8
- this.displayName = 'Azure Entra ID (Azure Active Directory) API';
8
+ this.displayName = 'Microsoft Foundry (Entra ID)';
9
9
  this.extends = ['oAuth2Api'];
10
10
  this.documentationUrl = 'https://docs.n8n.io/integrations/builtin/credentials/azureopenai/#using-azure-entra-id-oauth2';
11
11
  this.properties = [
@@ -21,10 +21,10 @@ class AzureEntraCognitiveServicesOAuth2Api {
21
21
  type: 'options',
22
22
  options: [
23
23
  { name: 'Classic', value: 'classic' },
24
- { name: 'Azure AI Foundry', value: 'foundry' },
24
+ { name: 'Microsoft Foundry', value: 'foundry' },
25
25
  ],
26
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).',
27
+ description: 'Classic targets *.openai.azure.com (resource name + deployment-based URLs). Microsoft Foundry targets *.services.ai.azure.com/openai/v1 (full endpoint URL).',
28
28
  },
29
29
  {
30
30
  displayName: 'Resource Name',
@@ -50,7 +50,7 @@ class AzureEntraCognitiveServicesOAuth2Api {
50
50
  default: '',
51
51
  placeholder: 'https://<resource>.services.ai.azure.com/openai/v1',
52
52
  displayOptions: { show: { endpointType: ['foundry'] } },
53
- hint: 'The full Azure AI Foundry OpenAI-compatible base URL.',
53
+ hint: 'The full Microsoft Foundry OpenAI-compatible base URL.',
54
54
  },
55
55
  {
56
56
  displayName: 'Endpoint',
@@ -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;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AA2B;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,OAAO,EAAE,aAAa,CAAC,IAAI,CAAC,GAAG,CAAC;aAChC;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,8BAA8B,CAAC;QAE7C,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,qBAAgB,GACf,+FAA+F,CAAC;QAEjG,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,mBAAmB;aAC5B;YACD;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,SAAS,EAAE;iBAC/C;gBACD,OAAO,EAAE,SAAS;gBAClB,WAAW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ructor() {
6
6
  this.name = 'azureOpenAiApi';
7
- this.displayName = 'Azure Open AI';
7
+ this.displayName = 'Microsoft Foundry (API Key)';
8
8
  this.documentationUrl = 'azureopenai';
9
9
  this.properties = [
10
10
  {
@@ -13,10 +13,10 @@ class AzureOpenAiApi {
13
13
  type: 'options',
14
14
  options: [
15
15
  { name: 'Classic', value: 'classic' },
16
- { name: 'Azure AI Foundry', value: 'foundry' },
16
+ { name: 'Microsoft Foundry', value: 'foundry' },
17
17
  ],
18
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).',
19
+ description: 'Classic targets *.openai.azure.com (resource name + deployment-based URLs). Microsoft Foundry targets *.services.ai.azure.com/openai/v1 (full endpoint URL).',
20
20
  },
21
21
  {
22
22
  displayName: 'API Key',
@@ -50,7 +50,7 @@ class AzureOpenAiApi {
50
50
  default: '',
51
51
  placeholder: 'https://<resource>.services.ai.azure.com/openai/v1',
52
52
  displayOptions: { show: { endpointType: ['foundry'] } },
53
- hint: 'The full Azure AI Foundry OpenAI-compatible base URL.',
53
+ hint: 'The full Microsoft Foundry OpenAI-compatible base URL.',
54
54
  },
55
55
  {
56
56
  displayName: 'Endpoint',
@@ -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,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,kBAAkB,EAAE,KA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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"}
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,6BAA6B,CAAC;QAE5C,qBAAgB,GAAG,aAAa,CAAC;QAEjC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,eAAe;gBAC5B,IAAI,EAAE,cAAc;gBACpB,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE;oBACR,EAAE,IAAI,EAAE,SAAS,EAAE,KAAK,EAAE,SAAS,EAAE;oBACrC,EAAE,IAAI,EAAE,mBAAmB,EAAE,KAAK,EAAE,SAAS,EAAE;iBAC/C;gBACD,OAAO,EAAE,SAAS;gBAClB,WAAW,EACV,8JAA8J;aAC/J;YACD;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;gBACX,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;aACvD;YACD;gBACC,WAAW,EAAE,aAAa;gBAC1B,IAAI,EAAE,YAAY;gBAClB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,oBAAoB;gBAC7B,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;aACvD;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,iBAAiB;gBACvB,IAAI,EAAE,QAAQ;gBACd,QAAQ,EAAE,IAAI;gBACd,OAAO,EAAE,EAAE;gBACX,WAAW,EAAE,oDAAoD;gBACjE,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,YAAY,EAAE,CAAC,SAAS,CAAC,EAAE,EAAE;gBACvD,IAAI,EAAE,wDAAwD;aAC9D;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"}
@@ -0,0 +1,15 @@
1
+ import type { ICredentialType, INodeProperties, Icon } from 'n8n-workflow';
2
+ import { searchGoogleProjects } from '../utils/google-vertex';
3
+ export declare class GoogleVertexAiApi implements ICredentialType {
4
+ name: string;
5
+ extends: string[];
6
+ displayName: string;
7
+ documentationUrl: string;
8
+ icon: Icon;
9
+ properties: INodeProperties[];
10
+ methods: {
11
+ loadOptions: {
12
+ gcpProjectsList: typeof searchGoogleProjects;
13
+ };
14
+ };
15
+ }
@@ -0,0 +1,83 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.GoogleVertexAiApi = void 0;
4
+ const google_vertex_1 = require("../utils/google-vertex");
5
+ class GoogleVertexAiApi {
6
+ constructor() {
7
+ this.name = 'googleVertexAiApi';
8
+ this.extends = ['googleApi'];
9
+ this.displayName = 'Google Vertex AI';
10
+ this.documentationUrl = 'googlevertexai';
11
+ this.icon = 'file:icons/google.svg';
12
+ this.properties = [
13
+ {
14
+ displayName: 'Project',
15
+ name: 'project',
16
+ type: 'options',
17
+ options: [{ name: 'Custom', value: google_vertex_1.GOOGLE_VERTEX_CUSTOM_PROJECT }],
18
+ default: google_vertex_1.GOOGLE_VERTEX_CUSTOM_PROJECT,
19
+ required: true,
20
+ description: 'Select a Google Cloud project, or select Custom to enter a project ID',
21
+ typeOptions: {
22
+ loadOptionsMethod: 'gcpProjectsList',
23
+ loadOptionsDependsOn: ['email', 'privateKey'],
24
+ },
25
+ },
26
+ {
27
+ displayName: 'Project ID',
28
+ name: 'projectId',
29
+ type: 'string',
30
+ default: '',
31
+ required: true,
32
+ placeholder: 'my-project-id',
33
+ description: 'Google Cloud project to use with Vertex AI',
34
+ displayOptions: { show: { project: [google_vertex_1.GOOGLE_VERTEX_CUSTOM_PROJECT] } },
35
+ },
36
+ {
37
+ displayName: 'Impersonate a User',
38
+ name: 'inpersonate',
39
+ type: 'hidden',
40
+ default: false,
41
+ },
42
+ {
43
+ displayName: 'Email',
44
+ name: 'delegatedEmail',
45
+ type: 'hidden',
46
+ default: '',
47
+ },
48
+ {
49
+ displayName: 'Set up for use in HTTP Request node',
50
+ name: 'httpNode',
51
+ type: 'hidden',
52
+ default: false,
53
+ },
54
+ {
55
+ displayName: 'HTTP Request Warning',
56
+ name: 'httpWarning',
57
+ type: 'hidden',
58
+ default: '',
59
+ },
60
+ {
61
+ displayName: 'Scope(s)',
62
+ name: 'scopes',
63
+ type: 'hidden',
64
+ default: '',
65
+ },
66
+ {
67
+ displayName: 'Allowed HTTP Request Domains',
68
+ name: 'allowedHttpRequestDomains',
69
+ type: 'hidden',
70
+ default: 'all',
71
+ },
72
+ {
73
+ displayName: 'Allowed Domains',
74
+ name: 'allowedDomains',
75
+ type: 'hidden',
76
+ default: '',
77
+ },
78
+ ];
79
+ this.methods = { loadOptions: { gcpProjectsList: google_vertex_1.searchGoogleProjects } };
80
+ }
81
+ }
82
+ exports.GoogleVertexAiApi = GoogleVertexAiApi;
83
+ //# sourceMappingURL=GoogleVertexAiApi.credentials.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"GoogleVertexAiApi.credentials.js","sourceRoot":"","sources":["../../credentials/GoogleVertexAiApi.credentials.ts"],"names":[],"mappings":";;;AAEA,0DAA4F;AAE5F;IAAA;QACC,SAAI,GAAG,mBAAmB,CAAC;QAE3B,YAAO,GAAG,CAAC,WAAW,CAAC,CAAC;QAExB,gBAAW,GAAG,kBAAkB,CAAC;QAEjC,qBAAgB,GAAG,gBAAgB,CAAC;QAEpC,SAAI,GAAS,uBAAuB,CAAC;QAErC,eAAU,GAAsB;YAC/B;gBACC,WAAW,EAAE,SAAS;gBACtB,IAAI,EAAE,SAAS;gBACf,IAAI,EAAE,SAAS;gBACf,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,QAAQ,EAAE,KAAK,EAAE,4CAA4B,EAAE,CAAC;gBAClE,OAAO,EAAE,4CAA4B;gBACrC,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,uEAAuE;gBACpF,WAAW,EAAE;oBACZ,iBAAiB,EAAE,iBAAiB;oBACpC,oBAAoB,EAAE,CAAC,OAAO,EAAE,YAAY,CAAC;iBAC7C;aACD;YACD;gBACC,WAAW,EAAE,YAAY;gBACzB,IAAI,EAAE,WAAW;gBACjB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;gBACX,QAAQ,EAAE,IAAI;gBACd,WAAW,EAAE,eAAe;gBAC5B,WAAW,EAAE,4CAA4C;gBACzD,cAAc,EAAE,EAAE,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,4CAA4B,CAAC,EAAE,EAAE;aACrE;YAED;gBACC,WAAW,EAAE,oBAAoB;gBACjC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,KAAK;aACd;YACD;gBACC,WAAW,EAAE,OAAO;gBACpB,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,qCAAqC;gBAClD,IAAI,EAAE,UAAU;gBAChB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,KAAK;aACd;YACD;gBACC,WAAW,EAAE,sBAAsB;gBACnC,IAAI,EAAE,aAAa;gBACnB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,UAAU;gBACvB,IAAI,EAAE,QAAQ;gBACd,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;YACD;gBACC,WAAW,EAAE,8BAA8B;gBAC3C,IAAI,EAAE,2BAA2B;gBACjC,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,KAAK;aACd;YACD;gBACC,WAAW,EAAE,iBAAiB;gBAC9B,IAAI,EAAE,gBAAgB;gBACtB,IAAI,EAAE,QAAQ;gBACd,OAAO,EAAE,EAAE;aACX;SACD,CAAC;QAEF,YAAO,GAAG,EAAE,WAAW,EAAE,EAAE,eAAe,EAAE,oCAAoB,EAAE,EAAE,CAAC;IACtE,CAAC;CAAA"}
@@ -0,0 +1 @@
1
+ <svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" viewBox="0 0 48 48"><defs><path id="a" d="M44.5 20H24v8.5h11.8C34.7 33.9 30.1 37 24 37c-7.2 0-13-5.8-13-13s5.8-13 13-13c3.1 0 5.9 1.1 8.1 2.9l6.4-6.4C34.6 4.1 29.6 2 24 2 11.8 2 2 11.8 2 24s9.8 22 22 22c11 0 21-8 21-22 0-1.3-.2-2.7-.5-4"/></defs><clipPath id="b"><use xlink:href="#a" overflow="visible"/></clipPath><path fill="#FBBC05" d="M0 37V11l17 13z" clip-path="url(#b)"/><path fill="#EA4335" d="m0 11 17 13 7-6.1L48 14V0H0z" clip-path="url(#b)"/><path fill="#34A853" d="m0 37 30-23 7.9 1L48 0v48H0z" clip-path="url(#b)"/><path fill="#4285F4" d="M48 48 17 24l-4-3 35-10z" clip-path="url(#b)"/></svg>
@@ -37,6 +37,7 @@
37
37
  "oAuth2Api"
38
38
  ],
39
39
  "supportedNodes": [
40
+ "embeddingsAzureOpenAi",
40
41
  "lmChatAzureOpenAi"
41
42
  ]
42
43
  },
@@ -88,6 +89,17 @@
88
89
  "lmChatGoogleGemini"
89
90
  ]
90
91
  },
92
+ "googleVertexAiApi": {
93
+ "className": "GoogleVertexAiApi",
94
+ "sourcePath": "dist/credentials/GoogleVertexAiApi.credentials.js",
95
+ "extends": [
96
+ "googleApi"
97
+ ],
98
+ "supportedNodes": [
99
+ "embeddingsGoogleVertex",
100
+ "lmChatGoogleVertex"
101
+ ]
102
+ },
91
103
  "groqApi": {
92
104
  "className": "GroqApi",
93
105
  "sourcePath": "dist/credentials/GroqApi.credentials.js",
@@ -31,6 +31,10 @@
31
31
  "className": "MicrosoftAgent365Trigger",
32
32
  "sourcePath": "dist/nodes/vendors/Microsoft/MicrosoftAgent365Trigger.node.js"
33
33
  },
34
+ "databricksAiAgent": {
35
+ "className": "DatabricksAiAgent",
36
+ "sourcePath": "dist/nodes/vendors/Databricks/DatabricksAiAgent.node.js"
37
+ },
34
38
  "agent": {
35
39
  "className": "Agent",
36
40
  "sourcePath": "dist/nodes/agents/Agent/Agent.node.js"
@@ -1 +1 @@
1
- d83ae537db5c209efeaec5827048a020dd7b9b092c39b9ee6aa95641f6fcd3c2
1
+ 2e128a508c9654fa7d3c9fcdb879bd7812babf95da0e694375cd11f9f56e683a
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Embeddings Azure OpenAI Node Types
2
+ * Microsoft Foundry Embeddings Node Types
3
3
  *
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Embeddings Azure OpenAI Node - Version 1 - Zod Validation Schemas
2
+ * Microsoft Foundry Embeddings Node - Version 1 - Zod Validation Schemas
3
3
  *
4
4
  * These schemas validate node configuration at runtime.
5
5
  * Use .parse() for strict validation or .safeParse() for error handling.
@@ -14,6 +14,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
+ authentication: z.union([z.literal('azureOpenAiApi'), z.literal('azureEntraCognitiveServicesOAuth2Api'), expressionSchema]).optional(),
17
18
  model: stringOrExpression.optional(),
18
19
  options: z.object({ batchSize: numberOrExpression.optional(), stripNewLines: booleanOrExpression.optional(), timeout: numberOrExpression.optional(), dimensions: z.union([z.literal(256), z.literal(512), z.literal(1024), z.literal(1536), z.literal(3072), expressionSchema]).optional() }).optional(),
19
20
  });
@@ -1,10 +1,11 @@
1
1
  /**
2
- * Embeddings Azure OpenAI Node - Version 1
3
- * Use Embeddings Azure OpenAI
2
+ * Microsoft Foundry Embeddings Node - Version 1
3
+ * Use Microsoft Foundry Embeddings
4
4
  */
5
5
 
6
6
 
7
7
  export interface LcEmbeddingsAzureOpenAiV1Params {
8
+ authentication?: 'azureOpenAiApi' | 'azureEntraCognitiveServicesOAuth2Api' | Expression<string>;
8
9
  /**
9
10
  * The name of the model(deployment) to use
10
11
  */
@@ -35,6 +36,7 @@ export interface LcEmbeddingsAzureOpenAiV1Params {
35
36
 
36
37
  export interface LcEmbeddingsAzureOpenAiV1Credentials {
37
38
  azureOpenAiApi: CredentialReference;
39
+ azureEntraCognitiveServicesOAuth2Api: CredentialReference;
38
40
  }
39
41
 
40
42
  interface LcEmbeddingsAzureOpenAiV1NodeBase {
@@ -10,11 +10,12 @@
10
10
  * @generated - CommonJS JavaScript for runtime loading
11
11
  */
12
12
 
13
- module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
- projectId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
17
+ authentication: z.union([z.literal('googleApi'), z.literal('googleVertexAiApi')]).optional(),
18
+ projectId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"show":{"authentication":["googleApi"]}}, defaults: {"authentication":"googleApi"} }),
18
19
  modelName: stringOrExpression.optional(),
19
20
  location: z.union([z.literal(''), z.literal('global'), z.literal('eu'), z.literal('us'), expressionSchema]).optional(),
20
21
  });
@@ -5,9 +5,11 @@
5
5
 
6
6
 
7
7
  export interface LcEmbeddingsGoogleVertexV1Params {
8
+ authentication?: 'googleApi' | 'googleVertexAiApi';
8
9
  /**
9
10
  * Select or enter your Google Cloud project ID
10
11
  * @searchListMethod gcpProjectsList
12
+ * @displayOptions.show { authentication: ["googleApi"] }
11
13
  * @default {"mode":"list","value":""}
12
14
  */
13
15
  projectId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
@@ -24,6 +26,7 @@ export interface LcEmbeddingsGoogleVertexV1Params {
24
26
 
25
27
  export interface LcEmbeddingsGoogleVertexV1Credentials {
26
28
  googleApi: CredentialReference;
29
+ googleVertexAiApi: CredentialReference;
27
30
  }
28
31
 
29
32
  interface LcEmbeddingsGoogleVertexV1NodeBase {
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Azure AI Foundry Chat Model Node Types
2
+ * Microsoft Foundry Chat Model Node Types
3
3
  *
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Azure AI Foundry Chat Model Node - Version 1 - Zod Validation Schemas
2
+ * Microsoft Foundry Chat Model Node - Version 1 - Zod Validation Schemas
3
3
  *
4
4
  * These schemas validate node configuration at runtime.
5
5
  * Use .parse() for strict validation or .safeParse() for error handling.
@@ -17,6 +17,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
17
17
  authentication: z.union([z.literal('azureOpenAiApi'), z.literal('azureEntraCognitiveServicesOAuth2Api'), expressionSchema]).optional(),
18
18
  model: stringOrExpression,
19
19
  project: stringOrExpression.optional(),
20
+ modelFamily: z.union([z.literal('openai'), z.literal('anthropic'), expressionSchema]).optional(),
20
21
  options: z.object({ frequencyPenalty: numberOrExpression.optional(), maxTokens: numberOrExpression.optional(), responseFormat: z.union([z.literal('text'), z.literal('json_object'), expressionSchema]).optional(), presencePenalty: numberOrExpression.optional(), temperature: numberOrExpression.optional(), timeout: numberOrExpression.optional(), maxRetries: numberOrExpression.optional(), topP: numberOrExpression.optional(), extraBody: z.union([iDataObjectSchema, z.string()]).optional() }).optional(),
21
22
  });
22
23
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Azure AI Foundry Chat Model Node - Version 1
2
+ * Microsoft Foundry Chat Model Node - Version 1
3
3
  * For advanced usage with an AI chain
4
4
  */
5
5
 
@@ -11,15 +11,21 @@ export interface LcLmChatAzureOpenAiV1Params {
11
11
  */
12
12
  model: string | Expression<string>;
13
13
  /**
14
- * The Azure AI Foundry project that owns the deployment. Required for an Azure AI Foundry resource; leave empty for a classic Azure OpenAI resource.
14
+ * The Microsoft Foundry project that owns the deployment. Required for a Microsoft Foundry resource; leave empty for a classic Azure OpenAI resource.
15
15
  */
16
16
  project?: string | Expression<string>;
17
+ /**
18
+ * The API family the deployment answers on. Azure does not report this, so set it to match the deployment: OpenAI for GPT and other OpenAI-compatible models, Anthropic for Claude. Anthropic needs a credential using the Azure AI Foundry endpoint type.
19
+ * @default openai
20
+ */
21
+ modelFamily?: 'openai' | 'anthropic' | Expression<string>;
17
22
  /**
18
23
  * Additional options to add
19
24
  * @default {}
20
25
  */
21
26
  options?: {
22
27
  /** Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim
28
+ * @displayOptions.show { /modelFamily: ["openai"] }
23
29
  * @default 0
24
30
  */
25
31
  frequencyPenalty?: number | Expression<number>;
@@ -28,14 +34,17 @@ export interface LcLmChatAzureOpenAiV1Params {
28
34
  */
29
35
  maxTokens?: number | Expression<number>;
30
36
  /** Response Format
37
+ * @displayOptions.show { /modelFamily: ["openai"] }
31
38
  * @default text
32
39
  */
33
40
  responseFormat?: 'text' | 'json_object' | Expression<string>;
34
41
  /** Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics
42
+ * @displayOptions.show { /modelFamily: ["openai"] }
35
43
  * @default 0
36
44
  */
37
45
  presencePenalty?: number | Expression<number>;
38
46
  /** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
47
+ * @displayOptions.show { /modelFamily: ["openai", "anthropic"] }
39
48
  * @default 0.7
40
49
  */
41
50
  temperature?: number | Expression<number>;
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Azure AI Foundry Chat Model Node - Version 1.1 - Zod Validation Schemas
2
+ * Microsoft Foundry Chat Model Node - Version 1.1 - Zod Validation Schemas
3
3
  *
4
4
  * These schemas validate node configuration at runtime.
5
5
  * Use .parse() for strict validation or .safeParse() for error handling.
@@ -17,7 +17,8 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
17
17
  authentication: z.union([z.literal('azureOpenAiApi'), z.literal('azureEntraCognitiveServicesOAuth2Api'), expressionSchema]).optional(),
18
18
  project: stringOrExpression.optional(),
19
19
  model: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
20
- responsesApiEnabled: booleanOrExpression.optional(),
20
+ modelFamily: z.union([z.literal('openai'), z.literal('anthropic'), expressionSchema]).optional(),
21
+ responsesApiEnabled: resolveSchema({ parameters, schema: booleanOrExpression, required: false, displayOptions: {"show":{"modelFamily":["openai"]}}, defaults: {"modelFamily":"openai"} }),
21
22
  options: z.object({ frequencyPenalty: numberOrExpression.optional(), maxTokens: numberOrExpression.optional(), responseFormat: z.union([z.literal('text'), z.literal('json_object'), expressionSchema]).optional(), presencePenalty: numberOrExpression.optional(), temperature: numberOrExpression.optional(), timeout: numberOrExpression.optional(), maxRetries: numberOrExpression.optional(), topP: numberOrExpression.optional(), extraBody: z.union([iDataObjectSchema, z.string()]).optional() }).optional(),
22
23
  });
23
24
 
@@ -1,5 +1,5 @@
1
1
  /**
2
- * Azure AI Foundry Chat Model Node - Version 1.1
2
+ * Microsoft Foundry Chat Model Node - Version 1.1
3
3
  * For advanced usage with an AI chain
4
4
  */
5
5
 
@@ -7,18 +7,24 @@
7
7
  export interface LcLmChatAzureOpenAiV11Params {
8
8
  authentication?: 'azureOpenAiApi' | 'azureEntraCognitiveServicesOAuth2Api' | Expression<string>;
9
9
  /**
10
- * The Azure AI Foundry project that owns the deployment. Required for an Azure AI Foundry resource; leave empty for a classic Azure OpenAI resource.
10
+ * The Microsoft Foundry project that owns the deployment. Required for a Microsoft Foundry resource; leave empty for a classic Azure OpenAI resource.
11
11
  */
12
12
  project?: string | Expression<string>;
13
13
  /**
14
- * The deployment to use. Choose from the list (Azure AI Foundry credentials only), or enter the deployment name.
15
- * @builderHint Set the project parameter before you list deployments. The list needs an Azure AI Foundry credential. With a classic credential, use the id mode and enter the deployment name.
14
+ * The deployment to use. Choose from the list (Microsoft Foundry credentials only), or enter the deployment name.
15
+ * @builderHint Set the project parameter before you list deployments. The list needs a Microsoft Foundry credential. With a classic credential, use the id mode and enter the deployment name.
16
16
  * @searchListMethod searchModels
17
17
  * @default {"mode":"id","value":""}
18
18
  */
19
19
  model?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
20
20
  /**
21
- * Whether to call the deployment on the Responses API instead of Chat Completions. Azure does not tell us which one a deployment supports, so set this to match your deployment: leave it off for a chat-completions deployment, turn it on for a Responses-only one. Needs a credential using the Azure AI Foundry endpoint type.
21
+ * The API family the deployment answers on. Azure does not report this, so set it to match the deployment: OpenAI for GPT and other OpenAI-compatible models, Anthropic for Claude. Anthropic needs a credential using the Azure AI Foundry endpoint type.
22
+ * @default openai
23
+ */
24
+ modelFamily?: 'openai' | 'anthropic' | Expression<string>;
25
+ /**
26
+ * Whether to call the deployment on the Responses API instead of Chat Completions. Azure does not tell us which one a deployment supports, so set this to match your deployment: leave it off for a chat-completions deployment, turn it on for a Responses-only one. Needs a credential using the Microsoft Foundry endpoint type.
27
+ * @displayOptions.show { modelFamily: ["openai"] }
22
28
  * @default false
23
29
  */
24
30
  responsesApiEnabled?: boolean | Expression<boolean>;
@@ -28,6 +34,7 @@ export interface LcLmChatAzureOpenAiV11Params {
28
34
  */
29
35
  options?: {
30
36
  /** Positive values penalize new tokens based on their existing frequency in the text so far, decreasing the model's likelihood to repeat the same line verbatim
37
+ * @displayOptions.show { /modelFamily: ["openai"] }
31
38
  * @default 0
32
39
  */
33
40
  frequencyPenalty?: number | Expression<number>;
@@ -36,14 +43,17 @@ export interface LcLmChatAzureOpenAiV11Params {
36
43
  */
37
44
  maxTokens?: number | Expression<number>;
38
45
  /** Response Format
46
+ * @displayOptions.show { /modelFamily: ["openai"] }
39
47
  * @default text
40
48
  */
41
49
  responseFormat?: 'text' | 'json_object' | Expression<string>;
42
50
  /** Positive values penalize new tokens based on whether they appear in the text so far, increasing the model's likelihood to talk about new topics
51
+ * @displayOptions.show { /modelFamily: ["openai"] }
43
52
  * @default 0
44
53
  */
45
54
  presencePenalty?: number | Expression<number>;
46
55
  /** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
56
+ * @displayOptions.show { /modelFamily: ["openai", "anthropic"] }
47
57
  * @default 0.7
48
58
  */
49
59
  temperature?: number | Expression<number>;
@@ -7,7 +7,7 @@
7
7
  export interface LcLmChatGoogleGeminiV1Params {
8
8
  /**
9
9
  * The model which will generate the completion. &lt;a href="https://developers.generativeai.google/api/rest/generativelanguage/models/list"&gt;Learn more&lt;/a&gt;.
10
- * @builderHint Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
10
+ * @builderHint This node declares no model-list lookup, so its models cannot be listed, even with a connected credential. For a new choice, use current Google provider catalog information and choose a Gemini 3.x or newer model ID with the "models/" prefix. Do not choose Gemini 2.x or older. Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
11
11
  * @default models/gemini-2.5-flash
12
12
  */
13
13
  modelName?: string | Expression<string>;
@@ -7,7 +7,7 @@
7
7
  export interface LcLmChatGoogleGeminiV11Params {
8
8
  /**
9
9
  * The model which will generate the completion. &lt;a href="https://developers.generativeai.google/api/rest/generativelanguage/models/list"&gt;Learn more&lt;/a&gt;.
10
- * @builderHint Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
10
+ * @builderHint This node declares no model-list lookup, so its models cannot be listed, even with a connected credential. For a new choice, use current Google provider catalog information and choose a Gemini 3.x or newer model ID with the "models/" prefix. Do not choose Gemini 2.x or older. Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
11
11
  * @default models/gemini-3-flash-preview
12
12
  */
13
13
  modelName?: string | Expression<string>;
@@ -7,7 +7,7 @@
7
7
  export interface LcLmChatGoogleGeminiV12Params {
8
8
  /**
9
9
  * The model which will generate the completion. &lt;a href="https://developers.generativeai.google/api/rest/generativelanguage/models/list"&gt;Learn more&lt;/a&gt;.
10
- * @builderHint Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
10
+ * @builderHint This node declares no model-list lookup, so its models cannot be listed, even with a connected credential. For a new choice, use current Google provider catalog information and choose a Gemini 3.x or newer model ID with the "models/" prefix. Do not choose Gemini 2.x or older. Keep a working or explicitly requested model unless provider evidence shows it is unavailable or unsuitable. When choosing a new model, select a current stable model supported by this node version, the configured API, and the required operation. Use the declared model-list lookup with the connected credential when available. Gateway credits can restrict that list. For a new choice without credentials, use current provider catalog information. Choose a model that fits the task and budget. Copy the exact model ID. Do not rely on node defaults, invent model IDs, or treat an unfamiliar model as invalid.
11
11
  * @default models/gemini-3-flash-preview
12
12
  */
13
13
  modelName?: string | Expression<string>;
@@ -10,11 +10,12 @@
10
10
  * @generated - CommonJS JavaScript for runtime loading
11
11
  */
12
12
 
13
- module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema }) {
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas }) {
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
- projectId: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]).optional(),
17
+ authentication: z.union([z.literal('googleApi'), z.literal('googleVertexAiApi')]).optional(),
18
+ projectId: resolveSchema({ parameters, schema: z.union([z.object({ __rl: z.literal(true), mode: z.union([z.literal('list'), z.literal('id')]), value: z.union([z.string(), z.number()]), cachedResultName: z.string().optional(), cachedResultUrl: z.string().optional() }), expressionSchema]), required: false, displayOptions: {"show":{"authentication":["googleApi"]}}, defaults: {"authentication":"googleApi"} }),
18
19
  modelName: stringOrExpression.optional(),
19
20
  location: z.union([z.literal(''), z.literal('global'), z.literal('eu'), z.literal('us'), expressionSchema]).optional(),
20
21
  options: z.object({ maxOutputTokens: numberOrExpression.optional(), temperature: numberOrExpression.optional(), topK: numberOrExpression.optional(), topP: numberOrExpression.optional(), safetySettings: z.object({ values: z.array(z.object({ category: z.union([z.literal('HARM_CATEGORY_HARASSMENT'), z.literal('HARM_CATEGORY_HATE_SPEECH'), z.literal('HARM_CATEGORY_SEXUALLY_EXPLICIT'), z.literal('HARM_CATEGORY_DANGEROUS_CONTENT'), expressionSchema]).optional(), threshold: z.union([z.literal('HARM_BLOCK_THRESHOLD_UNSPECIFIED'), z.literal('BLOCK_LOW_AND_ABOVE'), z.literal('BLOCK_MEDIUM_AND_ABOVE'), z.literal('BLOCK_ONLY_HIGH'), z.literal('BLOCK_NONE'), expressionSchema]).optional() })).optional() }).optional(), thinkingBudget: numberOrExpression.optional() }).optional(),
@@ -5,9 +5,11 @@
5
5
 
6
6
 
7
7
  export interface LcLmChatGoogleVertexV1Params {
8
+ authentication?: 'googleApi' | 'googleVertexAiApi';
8
9
  /**
9
10
  * Select or enter your Google Cloud project ID
10
11
  * @searchListMethod gcpProjectsList
12
+ * @displayOptions.show { authentication: ["googleApi"] }
11
13
  * @default {"mode":"list","value":""}
12
14
  */
13
15
  projectId?: { __rl: true; mode: 'list' | 'id'; value: string; cachedResultName?: string };
@@ -68,6 +70,7 @@ export interface LcLmChatGoogleVertexV1Params {
68
70
 
69
71
  export interface LcLmChatGoogleVertexV1Credentials {
70
72
  googleApi: CredentialReference;
73
+ googleVertexAiApi: CredentialReference;
71
74
  }
72
75
 
73
76
  interface LcLmChatGoogleVertexV1NodeBase {
@@ -1,12 +1,17 @@
1
1
  import { AgentExecutor } from '@langchain/classic/agents';
2
2
  import type { BaseChatMemory } from '@langchain/classic/memory';
3
3
  import type { DynamicStructuredTool, Tool } from '@langchain/classic/tools';
4
+ import { BaseCallbackHandler } from '@langchain/core/callbacks/base';
4
5
  import type { BaseChatModel } from '@langchain/core/language_models/chat_models';
5
6
  import type { ChatPromptTemplate } from '@langchain/core/prompts';
6
7
  import type { IExecuteFunctions, INodeExecutionData, ISupplyDataFunctions } from 'n8n-workflow';
7
8
  import { type N8nOutputParser } from '../../../../../../utils/output_parsers/N8nOutputParser';
9
+ export interface AgentExecutionHooks {
10
+ createCallbacks?: (itemIndex: number) => BaseCallbackHandler[];
11
+ onItemFinished?: (itemIndex: number) => Promise<void>;
12
+ }
8
13
  export declare function createAgentExecutor(model: BaseChatModel, tools: Array<DynamicStructuredTool | Tool>, prompt: ChatPromptTemplate, options: {
9
14
  maxIterations?: number;
10
15
  returnIntermediateSteps?: boolean;
11
16
  }, outputParser?: N8nOutputParser, memory?: BaseChatMemory, fallbackModel?: BaseChatModel | null): AgentExecutor;
12
- export declare function toolsAgentExecute(this: IExecuteFunctions | ISupplyDataFunctions): Promise<INodeExecutionData[][]>;
17
+ export declare function toolsAgentExecute(this: IExecuteFunctions | ISupplyDataFunctions, hooks?: AgentExecutionHooks): Promise<INodeExecutionData[][]>;