@n8n/n8n-nodes-langchain 2.19.2 → 2.20.1

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 (147) hide show
  1. package/dist/node-definitions/.nodes-hash +1 -1
  2. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v1.schema.js +3 -3
  3. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v1.ts +0 -1
  4. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v11.schema.js +3 -3
  5. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v11.ts +7 -7
  6. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v12.schema.js +3 -3
  7. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v12.ts +7 -7
  8. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v13.schema.js +4 -4
  9. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v13.ts +7 -8
  10. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v14.schema.js +4 -4
  11. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v14.ts +7 -8
  12. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v15.schema.js +4 -4
  13. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v15.ts +7 -8
  14. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v16.schema.js +8 -8
  15. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v16.ts +9 -10
  16. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v17.schema.js +8 -8
  17. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v17.ts +9 -10
  18. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v18.schema.js +8 -8
  19. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v18.ts +9 -10
  20. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v19.schema.js +8 -8
  21. package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v19.ts +9 -10
  22. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/v1.schema.js +2 -2
  23. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/v11.schema.js +2 -2
  24. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/v12.schema.js +2 -2
  25. package/dist/node-definitions/nodes/n8n-nodes-langchain/chat/v13.schema.js +2 -2
  26. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v1.schema.js +2 -2
  27. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v1.ts +1 -0
  28. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v11.schema.js +2 -2
  29. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v11.ts +2 -1
  30. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v12.ts +1 -0
  31. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v13.schema.js +2 -2
  32. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v13.ts +1 -0
  33. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v14.schema.js +2 -2
  34. package/dist/node-definitions/nodes/n8n-nodes-langchain/chatTrigger/v14.ts +2 -1
  35. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/index.ts +3 -1
  36. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v1.schema.js +1 -1
  37. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v1.ts +23 -4
  38. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v11.schema.js +1 -1
  39. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v11.ts +24 -5
  40. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v12.schema.js +2 -2
  41. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v12.ts +25 -6
  42. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v13.schema.js +1 -1
  43. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v13.ts +23 -4
  44. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v14.schema.js +1 -1
  45. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v14.ts +23 -4
  46. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v15.schema.js +25 -0
  47. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAnthropic/v15.ts +85 -0
  48. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAwsBedrock/v1.schema.js +2 -2
  49. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAwsBedrock/v1.ts +0 -1
  50. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAwsBedrock/v11.schema.js +2 -2
  51. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatAwsBedrock/v11.ts +0 -1
  52. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatOllama/v1.schema.js +1 -1
  53. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatOllama/v1.ts +4 -0
  54. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmOllama/v1.schema.js +1 -1
  55. package/dist/node-definitions/nodes/n8n-nodes-langchain/lmOllama/v1.ts +4 -0
  56. package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v1.ts +1 -0
  57. package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v11.ts +1 -0
  58. package/dist/node-definitions/nodes/n8n-nodes-langchain/mcpTrigger/v2.ts +1 -0
  59. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryBufferWindow/index.ts +3 -1
  60. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryBufferWindow/v1.schema.js +1 -1
  61. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryBufferWindow/v11.schema.js +1 -1
  62. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryBufferWindow/v14.schema.js +26 -0
  63. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryBufferWindow/v14.ts +37 -0
  64. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryMongoDbChat/index.ts +3 -1
  65. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryMongoDbChat/v11.schema.js +28 -0
  66. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryMongoDbChat/v11.ts +51 -0
  67. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryPostgresChat/index.ts +3 -1
  68. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryPostgresChat/v14.schema.js +27 -0
  69. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryPostgresChat/v14.ts +47 -0
  70. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryRedisChat/index.ts +3 -1
  71. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryRedisChat/v1.schema.js +1 -1
  72. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryRedisChat/v11.schema.js +1 -1
  73. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryRedisChat/v16.schema.js +27 -0
  74. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryRedisChat/v16.ts +47 -0
  75. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryXata/index.ts +3 -1
  76. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryXata/v15.schema.js +26 -0
  77. package/dist/node-definitions/nodes/n8n-nodes-langchain/memoryXata/v15.ts +42 -0
  78. package/dist/node-definitions/nodes/n8n-nodes-langchain/ollama/v1/resource_image/operation_analyze.schema.js +1 -1
  79. package/dist/node-definitions/nodes/n8n-nodes-langchain/ollama/v1/resource_image/operation_analyze.ts +4 -0
  80. package/dist/node-definitions/nodes/n8n-nodes-langchain/ollama/v1/resource_text/operation_message.schema.js +1 -1
  81. package/dist/node-definitions/nodes/n8n-nodes-langchain/ollama/v1/resource_text/operation_message.ts +4 -0
  82. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_assistant/operation_create.schema.js +2 -2
  83. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v1/resource_assistant/operation_create.ts +0 -1
  84. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_assistant/operation_create.schema.js +2 -2
  85. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v11/resource_assistant/operation_create.ts +1 -2
  86. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_assistant/operation_create.schema.js +2 -2
  87. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v12/resource_assistant/operation_create.ts +1 -2
  88. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_assistant/operation_create.schema.js +2 -2
  89. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v13/resource_assistant/operation_create.ts +1 -2
  90. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_assistant/operation_create.schema.js +2 -2
  91. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v14/resource_assistant/operation_create.ts +1 -2
  92. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_assistant/operation_create.schema.js +2 -2
  93. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v15/resource_assistant/operation_create.ts +1 -2
  94. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_assistant/operation_create.schema.js +2 -2
  95. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v16/resource_assistant/operation_create.ts +1 -2
  96. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_assistant/operation_create.schema.js +2 -2
  97. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v17/resource_assistant/operation_create.ts +1 -2
  98. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_assistant/operation_create.schema.js +2 -2
  99. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v18/resource_assistant/operation_create.ts +1 -2
  100. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v2/resource_image/operation_edit.schema.js +7 -7
  101. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_image/operation_edit.schema.js +7 -7
  102. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v21/resource_image/operation_edit.ts +6 -6
  103. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_edit.schema.js +7 -7
  104. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v22/resource_image/operation_edit.ts +6 -6
  105. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_edit.schema.js +7 -7
  106. package/dist/node-definitions/nodes/n8n-nodes-langchain/openAi/v23/resource_image/operation_edit.ts +6 -6
  107. package/dist/node-definitions/nodes/n8n-nodes-langchain/retrieverWorkflow/v11.schema.js +2 -2
  108. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +169 -20
  109. package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
  110. package/dist/nodes/llms/LMOllama/LmOllama.node.js.map +1 -1
  111. package/dist/nodes/llms/LMOllama/description.js +7 -0
  112. package/dist/nodes/llms/LMOllama/description.js.map +1 -1
  113. package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js +3 -0
  114. package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js.map +1 -1
  115. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +2 -1
  116. package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
  117. package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js +2 -1
  118. package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js.map +1 -1
  119. package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +2 -1
  120. package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +1 -1
  121. package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js +2 -1
  122. package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js.map +1 -1
  123. package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js +2 -1
  124. package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js.map +1 -1
  125. package/dist/nodes/memory/MemoryXata/MemoryXata.node.js +2 -1
  126. package/dist/nodes/memory/MemoryXata/MemoryXata.node.js.map +1 -1
  127. package/dist/nodes/memory/MemoryZep/MemoryZep.node.js +2 -1
  128. package/dist/nodes/memory/MemoryZep/MemoryZep.node.js.map +1 -1
  129. package/dist/nodes/memory/descriptions.d.ts +1 -0
  130. package/dist/nodes/memory/descriptions.js +14 -1
  131. package/dist/nodes/memory/descriptions.js.map +1 -1
  132. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +3 -0
  133. package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
  134. package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.d.ts +1 -1
  135. package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js +9 -1
  136. package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js.map +1 -1
  137. package/dist/nodes/vendors/Ollama/actions/text/message.operation.js +11 -4
  138. package/dist/nodes/vendors/Ollama/actions/text/message.operation.js.map +1 -1
  139. package/dist/nodes/vendors/Ollama/transport/index.js +1 -1
  140. package/dist/nodes/vendors/Ollama/transport/index.js.map +1 -1
  141. package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js.map +1 -1
  142. package/dist/typecheck.tsbuildinfo +1 -1
  143. package/dist/types/nodes.json +28 -28
  144. package/dist/utils/helpers.js +24 -0
  145. package/dist/utils/helpers.js.map +1 -1
  146. package/dist/utils/output_parsers/N8nOutputFixingParser.d.ts +1 -1
  147. package/package.json +18 -18
@@ -7,6 +7,7 @@
7
7
  export interface LcMcpTriggerV11Params {
8
8
  /**
9
9
  * The way to authenticate
10
+ * @builderHint Default to 'none'. n8n exposes inbound trigger URLs publicly by design. Only select an authentication method when the user explicitly asks to authenticate inbound traffic.
10
11
  * @default none
11
12
  */
12
13
  authentication?: 'none' | 'bearerAuth' | 'headerAuth' | Expression<string>;
@@ -7,6 +7,7 @@
7
7
  export interface LcMcpTriggerV2Params {
8
8
  /**
9
9
  * The way to authenticate
10
+ * @builderHint Default to 'none'. n8n exposes inbound trigger URLs publicly by design. Only select an authentication method when the user explicitly asks to authenticate inbound traffic.
10
11
  * @default none
11
12
  */
12
13
  authentication?: 'none' | 'bearerAuth' | 'headerAuth' | Expression<string>;
@@ -4,15 +4,17 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcMemoryBufferWindowV14Node } from './v14';
7
8
  import type { LcMemoryBufferWindowV13Node } from './v13';
8
9
  import type { LcMemoryBufferWindowV12Node } from './v12';
9
10
  import type { LcMemoryBufferWindowV11Node } from './v11';
10
11
  import type { LcMemoryBufferWindowV1Node } from './v1';
11
12
 
13
+ export * from './v14';
12
14
  export * from './v13';
13
15
  export * from './v12';
14
16
  export * from './v11';
15
17
  export * from './v1';
16
18
 
17
19
  // Combined union type for all versions
18
- export type LcMemoryBufferWindowNode = LcMemoryBufferWindowV13Node | LcMemoryBufferWindowV12Node | LcMemoryBufferWindowV11Node | LcMemoryBufferWindowV1Node;
20
+ export type LcMemoryBufferWindowNode = LcMemoryBufferWindowV14Node | LcMemoryBufferWindowV13Node | LcMemoryBufferWindowV12Node | LcMemoryBufferWindowV11Node | LcMemoryBufferWindowV1Node;
@@ -14,7 +14,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
- sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}} }),
17
+ sessionKey: stringOrExpression.optional(),
18
18
  contextWindowLength: numberOrExpression.optional(),
19
19
  });
20
20
 
@@ -14,7 +14,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
- sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}} }),
17
+ sessionKey: stringOrExpression.optional(),
18
18
  contextWindowLength: numberOrExpression.optional(),
19
19
  });
20
20
 
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Simple Memory Node - Version 1.4 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ sessionIdType: z.union([z.literal('fromInput'), z.literal('customKey'), expressionSchema]).optional(),
18
+ sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}}, defaults: {"sessionIdType":"fromInput"} }),
19
+ contextWindowLength: numberOrExpression.optional(),
20
+ });
21
+
22
+ // Return combined config schema
23
+ return z.object({
24
+ parameters: parametersSchema.nullable().optional(),
25
+ });
26
+ };
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Simple Memory Node - Version 1.4
3
+ * Stores in n8n memory, so no credentials required
4
+ */
5
+
6
+
7
+ export interface LcMemoryBufferWindowV14Params {
8
+ /**
9
+ * Session ID
10
+ * @builderHint Use 'Connected Chat Trigger Node' (fromInput) if there is a Chat Trigger node earlier in the workflow. Otherwise use 'Define below' (customKey).
11
+ * @default fromInput
12
+ */
13
+ sessionIdType?: 'fromInput' | 'customKey' | Expression<string>;
14
+ /**
15
+ * The key to use to store session ID in the memory
16
+ * @displayOptions.show { sessionIdType: ["customKey"] }
17
+ */
18
+ sessionKey?: string | Expression<string> | PlaceholderValue;
19
+ /**
20
+ * Context Window Length
21
+ * @hint How many past interactions the model receives as context
22
+ * @default 5
23
+ */
24
+ contextWindowLength?: number | Expression<number>;
25
+ }
26
+
27
+ interface LcMemoryBufferWindowV14NodeBase {
28
+ type: '@n8n/n8n-nodes-langchain.memoryBufferWindow';
29
+ version: 1.4;
30
+ isTrigger: true;
31
+ }
32
+
33
+ export type LcMemoryBufferWindowV14ParamsNode = LcMemoryBufferWindowV14NodeBase & {
34
+ config: NodeConfig<LcMemoryBufferWindowV14Params>;
35
+ };
36
+
37
+ export type LcMemoryBufferWindowV14Node = LcMemoryBufferWindowV14ParamsNode;
@@ -4,9 +4,11 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcMemoryMongoDbChatV11Node } from './v11';
7
8
  import type { LcMemoryMongoDbChatV1Node } from './v1';
8
9
 
10
+ export * from './v11';
9
11
  export * from './v1';
10
12
 
11
13
  // Combined union type for all versions
12
- export type LcMemoryMongoDbChatNode = LcMemoryMongoDbChatV1Node;
14
+ export type LcMemoryMongoDbChatNode = LcMemoryMongoDbChatV11Node | LcMemoryMongoDbChatV1Node;
@@ -0,0 +1,28 @@
1
+ /**
2
+ * MongoDB Chat Memory Node - Version 1.1 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ sessionIdType: z.union([z.literal('fromInput'), z.literal('customKey'), expressionSchema]).optional(),
18
+ sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}}, defaults: {"sessionIdType":"fromInput"} }),
19
+ collectionName: stringOrExpression.optional(),
20
+ databaseName: stringOrExpression.optional(),
21
+ contextWindowLength: numberOrExpression.optional(),
22
+ });
23
+
24
+ // Return combined config schema
25
+ return z.object({
26
+ parameters: parametersSchema.nullable().optional(),
27
+ });
28
+ };
@@ -0,0 +1,51 @@
1
+ /**
2
+ * MongoDB Chat Memory Node - Version 1.1
3
+ * Stores the chat history in MongoDB collection.
4
+ */
5
+
6
+
7
+ export interface LcMemoryMongoDbChatV11Params {
8
+ /**
9
+ * Session ID
10
+ * @builderHint Use 'Connected Chat Trigger Node' (fromInput) if there is a Chat Trigger node earlier in the workflow. Otherwise use 'Define below' (customKey).
11
+ * @default fromInput
12
+ */
13
+ sessionIdType?: 'fromInput' | 'customKey' | Expression<string>;
14
+ /**
15
+ * The key to use to store session ID in the memory
16
+ * @displayOptions.show { sessionIdType: ["customKey"] }
17
+ */
18
+ sessionKey?: string | Expression<string> | PlaceholderValue;
19
+ /**
20
+ * The collection name to store the chat history in. If collection does not exist, it will be created.
21
+ * @default n8n_chat_histories
22
+ */
23
+ collectionName?: string | Expression<string> | PlaceholderValue;
24
+ /**
25
+ * The database name to store the chat history in. If not provided, the database from credentials will be used.
26
+ */
27
+ databaseName?: string | Expression<string> | PlaceholderValue;
28
+ /**
29
+ * Context Window Length
30
+ * @hint How many past interactions the model receives as context
31
+ * @default 5
32
+ */
33
+ contextWindowLength?: number | Expression<number>;
34
+ }
35
+
36
+ export interface LcMemoryMongoDbChatV11Credentials {
37
+ mongoDb: CredentialReference;
38
+ }
39
+
40
+ interface LcMemoryMongoDbChatV11NodeBase {
41
+ type: '@n8n/n8n-nodes-langchain.memoryMongoDbChat';
42
+ version: 1.1;
43
+ credentials?: LcMemoryMongoDbChatV11Credentials;
44
+ isTrigger: true;
45
+ }
46
+
47
+ export type LcMemoryMongoDbChatV11ParamsNode = LcMemoryMongoDbChatV11NodeBase & {
48
+ config: NodeConfig<LcMemoryMongoDbChatV11Params>;
49
+ };
50
+
51
+ export type LcMemoryMongoDbChatV11Node = LcMemoryMongoDbChatV11ParamsNode;
@@ -4,15 +4,17 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcMemoryPostgresChatV14Node } from './v14';
7
8
  import type { LcMemoryPostgresChatV13Node } from './v13';
8
9
  import type { LcMemoryPostgresChatV12Node } from './v12';
9
10
  import type { LcMemoryPostgresChatV11Node } from './v11';
10
11
  import type { LcMemoryPostgresChatV1Node } from './v1';
11
12
 
13
+ export * from './v14';
12
14
  export * from './v13';
13
15
  export * from './v12';
14
16
  export * from './v11';
15
17
  export * from './v1';
16
18
 
17
19
  // Combined union type for all versions
18
- export type LcMemoryPostgresChatNode = LcMemoryPostgresChatV13Node | LcMemoryPostgresChatV12Node | LcMemoryPostgresChatV11Node | LcMemoryPostgresChatV1Node;
20
+ export type LcMemoryPostgresChatNode = LcMemoryPostgresChatV14Node | LcMemoryPostgresChatV13Node | LcMemoryPostgresChatV12Node | LcMemoryPostgresChatV11Node | LcMemoryPostgresChatV1Node;
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Postgres Chat Memory Node - Version 1.4 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ sessionIdType: z.union([z.literal('fromInput'), z.literal('customKey'), expressionSchema]).optional(),
18
+ sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}}, defaults: {"sessionIdType":"fromInput"} }),
19
+ tableName: stringOrExpression.optional(),
20
+ contextWindowLength: numberOrExpression.optional(),
21
+ });
22
+
23
+ // Return combined config schema
24
+ return z.object({
25
+ parameters: parametersSchema.nullable().optional(),
26
+ });
27
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Postgres Chat Memory Node - Version 1.4
3
+ * Stores the chat history in Postgres table.
4
+ */
5
+
6
+
7
+ export interface LcMemoryPostgresChatV14Params {
8
+ /**
9
+ * Session ID
10
+ * @builderHint Use 'Connected Chat Trigger Node' (fromInput) if there is a Chat Trigger node earlier in the workflow. Otherwise use 'Define below' (customKey).
11
+ * @default fromInput
12
+ */
13
+ sessionIdType?: 'fromInput' | 'customKey' | Expression<string>;
14
+ /**
15
+ * The key to use to store session ID in the memory
16
+ * @displayOptions.show { sessionIdType: ["customKey"] }
17
+ */
18
+ sessionKey?: string | Expression<string> | PlaceholderValue;
19
+ /**
20
+ * The table name to store the chat history in. If table does not exist, it will be created.
21
+ * @default n8n_chat_histories
22
+ */
23
+ tableName?: string | Expression<string> | PlaceholderValue;
24
+ /**
25
+ * Context Window Length
26
+ * @hint How many past interactions the model receives as context
27
+ * @default 5
28
+ */
29
+ contextWindowLength?: number | Expression<number>;
30
+ }
31
+
32
+ export interface LcMemoryPostgresChatV14Credentials {
33
+ postgres: CredentialReference;
34
+ }
35
+
36
+ interface LcMemoryPostgresChatV14NodeBase {
37
+ type: '@n8n/n8n-nodes-langchain.memoryPostgresChat';
38
+ version: 1.4;
39
+ credentials?: LcMemoryPostgresChatV14Credentials;
40
+ isTrigger: true;
41
+ }
42
+
43
+ export type LcMemoryPostgresChatV14ParamsNode = LcMemoryPostgresChatV14NodeBase & {
44
+ config: NodeConfig<LcMemoryPostgresChatV14Params>;
45
+ };
46
+
47
+ export type LcMemoryPostgresChatV14Node = LcMemoryPostgresChatV14ParamsNode;
@@ -4,6 +4,7 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcMemoryRedisChatV16Node } from './v16';
7
8
  import type { LcMemoryRedisChatV15Node } from './v15';
8
9
  import type { LcMemoryRedisChatV14Node } from './v14';
9
10
  import type { LcMemoryRedisChatV13Node } from './v13';
@@ -11,6 +12,7 @@ import type { LcMemoryRedisChatV12Node } from './v12';
11
12
  import type { LcMemoryRedisChatV11Node } from './v11';
12
13
  import type { LcMemoryRedisChatV1Node } from './v1';
13
14
 
15
+ export * from './v16';
14
16
  export * from './v15';
15
17
  export * from './v14';
16
18
  export * from './v13';
@@ -19,4 +21,4 @@ export * from './v11';
19
21
  export * from './v1';
20
22
 
21
23
  // Combined union type for all versions
22
- export type LcMemoryRedisChatNode = LcMemoryRedisChatV15Node | LcMemoryRedisChatV14Node | LcMemoryRedisChatV13Node | LcMemoryRedisChatV12Node | LcMemoryRedisChatV11Node | LcMemoryRedisChatV1Node;
24
+ export type LcMemoryRedisChatNode = LcMemoryRedisChatV16Node | LcMemoryRedisChatV15Node | LcMemoryRedisChatV14Node | LcMemoryRedisChatV13Node | LcMemoryRedisChatV12Node | LcMemoryRedisChatV11Node | LcMemoryRedisChatV1Node;
@@ -14,7 +14,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
- sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}} }),
17
+ sessionKey: stringOrExpression.optional(),
18
18
  sessionTTL: numberOrExpression.optional(),
19
19
  });
20
20
 
@@ -14,7 +14,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
14
14
 
15
15
  // Parameters schema
16
16
  const parametersSchema = z.object({
17
- sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}} }),
17
+ sessionKey: stringOrExpression.optional(),
18
18
  sessionTTL: numberOrExpression.optional(),
19
19
  });
20
20
 
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Redis Chat Memory Node - Version 1.6 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ sessionIdType: z.union([z.literal('fromInput'), z.literal('customKey'), expressionSchema]).optional(),
18
+ sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}}, defaults: {"sessionIdType":"fromInput"} }),
19
+ sessionTTL: numberOrExpression.optional(),
20
+ contextWindowLength: numberOrExpression.optional(),
21
+ });
22
+
23
+ // Return combined config schema
24
+ return z.object({
25
+ parameters: parametersSchema.nullable().optional(),
26
+ });
27
+ };
@@ -0,0 +1,47 @@
1
+ /**
2
+ * Redis Chat Memory Node - Version 1.6
3
+ * Stores the chat history in Redis.
4
+ */
5
+
6
+
7
+ export interface LcMemoryRedisChatV16Params {
8
+ /**
9
+ * Session ID
10
+ * @builderHint Use 'Connected Chat Trigger Node' (fromInput) if there is a Chat Trigger node earlier in the workflow. Otherwise use 'Define below' (customKey).
11
+ * @default fromInput
12
+ */
13
+ sessionIdType?: 'fromInput' | 'customKey' | Expression<string>;
14
+ /**
15
+ * The key to use to store session ID in the memory
16
+ * @displayOptions.show { sessionIdType: ["customKey"] }
17
+ */
18
+ sessionKey?: string | Expression<string> | PlaceholderValue;
19
+ /**
20
+ * For how long the session should be stored in seconds. If set to 0 it will not expire.
21
+ * @default 0
22
+ */
23
+ sessionTTL?: number | Expression<number>;
24
+ /**
25
+ * Context Window Length
26
+ * @hint How many past interactions the model receives as context
27
+ * @default 5
28
+ */
29
+ contextWindowLength?: number | Expression<number>;
30
+ }
31
+
32
+ export interface LcMemoryRedisChatV16Credentials {
33
+ redis: CredentialReference;
34
+ }
35
+
36
+ interface LcMemoryRedisChatV16NodeBase {
37
+ type: '@n8n/n8n-nodes-langchain.memoryRedisChat';
38
+ version: 1.6;
39
+ credentials?: LcMemoryRedisChatV16Credentials;
40
+ isTrigger: true;
41
+ }
42
+
43
+ export type LcMemoryRedisChatV16ParamsNode = LcMemoryRedisChatV16NodeBase & {
44
+ config: NodeConfig<LcMemoryRedisChatV16Params>;
45
+ };
46
+
47
+ export type LcMemoryRedisChatV16Node = LcMemoryRedisChatV16ParamsNode;
@@ -4,12 +4,14 @@
4
4
  * Re-exports all version-specific types and provides combined union type.
5
5
  */
6
6
 
7
+ import type { LcMemoryXataV15Node } from './v15';
7
8
  import type { LcMemoryXataV14Node } from './v14';
8
9
  import type { LcMemoryXataV13Node } from './v13';
9
10
  import type { LcMemoryXataV12Node } from './v12';
10
11
  import type { LcMemoryXataV11Node } from './v11';
11
12
  import type { LcMemoryXataV1Node } 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 LcMemoryXataNode = LcMemoryXataV14Node | LcMemoryXataV13Node | LcMemoryXataV12Node | LcMemoryXataV11Node | LcMemoryXataV1Node;
22
+ export type LcMemoryXataNode = LcMemoryXataV15Node | LcMemoryXataV14Node | LcMemoryXataV13Node | LcMemoryXataV12Node | LcMemoryXataV11Node | LcMemoryXataV1Node;
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Xata Node - Version 1.5 - Zod Validation Schemas
3
+ *
4
+ * These schemas validate node configuration at runtime.
5
+ * Use .parse() for strict validation or .safeParse() for error handling.
6
+ *
7
+ * Schema helpers (z, expressionSchema, etc.) are passed as parameters
8
+ * by the schema-validator, not imported from external files.
9
+ *
10
+ * @generated - CommonJS JavaScript for runtime loading
11
+ */
12
+
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema }) {
14
+
15
+ // Parameters schema
16
+ const parametersSchema = z.object({
17
+ sessionIdType: z.union([z.literal('fromInput'), z.literal('customKey'), expressionSchema]).optional(),
18
+ sessionKey: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"sessionIdType":["customKey"]}}, defaults: {"sessionIdType":"fromInput"} }),
19
+ contextWindowLength: numberOrExpression.optional(),
20
+ });
21
+
22
+ // Return combined config schema
23
+ return z.object({
24
+ parameters: parametersSchema.nullable().optional(),
25
+ });
26
+ };
@@ -0,0 +1,42 @@
1
+ /**
2
+ * Xata Node - Version 1.5
3
+ * Use Xata Memory
4
+ */
5
+
6
+
7
+ export interface LcMemoryXataV15Params {
8
+ /**
9
+ * Session ID
10
+ * @builderHint Use 'Connected Chat Trigger Node' (fromInput) if there is a Chat Trigger node earlier in the workflow. Otherwise use 'Define below' (customKey).
11
+ * @default fromInput
12
+ */
13
+ sessionIdType?: 'fromInput' | 'customKey' | Expression<string>;
14
+ /**
15
+ * The key to use to store session ID in the memory
16
+ * @displayOptions.show { sessionIdType: ["customKey"] }
17
+ */
18
+ sessionKey?: string | Expression<string> | PlaceholderValue;
19
+ /**
20
+ * Context Window Length
21
+ * @hint How many past interactions the model receives as context
22
+ * @default 5
23
+ */
24
+ contextWindowLength?: number | Expression<number>;
25
+ }
26
+
27
+ export interface LcMemoryXataV15Credentials {
28
+ xataApi: CredentialReference;
29
+ }
30
+
31
+ interface LcMemoryXataV15NodeBase {
32
+ type: '@n8n/n8n-nodes-langchain.memoryXata';
33
+ version: 1.5;
34
+ credentials?: LcMemoryXataV15Credentials;
35
+ isTrigger: true;
36
+ }
37
+
38
+ export type LcMemoryXataV15ParamsNode = LcMemoryXataV15NodeBase & {
39
+ config: NodeConfig<LcMemoryXataV15Params>;
40
+ };
41
+
42
+ export type LcMemoryXataV15Node = LcMemoryXataV15ParamsNode;
@@ -27,7 +27,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
27
27
  binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"inputType":["binary"]}}, defaults: {"inputType":"binary"} }),
28
28
  imageUrls: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"inputType":["url"]}}, defaults: {"inputType":"binary"} }),
29
29
  simplify: booleanOrExpression.optional(),
30
- options: z.object({ system: stringOrExpression.optional(), temperature: numberOrExpression.optional(), top_p: numberOrExpression.optional(), top_k: numberOrExpression.optional(), num_predict: numberOrExpression.optional(), frequency_penalty: numberOrExpression.optional(), presence_penalty: numberOrExpression.optional(), repeat_penalty: numberOrExpression.optional(), num_ctx: numberOrExpression.optional(), repeat_last_n: numberOrExpression.optional(), min_p: numberOrExpression.optional(), seed: numberOrExpression.optional(), stop: stringOrExpression.optional(), keep_alive: stringOrExpression.optional(), low_vram: booleanOrExpression.optional(), main_gpu: numberOrExpression.optional(), num_batch: numberOrExpression.optional(), num_gpu: numberOrExpression.optional(), num_thread: numberOrExpression.optional(), penalize_newline: booleanOrExpression.optional(), use_mlock: booleanOrExpression.optional(), use_mmap: booleanOrExpression.optional(), vocab_only: booleanOrExpression.optional(), format: z.union([z.literal(''), z.literal('json'), expressionSchema]).optional() }).optional(),
30
+ options: z.object({ system: stringOrExpression.optional(), temperature: numberOrExpression.optional(), think: booleanOrExpression.optional(), top_p: numberOrExpression.optional(), top_k: numberOrExpression.optional(), num_predict: numberOrExpression.optional(), frequency_penalty: numberOrExpression.optional(), presence_penalty: numberOrExpression.optional(), repeat_penalty: numberOrExpression.optional(), num_ctx: numberOrExpression.optional(), repeat_last_n: numberOrExpression.optional(), min_p: numberOrExpression.optional(), seed: numberOrExpression.optional(), stop: stringOrExpression.optional(), keep_alive: stringOrExpression.optional(), low_vram: booleanOrExpression.optional(), main_gpu: numberOrExpression.optional(), num_batch: numberOrExpression.optional(), num_gpu: numberOrExpression.optional(), num_thread: numberOrExpression.optional(), penalize_newline: booleanOrExpression.optional(), use_mlock: booleanOrExpression.optional(), use_mmap: booleanOrExpression.optional(), vocab_only: booleanOrExpression.optional(), format: z.union([z.literal(''), z.literal('json'), expressionSchema]).optional() }).optional(),
31
31
  }).optional(),
32
32
  subnodes: subnodesSchema.optional(),
33
33
  });
@@ -57,6 +57,10 @@ export type LcOllamaV1ImageAnalyzeParams = {
57
57
  * @default 0.8
58
58
  */
59
59
  temperature?: number | Expression<number>;
60
+ /** Whether to enable (default) thinking mode for supported models. When enabled, the model's thinking process is separated from the output. When disabled, the model outputs content directly (only for supported models).
61
+ * @default true
62
+ */
63
+ think?: boolean | Expression<boolean>;
60
64
  /** The maximum cumulative probability of tokens to consider when sampling
61
65
  * @default 0.7
62
66
  */
@@ -24,7 +24,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
24
24
  modelId: 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(),
25
25
  messages: z.object({ values: z.array(z.object({ content: stringOrExpression.optional(), role: z.union([z.literal('user'), z.literal('assistant'), expressionSchema]).optional() })).optional() }).optional(),
26
26
  simplify: booleanOrExpression.optional(),
27
- options: z.object({ system: stringOrExpression.optional(), temperature: numberOrExpression.optional(), top_p: numberOrExpression.optional(), top_k: numberOrExpression.optional(), num_predict: numberOrExpression.optional(), frequency_penalty: numberOrExpression.optional(), presence_penalty: numberOrExpression.optional(), repeat_penalty: numberOrExpression.optional(), num_ctx: numberOrExpression.optional(), repeat_last_n: numberOrExpression.optional(), min_p: numberOrExpression.optional(), seed: numberOrExpression.optional(), stop: stringOrExpression.optional(), keep_alive: stringOrExpression.optional(), low_vram: booleanOrExpression.optional(), main_gpu: numberOrExpression.optional(), num_batch: numberOrExpression.optional(), num_gpu: numberOrExpression.optional(), num_thread: numberOrExpression.optional(), penalize_newline: booleanOrExpression.optional(), use_mlock: booleanOrExpression.optional(), use_mmap: booleanOrExpression.optional(), vocab_only: booleanOrExpression.optional(), format: z.union([z.literal(''), z.literal('json'), expressionSchema]).optional() }).optional(),
27
+ options: z.object({ system: stringOrExpression.optional(), temperature: numberOrExpression.optional(), think: booleanOrExpression.optional(), top_p: numberOrExpression.optional(), top_k: numberOrExpression.optional(), num_predict: numberOrExpression.optional(), frequency_penalty: numberOrExpression.optional(), presence_penalty: numberOrExpression.optional(), repeat_penalty: numberOrExpression.optional(), num_ctx: numberOrExpression.optional(), repeat_last_n: numberOrExpression.optional(), min_p: numberOrExpression.optional(), seed: numberOrExpression.optional(), stop: stringOrExpression.optional(), keep_alive: stringOrExpression.optional(), low_vram: booleanOrExpression.optional(), main_gpu: numberOrExpression.optional(), num_batch: numberOrExpression.optional(), num_gpu: numberOrExpression.optional(), num_thread: numberOrExpression.optional(), penalize_newline: booleanOrExpression.optional(), use_mlock: booleanOrExpression.optional(), use_mmap: booleanOrExpression.optional(), vocab_only: booleanOrExpression.optional(), format: z.union([z.literal(''), z.literal('json'), expressionSchema]).optional() }).optional(),
28
28
  }).optional(),
29
29
  subnodes: subnodesSchema.optional(),
30
30
  });
@@ -52,6 +52,10 @@ export type LcOllamaV1TextMessageParams = {
52
52
  * @default 0.8
53
53
  */
54
54
  temperature?: number | Expression<number>;
55
+ /** Whether to enable (default) thinking mode for supported models. When enabled, the model's thinking process is separated from the output. When disabled, the model outputs content directly (only for supported models).
56
+ * @default true
57
+ */
58
+ think?: boolean | Expression<boolean>;
55
59
  /** The maximum cumulative probability of tokens to consider when sampling
56
60
  * @default 0.7
57
61
  */
@@ -10,7 +10,7 @@
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, resolveSchema, toolInstanceSchema, memoryInstanceSchema }) {
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas, toolInstanceSchema, memoryInstanceSchema }) {
14
14
 
15
15
  // Static subnode schema
16
16
  const subnodesSchema = z.object({
@@ -28,7 +28,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
28
28
  instructions: stringOrExpression.optional(),
29
29
  codeInterpreter: booleanOrExpression.optional(),
30
30
  knowledgeRetrieval: booleanOrExpression.optional(),
31
- file_ids: resolveSchema({ parameters, schema: z.array(z.string()), required: false, displayOptions: {"show":{"codeInterpreter":[true],"knowledgeRetrieval":[true]},"hide":{"knowledgeRetrieval":[true],"codeInterpreter":[true]}}, defaults: {"codeInterpreter":false,"knowledgeRetrieval":false} }),
31
+ file_ids: resolveOneOfSchemas({ parameters, variants: [{ schema: z.array(z.string()), required: false, displayOptions: {"show":{"codeInterpreter":[true]},"hide":{"knowledgeRetrieval":[true]}}, defaults: {"codeInterpreter":false,"knowledgeRetrieval":false} }, { schema: z.array(z.string()), required: false, displayOptions: {"show":{"knowledgeRetrieval":[true]},"hide":{"codeInterpreter":[true]}}, defaults: {"knowledgeRetrieval":false,"codeInterpreter":false} }, { schema: z.array(z.string()), required: false, displayOptions: {"show":{"knowledgeRetrieval":[true],"codeInterpreter":[true]}}, defaults: {"knowledgeRetrieval":false,"codeInterpreter":false} }] }),
32
32
  options: z.object({ temperature: numberOrExpression.optional(), topP: numberOrExpression.optional(), failIfExists: booleanOrExpression.optional() }).optional(),
33
33
  }).optional(),
34
34
  subnodes: subnodesSchema.optional(),
@@ -45,7 +45,6 @@ export type LcOpenAiV1AssistantCreateParams = {
45
45
  * @hint Add more files by using the 'Upload a File' operation
46
46
  * @loadOptionsMethod getFiles
47
47
  * @displayOptions.show { codeInterpreter: [true] }
48
- * @displayOptions.hide { knowledgeRetrieval: [true] }
49
48
  * @default []
50
49
  */
51
50
  file_ids?: string[];
@@ -10,7 +10,7 @@
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, resolveSchema, toolInstanceSchema, memoryInstanceSchema }) {
13
+ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrExpression, numberOrExpression, booleanOrExpression, resourceLocatorValueSchema, resourceMapperValueSchema, filterValueSchema, assignmentCollectionValueSchema, iDataObjectSchema, resolveSchema, resolveOneOfSchemas, toolInstanceSchema, memoryInstanceSchema }) {
14
14
 
15
15
  // Static subnode schema
16
16
  const subnodesSchema = z.object({
@@ -28,7 +28,7 @@ module.exports = function getSchema({ parameters, z, expressionSchema, stringOrE
28
28
  instructions: stringOrExpression.optional(),
29
29
  codeInterpreter: booleanOrExpression.optional(),
30
30
  knowledgeRetrieval: booleanOrExpression.optional(),
31
- file_ids: resolveSchema({ parameters, schema: z.array(z.string()), required: false, displayOptions: {"show":{"codeInterpreter":[true],"knowledgeRetrieval":[true]},"hide":{"knowledgeRetrieval":[true],"codeInterpreter":[true]}}, defaults: {"codeInterpreter":false,"knowledgeRetrieval":false} }),
31
+ file_ids: resolveOneOfSchemas({ parameters, variants: [{ schema: z.array(z.string()), required: false, displayOptions: {"show":{"codeInterpreter":[true]},"hide":{"knowledgeRetrieval":[true]}}, defaults: {"codeInterpreter":false,"knowledgeRetrieval":false} }, { schema: z.array(z.string()), required: false, displayOptions: {"show":{"knowledgeRetrieval":[true]},"hide":{"codeInterpreter":[true]}}, defaults: {"knowledgeRetrieval":false,"codeInterpreter":false} }, { schema: z.array(z.string()), required: false, displayOptions: {"show":{"knowledgeRetrieval":[true],"codeInterpreter":[true]}}, defaults: {"knowledgeRetrieval":false,"codeInterpreter":false} }] }),
32
32
  options: z.object({ temperature: numberOrExpression.optional(), topP: numberOrExpression.optional(), failIfExists: booleanOrExpression.optional() }).optional(),
33
33
  }).optional(),
34
34
  subnodes: subnodesSchema.optional(),
@@ -44,8 +44,7 @@ export type LcOpenAiV11AssistantCreateParams = {
44
44
  * The files to be used by the assistant, there can be a maximum of 20 files attached to the assistant. You can use expression to pass file IDs as an array or comma-separated string.
45
45
  * @hint Add more files by using the 'Upload a File' operation
46
46
  * @loadOptionsMethod getFiles
47
- * @displayOptions.show { codeInterpreter: [true], knowledgeRetrieval: [true] }
48
- * @displayOptions.hide { knowledgeRetrieval: [true], codeInterpreter: [true] }
47
+ * @displayOptions.show { codeInterpreter: [true] }
49
48
  * @default []
50
49
  */
51
50
  file_ids?: string[];