@n8n/n8n-nodes-langchain 2.16.0 → 2.17.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.
- package/dist/credentials/MinimaxApi.credentials.d.ts +9 -0
- package/dist/credentials/MinimaxApi.credentials.js +79 -0
- package/dist/credentials/MinimaxApi.credentials.js.map +1 -0
- package/dist/credentials/MoonshotApi.credentials.d.ts +9 -0
- package/dist/credentials/MoonshotApi.credentials.js +60 -0
- package/dist/credentials/MoonshotApi.credentials.js.map +1 -0
- package/dist/known/credentials.json +16 -0
- package/dist/known/nodes.json +16 -0
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/index.ts +16 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/index.ts +12 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/index.schema.js +24 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/index.ts +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_analyze.schema.js +34 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_analyze.ts +71 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_generate.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_image/operation_generate.ts +60 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/operation_message.schema.js +31 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/operation_message.ts +97 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_image_to_video.schema.js +38 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_image_to_video.ts +105 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_text_to_video.schema.js +35 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/operation_text_to_video.ts +88 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/index.ts +12 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v1.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMinimax/v1.ts +60 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMoonshot/index.ts +12 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMoonshot/v1.schema.js +25 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/lmChatMoonshot/v1.ts +68 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/index.ts +12 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/index.schema.js +22 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/index.ts +15 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/operation_analyze.schema.js +32 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_image/operation_analyze.ts +58 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/index.schema.js +18 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/index.ts +10 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/operation_message.schema.js +33 -0
- package/dist/node-definitions/nodes/n8n-nodes-langchain/moonshot/v1/resource_text/operation_message.ts +114 -0
- package/dist/nodes/Guardrails/Guardrails.node.js +2 -1
- package/dist/nodes/Guardrails/Guardrails.node.js.map +1 -1
- package/dist/nodes/ModelSelector/ModelSelector.node.js +2 -2
- package/dist/nodes/ModelSelector/ModelSelector.node.js.map +1 -1
- package/dist/nodes/agents/Agent/Agent.node.js +1 -1
- package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js +4 -0
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +1 -2
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +1 -2
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js +1 -1
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js +1 -1
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js.map +1 -1
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js +1 -1
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js +1 -1
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +2 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.d.ts +1 -0
- package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.js +22 -10
- package/dist/nodes/llms/LmChatAlibabaCloud/alibaba-cloud-base-url.js.map +1 -1
- package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js +155 -0
- package/dist/nodes/llms/LmChatMinimax/LmChatMinimax.node.js.map +1 -0
- package/dist/nodes/llms/LmChatMinimax/minimax.svg +10 -0
- package/dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.js +226 -0
- package/dist/nodes/llms/LmChatMoonshot/LmChatMoonshot.node.js.map +1 -0
- package/dist/nodes/llms/LmChatMoonshot/moonshot.dark.svg +4 -0
- package/dist/nodes/llms/LmChatMoonshot/moonshot.svg +4 -0
- package/dist/nodes/mcp/McpClient/McpClient.node.js +64 -59
- package/dist/nodes/mcp/McpClient/McpClient.node.js.map +1 -1
- package/dist/nodes/mcp/McpClient/listSearch.js +18 -13
- package/dist/nodes/mcp/McpClient/listSearch.js.map +1 -1
- package/dist/nodes/mcp/McpClient/resourceMapping.js +13 -8
- package/dist/nodes/mcp/McpClient/resourceMapping.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js +74 -41
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/loadOptions.js +12 -7
- package/dist/nodes/mcp/McpClientTool/loadOptions.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/utils.d.ts +2 -1
- package/dist/nodes/mcp/McpClientTool/utils.js +20 -1
- package/dist/nodes/mcp/McpClientTool/utils.js.map +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js +1 -1
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +1 -1
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +1 -1
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +1 -1
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +1 -1
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +1 -1
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +1 -1
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +1 -1
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
- package/dist/nodes/tools/ToolThink/ToolThink.node.js +1 -1
- package/dist/nodes/tools/ToolThink/ToolThink.node.js.map +1 -1
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +1 -1
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +1 -1
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/Chat.node.js +1 -1
- package/dist/nodes/trigger/ChatTrigger/Chat.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +5 -2
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
- package/dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.d.ts +5 -0
- package/dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.js +15 -0
- package/dist/nodes/vendors/AlibabaCloud/AlibabaCloud.node.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/analyze.operation.d.ts +29 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/analyze.operation.js +188 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/analyze.operation.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/generate.operation.d.ts +29 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/generate.operation.js +204 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/generate.operation.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/index.d.ts +5 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/index.js +71 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/image/index.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/router.js +106 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/router.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/text/index.js +62 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/text/index.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/text/message.operation.d.ts +29 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/text/message.operation.js +403 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/text/message.operation.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/versionDescription.js +112 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/versionDescription.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.i2v.operation.d.ts +30 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.i2v.operation.js +312 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.i2v.operation.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.t2v.operation.d.ts +30 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.t2v.operation.js +251 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/generate.t2v.operation.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/index.d.ts +5 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/index.js +71 -0
- package/dist/nodes/vendors/AlibabaCloud/actions/video/index.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/alibaba.svg +1 -0
- package/dist/nodes/vendors/AlibabaCloud/helpers/interfaces.d.ts +53 -0
- package/dist/nodes/vendors/AlibabaCloud/helpers/interfaces.js +3 -0
- package/dist/nodes/vendors/AlibabaCloud/helpers/interfaces.js.map +1 -0
- package/dist/nodes/vendors/AlibabaCloud/transport/index.d.ts +11 -0
- package/dist/nodes/vendors/AlibabaCloud/transport/index.js +60 -0
- package/dist/nodes/vendors/AlibabaCloud/transport/index.js.map +1 -0
- package/dist/nodes/vendors/Microsoft/microsoft-utils.d.ts +2 -1
- package/dist/nodes/vendors/Microsoft/microsoft-utils.js +3 -13
- package/dist/nodes/vendors/Microsoft/microsoft-utils.js.map +1 -1
- package/dist/nodes/vendors/Moonshot/Moonshot.node.d.ts +9 -0
- package/dist/nodes/vendors/Moonshot/Moonshot.node.js +19 -0
- package/dist/nodes/vendors/Moonshot/Moonshot.node.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/Moonshot/actions/descriptions.js +28 -0
- package/dist/nodes/vendors/Moonshot/actions/descriptions.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/image/analyze.operation.d.ts +29 -0
- package/dist/nodes/vendors/Moonshot/actions/image/analyze.operation.js +114 -0
- package/dist/nodes/vendors/Moonshot/actions/image/analyze.operation.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/image/index.d.ts +4 -0
- package/dist/nodes/vendors/Moonshot/actions/image/index.js +62 -0
- package/dist/nodes/vendors/Moonshot/actions/image/index.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/node.type.d.ts +7 -0
- package/dist/nodes/vendors/Moonshot/actions/node.type.js +3 -0
- package/dist/nodes/vendors/Moonshot/actions/node.type.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/Moonshot/actions/router.js +78 -0
- package/dist/nodes/vendors/Moonshot/actions/router.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/Moonshot/actions/text/index.js +62 -0
- package/dist/nodes/vendors/Moonshot/actions/text/index.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/text/message.operation.d.ts +29 -0
- package/dist/nodes/vendors/Moonshot/actions/text/message.operation.js +390 -0
- package/dist/nodes/vendors/Moonshot/actions/text/message.operation.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/Moonshot/actions/versionDescription.js +106 -0
- package/dist/nodes/vendors/Moonshot/actions/versionDescription.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/helpers/interfaces.d.ts +60 -0
- package/dist/nodes/vendors/Moonshot/helpers/interfaces.js +3 -0
- package/dist/nodes/vendors/Moonshot/helpers/interfaces.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/helpers/utils.d.ts +2 -0
- package/dist/nodes/vendors/Moonshot/helpers/utils.js +14 -0
- package/dist/nodes/vendors/Moonshot/helpers/utils.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/Moonshot/methods/index.js +38 -0
- package/dist/nodes/vendors/Moonshot/methods/index.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/methods/listSearch.d.ts +2 -0
- package/dist/nodes/vendors/Moonshot/methods/listSearch.js +18 -0
- package/dist/nodes/vendors/Moonshot/methods/listSearch.js.map +1 -0
- package/dist/nodes/vendors/Moonshot/moonshot.dark.svg +4 -0
- package/dist/nodes/vendors/Moonshot/moonshot.svg +4 -0
- package/dist/nodes/vendors/Moonshot/transport/index.d.ts +9 -0
- package/dist/nodes/vendors/Moonshot/transport/index.js +22 -0
- package/dist/nodes/vendors/Moonshot/transport/index.js.map +1 -0
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +3 -1
- package/dist/types/nodes.json +38 -34
- package/package.json +17 -11
package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_text/index.ts
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio - Text Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { LcAlibabaCloudV1TextMessageNode } from './operation_message';
|
|
7
|
+
|
|
8
|
+
export * from './operation_message';
|
|
9
|
+
|
|
10
|
+
export type LcAlibabaCloudV1TextNode = LcAlibabaCloudV1TextMessageNode;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=text, operation=message
|
|
4
|
+
*
|
|
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, toolInstanceSchema }) {
|
|
14
|
+
|
|
15
|
+
// Static subnode schema
|
|
16
|
+
const subnodesSchema = z.object({
|
|
17
|
+
tools: z.array(toolInstanceSchema).optional(),
|
|
18
|
+
}).strict();
|
|
19
|
+
|
|
20
|
+
return z.object({
|
|
21
|
+
parameters: z.object({
|
|
22
|
+
resource: z.literal('text').default('text'),
|
|
23
|
+
operation: z.literal('message').default('message'),
|
|
24
|
+
modelId: z.union([z.literal('qwen3-max'), z.literal('qwen3-max-2026-01-23'), z.literal('qwen3.5-122b-a10b'), z.literal('qwen3.5-27b'), z.literal('qwen3.5-35b-a3b'), z.literal('qwen3.5-397b-a17b'), z.literal('qwen3.5-flash'), z.literal('qwen3.5-flash-2026-02-23'), z.literal('qwen3.5-plus'), z.literal('qwen3.5-plus-2026-02-15'), expressionSchema]).optional(),
|
|
25
|
+
messages: z.object({ messageValues: z.array(z.object({ content: stringOrExpression.optional(), role: z.union([z.literal('user'), z.literal('assistant'), expressionSchema]).optional() })).optional() }).optional(),
|
|
26
|
+
simplify: booleanOrExpression.optional(),
|
|
27
|
+
options: z.object({ enableSearch: booleanOrExpression.optional(), maxTokens: numberOrExpression.optional(), maxToolsIterations: numberOrExpression.optional(), repetitionPenalty: numberOrExpression.optional(), seed: numberOrExpression.optional(), stop: stringOrExpression.optional(), system: stringOrExpression.optional(), temperature: numberOrExpression.optional(), topK: numberOrExpression.optional(), topP: numberOrExpression.optional() }).optional(),
|
|
28
|
+
}).optional(),
|
|
29
|
+
subnodes: subnodesSchema.optional(),
|
|
30
|
+
});
|
|
31
|
+
};
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio Node - Version 1
|
|
3
|
+
* Discriminator: resource=text, operation=message
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
alibabaCloudApi: CredentialReference;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Create a completion with a Qwen model */
|
|
12
|
+
export type LcAlibabaCloudV1TextMessageParams = {
|
|
13
|
+
resource: 'text';
|
|
14
|
+
operation: 'message';
|
|
15
|
+
/**
|
|
16
|
+
* The model to use for generation
|
|
17
|
+
* @default qwen3.5-flash
|
|
18
|
+
*/
|
|
19
|
+
modelId?: 'qwen3-max' | 'qwen3-max-2026-01-23' | 'qwen3.5-122b-a10b' | 'qwen3.5-27b' | 'qwen3.5-35b-a3b' | 'qwen3.5-397b-a17b' | 'qwen3.5-flash' | 'qwen3.5-flash-2026-02-23' | 'qwen3.5-plus' | 'qwen3.5-plus-2026-02-15' | Expression<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Messages
|
|
22
|
+
* @default {"messageValues":[{"content":"","role":"user"}]}
|
|
23
|
+
*/
|
|
24
|
+
messages?: {
|
|
25
|
+
/** Message
|
|
26
|
+
*/
|
|
27
|
+
messageValues?: Array<{
|
|
28
|
+
/** The content of the message
|
|
29
|
+
*/
|
|
30
|
+
content?: string | Expression<string> | PlaceholderValue;
|
|
31
|
+
/** The role of the message sender
|
|
32
|
+
* @default user
|
|
33
|
+
*/
|
|
34
|
+
role?: 'user' | 'assistant' | Expression<string>;
|
|
35
|
+
}>;
|
|
36
|
+
};
|
|
37
|
+
/**
|
|
38
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
39
|
+
* @default true
|
|
40
|
+
*/
|
|
41
|
+
simplify?: boolean | Expression<boolean>;
|
|
42
|
+
/**
|
|
43
|
+
* Options
|
|
44
|
+
* @default {}
|
|
45
|
+
*/
|
|
46
|
+
options?: {
|
|
47
|
+
/** Whether to enable web search for up-to-date information
|
|
48
|
+
* @default false
|
|
49
|
+
*/
|
|
50
|
+
enableSearch?: boolean | Expression<boolean>;
|
|
51
|
+
/** Maximum number of tokens to generate
|
|
52
|
+
* @default 2000
|
|
53
|
+
*/
|
|
54
|
+
maxTokens?: number | Expression<number>;
|
|
55
|
+
/** Maximum number of tool-calling iterations before stopping. Set to 0 for unlimited.
|
|
56
|
+
* @default 15
|
|
57
|
+
*/
|
|
58
|
+
maxToolsIterations?: number | Expression<number>;
|
|
59
|
+
/** Penalty for token repetition. Higher values reduce repetition.
|
|
60
|
+
* @default 1.1
|
|
61
|
+
*/
|
|
62
|
+
repetitionPenalty?: number | Expression<number>;
|
|
63
|
+
/** Random seed for reproducible outputs
|
|
64
|
+
* @default 1234
|
|
65
|
+
*/
|
|
66
|
+
seed?: number | Expression<number>;
|
|
67
|
+
/** Comma-separated list of sequences where the API will stop generating
|
|
68
|
+
*/
|
|
69
|
+
stop?: string | Expression<string> | PlaceholderValue;
|
|
70
|
+
/** System Message
|
|
71
|
+
*/
|
|
72
|
+
system?: string | Expression<string> | PlaceholderValue;
|
|
73
|
+
/** Controls randomness in the output. Lower values make output more focused and deterministic.
|
|
74
|
+
* @default 1
|
|
75
|
+
*/
|
|
76
|
+
temperature?: number | Expression<number>;
|
|
77
|
+
/** Limits the sampling pool to top K tokens
|
|
78
|
+
* @default 50
|
|
79
|
+
*/
|
|
80
|
+
topK?: number | Expression<number>;
|
|
81
|
+
/** Nucleus sampling parameter. Lower values make output more focused.
|
|
82
|
+
* @default 0.9
|
|
83
|
+
*/
|
|
84
|
+
topP?: number | Expression<number>;
|
|
85
|
+
};
|
|
86
|
+
};
|
|
87
|
+
|
|
88
|
+
export interface LcAlibabaCloudV1TextMessageSubnodeConfig {
|
|
89
|
+
tools?: ToolInstance[];
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type LcAlibabaCloudV1TextMessageNode = {
|
|
93
|
+
type: '@n8n/n8n-nodes-langchain.alibabaCloud';
|
|
94
|
+
version: 1;
|
|
95
|
+
credentials?: Credentials;
|
|
96
|
+
config: NodeConfig<LcAlibabaCloudV1TextMessageParams> & { subnodes?: LcAlibabaCloudV1TextMessageSubnodeConfig };
|
|
97
|
+
};
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio - Video Resource - Zod Schema Factory
|
|
3
|
+
* Exports a factory that unions all operation schemas for this resource.
|
|
4
|
+
*
|
|
5
|
+
* Schema helpers (z, expressionSchema, etc.) are passed as parameters
|
|
6
|
+
* by the schema-validator, not imported from external files.
|
|
7
|
+
*
|
|
8
|
+
* @generated - CommonJS JavaScript for runtime loading
|
|
9
|
+
*/
|
|
10
|
+
|
|
11
|
+
const getImageToVideoSchema = require('./operation_image_to_video.schema');
|
|
12
|
+
const getTextToVideoSchema = require('./operation_text_to_video.schema');
|
|
13
|
+
|
|
14
|
+
module.exports = function getSchema(helpers) {
|
|
15
|
+
const { parameters, z } = helpers;
|
|
16
|
+
// Apply operation default if not set
|
|
17
|
+
const effectiveParams = parameters.operation === undefined ? { ...parameters, operation: 'message' } : parameters;
|
|
18
|
+
return z.union([
|
|
19
|
+
getImageToVideoSchema({ ...helpers, parameters: effectiveParams }),
|
|
20
|
+
getTextToVideoSchema({ ...helpers, parameters: effectiveParams }),
|
|
21
|
+
]);
|
|
22
|
+
};
|
package/dist/node-definitions/nodes/n8n-nodes-langchain/alibabaCloud/v1/resource_video/index.ts
ADDED
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio - Video Resource
|
|
3
|
+
* Re-exports all operation types for this resource.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import type { LcAlibabaCloudV1VideoImageToVideoNode } from './operation_image_to_video';
|
|
7
|
+
import type { LcAlibabaCloudV1VideoTextToVideoNode } from './operation_text_to_video';
|
|
8
|
+
|
|
9
|
+
export * from './operation_image_to_video';
|
|
10
|
+
export * from './operation_text_to_video';
|
|
11
|
+
|
|
12
|
+
export type LcAlibabaCloudV1VideoNode =
|
|
13
|
+
| LcAlibabaCloudV1VideoImageToVideoNode
|
|
14
|
+
| LcAlibabaCloudV1VideoTextToVideoNode
|
|
15
|
+
;
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=video, operation=imageToVideo
|
|
4
|
+
*
|
|
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, toolInstanceSchema }) {
|
|
14
|
+
|
|
15
|
+
// Static subnode schema
|
|
16
|
+
const subnodesSchema = z.object({
|
|
17
|
+
tools: z.array(toolInstanceSchema).optional(),
|
|
18
|
+
}).strict();
|
|
19
|
+
|
|
20
|
+
return z.object({
|
|
21
|
+
parameters: z.object({
|
|
22
|
+
resource: z.literal('video'),
|
|
23
|
+
operation: z.literal('imageToVideo'),
|
|
24
|
+
modelId: z.union([z.literal('wan2.6-i2v-flash'), z.literal('wan2.6-i2v'), expressionSchema]).optional(),
|
|
25
|
+
inputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(),
|
|
26
|
+
imgUrl: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"inputType":["url"]}}, defaults: {"inputType":"url"} }),
|
|
27
|
+
binaryPropertyName: resolveSchema({ parameters, schema: stringOrExpression, required: false, displayOptions: {"show":{"inputType":["binary"]}}, defaults: {"inputType":"url"} }),
|
|
28
|
+
prompt: stringOrExpression.optional(),
|
|
29
|
+
resolution: z.union([z.literal('720P'), z.literal('1080P'), expressionSchema]).optional(),
|
|
30
|
+
duration: numberOrExpression.optional(),
|
|
31
|
+
shotType: z.union([z.literal('single'), z.literal('multi'), expressionSchema]).optional(),
|
|
32
|
+
downloadVideo: booleanOrExpression.optional(),
|
|
33
|
+
simplify: booleanOrExpression.optional(),
|
|
34
|
+
imageToVideoOptions: z.object({ promptExtend: booleanOrExpression.optional(), audio: booleanOrExpression.optional(), audioInputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(), audioUrl: stringOrExpression.optional(), audioBinaryPropertyName: stringOrExpression.optional() }).optional(),
|
|
35
|
+
}).optional(),
|
|
36
|
+
subnodes: subnodesSchema.optional(),
|
|
37
|
+
});
|
|
38
|
+
};
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio Node - Version 1
|
|
3
|
+
* Discriminator: resource=video, operation=imageToVideo
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
alibabaCloudApi: CredentialReference;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Generate a video from one or more images using Wan models */
|
|
12
|
+
export type LcAlibabaCloudV1VideoImageToVideoParams = {
|
|
13
|
+
resource: 'video';
|
|
14
|
+
operation: 'imageToVideo';
|
|
15
|
+
/**
|
|
16
|
+
* The model to use for image-to-video generation
|
|
17
|
+
* @default wan2.6-i2v-flash
|
|
18
|
+
*/
|
|
19
|
+
modelId?: 'wan2.6-i2v-flash' | 'wan2.6-i2v' | Expression<string>;
|
|
20
|
+
/**
|
|
21
|
+
* Input Type
|
|
22
|
+
* @default url
|
|
23
|
+
*/
|
|
24
|
+
inputType?: 'url' | 'binary' | Expression<string>;
|
|
25
|
+
/**
|
|
26
|
+
* The URL of the first-frame image to generate video from
|
|
27
|
+
* @displayOptions.show { inputType: ["url"] }
|
|
28
|
+
*/
|
|
29
|
+
imgUrl?: string | Expression<string> | PlaceholderValue;
|
|
30
|
+
/**
|
|
31
|
+
* Input Data Field Name
|
|
32
|
+
* @hint The name of the input field containing the binary file data to be processed
|
|
33
|
+
* @displayOptions.show { inputType: ["binary"] }
|
|
34
|
+
* @default data
|
|
35
|
+
*/
|
|
36
|
+
binaryPropertyName?: string | Expression<string> | PlaceholderValue;
|
|
37
|
+
/**
|
|
38
|
+
* A text prompt describing the desired content and visual characteristics for the generated video
|
|
39
|
+
*/
|
|
40
|
+
prompt?: string | Expression<string> | PlaceholderValue;
|
|
41
|
+
/**
|
|
42
|
+
* Resolution tier of the generated video
|
|
43
|
+
* @default 1080P
|
|
44
|
+
*/
|
|
45
|
+
resolution?: '720P' | '1080P' | Expression<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Duration of the generated video in seconds (2–15)
|
|
48
|
+
* @default 5
|
|
49
|
+
*/
|
|
50
|
+
duration?: number | Expression<number>;
|
|
51
|
+
/**
|
|
52
|
+
* Whether to generate a single-shot or multi-shot narrative video
|
|
53
|
+
* @default single
|
|
54
|
+
*/
|
|
55
|
+
shotType?: 'single' | 'multi' | Expression<string>;
|
|
56
|
+
/**
|
|
57
|
+
* Whether to download the generated video as binary data. When disabled, only the video URL is returned.
|
|
58
|
+
* @default true
|
|
59
|
+
*/
|
|
60
|
+
downloadVideo?: boolean | Expression<boolean>;
|
|
61
|
+
/**
|
|
62
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
63
|
+
* @default true
|
|
64
|
+
*/
|
|
65
|
+
simplify?: boolean | Expression<boolean>;
|
|
66
|
+
/**
|
|
67
|
+
* Options
|
|
68
|
+
* @default {}
|
|
69
|
+
*/
|
|
70
|
+
imageToVideoOptions?: {
|
|
71
|
+
/** Whether to automatically extend and enhance the prompt
|
|
72
|
+
* @default false
|
|
73
|
+
*/
|
|
74
|
+
promptExtend?: boolean | Expression<boolean>;
|
|
75
|
+
/** Whether to generate audio for the video
|
|
76
|
+
* @default true
|
|
77
|
+
*/
|
|
78
|
+
audio?: boolean | Expression<boolean>;
|
|
79
|
+
/** Audio Input Type
|
|
80
|
+
* @default url
|
|
81
|
+
*/
|
|
82
|
+
audioInputType?: 'url' | 'binary' | Expression<string>;
|
|
83
|
+
/** URL of the audio file to use for the video
|
|
84
|
+
* @displayOptions.show { audioInputType: ["url"] }
|
|
85
|
+
*/
|
|
86
|
+
audioUrl?: string | Expression<string> | PlaceholderValue;
|
|
87
|
+
/** Audio Data Field Name
|
|
88
|
+
* @hint The name of the input field containing the binary audio data
|
|
89
|
+
* @displayOptions.show { audioInputType: ["binary"] }
|
|
90
|
+
* @default audio
|
|
91
|
+
*/
|
|
92
|
+
audioBinaryPropertyName?: string | Expression<string> | PlaceholderValue;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
|
|
96
|
+
export interface LcAlibabaCloudV1VideoImageToVideoSubnodeConfig {
|
|
97
|
+
tools?: ToolInstance[];
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
export type LcAlibabaCloudV1VideoImageToVideoNode = {
|
|
101
|
+
type: '@n8n/n8n-nodes-langchain.alibabaCloud';
|
|
102
|
+
version: 1;
|
|
103
|
+
credentials?: Credentials;
|
|
104
|
+
config: NodeConfig<LcAlibabaCloudV1VideoImageToVideoParams> & { subnodes?: LcAlibabaCloudV1VideoImageToVideoSubnodeConfig };
|
|
105
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio Node - Version 1 - Zod Schema
|
|
3
|
+
* Discriminator: resource=video, operation=textToVideo
|
|
4
|
+
*
|
|
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, toolInstanceSchema }) {
|
|
14
|
+
|
|
15
|
+
// Static subnode schema
|
|
16
|
+
const subnodesSchema = z.object({
|
|
17
|
+
tools: z.array(toolInstanceSchema).optional(),
|
|
18
|
+
}).strict();
|
|
19
|
+
|
|
20
|
+
return z.object({
|
|
21
|
+
parameters: z.object({
|
|
22
|
+
resource: z.literal('video'),
|
|
23
|
+
operation: z.literal('textToVideo'),
|
|
24
|
+
modelId: z.union([z.literal('wan2.6-t2v'), expressionSchema]).optional(),
|
|
25
|
+
prompt: stringOrExpression.optional(),
|
|
26
|
+
resolution: z.union([z.literal('720P'), z.literal('1080P'), expressionSchema]).optional(),
|
|
27
|
+
duration: numberOrExpression.optional(),
|
|
28
|
+
shotType: z.union([z.literal('single'), z.literal('multi'), expressionSchema]).optional(),
|
|
29
|
+
downloadVideo: booleanOrExpression.optional(),
|
|
30
|
+
simplify: booleanOrExpression.optional(),
|
|
31
|
+
videoOptions: z.object({ promptExtend: booleanOrExpression.optional(), audio: booleanOrExpression.optional(), audioInputType: z.union([z.literal('url'), z.literal('binary'), expressionSchema]).optional(), audioUrl: stringOrExpression.optional(), audioBinaryPropertyName: stringOrExpression.optional() }).optional(),
|
|
32
|
+
}).optional(),
|
|
33
|
+
subnodes: subnodesSchema.optional(),
|
|
34
|
+
});
|
|
35
|
+
};
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Alibaba Cloud Model Studio Node - Version 1
|
|
3
|
+
* Discriminator: resource=video, operation=textToVideo
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
interface Credentials {
|
|
8
|
+
alibabaCloudApi: CredentialReference;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
/** Generate a video from a text prompt */
|
|
12
|
+
export type LcAlibabaCloudV1VideoTextToVideoParams = {
|
|
13
|
+
resource: 'video';
|
|
14
|
+
operation: 'textToVideo';
|
|
15
|
+
/**
|
|
16
|
+
* The model to use for text-to-video generation
|
|
17
|
+
* @default wan2.6-t2v
|
|
18
|
+
*/
|
|
19
|
+
modelId?: 'wan2.6-t2v' | Expression<string>;
|
|
20
|
+
/**
|
|
21
|
+
* The text prompt to generate video from
|
|
22
|
+
*/
|
|
23
|
+
prompt?: string | Expression<string> | PlaceholderValue;
|
|
24
|
+
/**
|
|
25
|
+
* Resolution tier of the generated video
|
|
26
|
+
* @default 1080P
|
|
27
|
+
*/
|
|
28
|
+
resolution?: '720P' | '1080P' | Expression<string>;
|
|
29
|
+
/**
|
|
30
|
+
* Duration of the generated video in seconds (2–15)
|
|
31
|
+
* @default 5
|
|
32
|
+
*/
|
|
33
|
+
duration?: number | Expression<number>;
|
|
34
|
+
/**
|
|
35
|
+
* Whether to generate a single-shot or multi-shot narrative video
|
|
36
|
+
* @default single
|
|
37
|
+
*/
|
|
38
|
+
shotType?: 'single' | 'multi' | Expression<string>;
|
|
39
|
+
/**
|
|
40
|
+
* Whether to download the generated video as binary data. When disabled, only the video URL is returned.
|
|
41
|
+
* @default true
|
|
42
|
+
*/
|
|
43
|
+
downloadVideo?: boolean | Expression<boolean>;
|
|
44
|
+
/**
|
|
45
|
+
* Whether to return a simplified version of the response instead of the raw data
|
|
46
|
+
* @default true
|
|
47
|
+
*/
|
|
48
|
+
simplify?: boolean | Expression<boolean>;
|
|
49
|
+
/**
|
|
50
|
+
* Options
|
|
51
|
+
* @default {}
|
|
52
|
+
*/
|
|
53
|
+
videoOptions?: {
|
|
54
|
+
/** Whether to automatically extend and enhance the prompt
|
|
55
|
+
* @default false
|
|
56
|
+
*/
|
|
57
|
+
promptExtend?: boolean | Expression<boolean>;
|
|
58
|
+
/** Whether to generate audio for the video
|
|
59
|
+
* @default true
|
|
60
|
+
*/
|
|
61
|
+
audio?: boolean | Expression<boolean>;
|
|
62
|
+
/** Audio Input Type
|
|
63
|
+
* @default url
|
|
64
|
+
*/
|
|
65
|
+
audioInputType?: 'url' | 'binary' | Expression<string>;
|
|
66
|
+
/** URL of the audio file to use for the video
|
|
67
|
+
* @displayOptions.show { audioInputType: ["url"] }
|
|
68
|
+
*/
|
|
69
|
+
audioUrl?: string | Expression<string> | PlaceholderValue;
|
|
70
|
+
/** Audio Data Field Name
|
|
71
|
+
* @hint The name of the input field containing the binary audio data
|
|
72
|
+
* @displayOptions.show { audioInputType: ["binary"] }
|
|
73
|
+
* @default audio
|
|
74
|
+
*/
|
|
75
|
+
audioBinaryPropertyName?: string | Expression<string> | PlaceholderValue;
|
|
76
|
+
};
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
export interface LcAlibabaCloudV1VideoTextToVideoSubnodeConfig {
|
|
80
|
+
tools?: ToolInstance[];
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type LcAlibabaCloudV1VideoTextToVideoNode = {
|
|
84
|
+
type: '@n8n/n8n-nodes-langchain.alibabaCloud';
|
|
85
|
+
version: 1;
|
|
86
|
+
credentials?: Credentials;
|
|
87
|
+
config: NodeConfig<LcAlibabaCloudV1VideoTextToVideoParams> & { subnodes?: LcAlibabaCloudV1VideoTextToVideoSubnodeConfig };
|
|
88
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MiniMax Chat Model Node Types
|
|
3
|
+
*
|
|
4
|
+
* Re-exports all version-specific types and provides combined union type.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { LcLmChatMinimaxV1Node } from './v1';
|
|
8
|
+
|
|
9
|
+
export * from './v1';
|
|
10
|
+
|
|
11
|
+
// Combined union type for all versions
|
|
12
|
+
export type LcLmChatMinimaxNode = LcLmChatMinimaxV1Node;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MiniMax Chat Model Node - Version 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 }) {
|
|
14
|
+
|
|
15
|
+
// Parameters schema
|
|
16
|
+
const parametersSchema = z.object({
|
|
17
|
+
model: z.union([z.literal('MiniMax-M2'), z.literal('MiniMax-M2.1'), z.literal('MiniMax-M2.1-highspeed'), z.literal('MiniMax-M2.5'), z.literal('MiniMax-M2.5-highspeed'), z.literal('MiniMax-M2.7'), z.literal('MiniMax-M2.7-highspeed'), expressionSchema]).optional(),
|
|
18
|
+
options: z.object({ hideThinking: booleanOrExpression.optional(), maxTokens: numberOrExpression.optional(), temperature: numberOrExpression.optional(), timeout: numberOrExpression.optional(), maxRetries: numberOrExpression.optional(), topP: numberOrExpression.optional() }).optional(),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Return combined config schema
|
|
22
|
+
return z.object({
|
|
23
|
+
parameters: parametersSchema.nullable().optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* MiniMax Chat Model Node - Version 1
|
|
3
|
+
* For advanced usage with an AI chain
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface LcLmChatMinimaxV1Params {
|
|
8
|
+
/**
|
|
9
|
+
* The model which will generate the completion. <a href="https://platform.minimax.io/docs/api-reference/text-openai-api">Learn more</a>.
|
|
10
|
+
* @default MiniMax-M2.7
|
|
11
|
+
*/
|
|
12
|
+
model?: 'MiniMax-M2' | 'MiniMax-M2.1' | 'MiniMax-M2.1-highspeed' | 'MiniMax-M2.5' | 'MiniMax-M2.5-highspeed' | 'MiniMax-M2.7' | 'MiniMax-M2.7-highspeed' | Expression<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Additional options to add
|
|
15
|
+
* @default {}
|
|
16
|
+
*/
|
|
17
|
+
options?: {
|
|
18
|
+
/** Whether to strip chain-of-thought reasoning from the response, returning only the final answer
|
|
19
|
+
* @default true
|
|
20
|
+
*/
|
|
21
|
+
hideThinking?: boolean | Expression<boolean>;
|
|
22
|
+
/** The maximum number of tokens to generate in the completion. The limit depends on the selected model.
|
|
23
|
+
* @default -1
|
|
24
|
+
*/
|
|
25
|
+
maxTokens?: number | Expression<number>;
|
|
26
|
+
/** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
|
|
27
|
+
* @default 0.7
|
|
28
|
+
*/
|
|
29
|
+
temperature?: number | Expression<number>;
|
|
30
|
+
/** Maximum amount of time a request is allowed to take in milliseconds
|
|
31
|
+
* @default 360000
|
|
32
|
+
*/
|
|
33
|
+
timeout?: number | Expression<number>;
|
|
34
|
+
/** Maximum number of retries to attempt
|
|
35
|
+
* @default 2
|
|
36
|
+
*/
|
|
37
|
+
maxRetries?: number | Expression<number>;
|
|
38
|
+
/** Controls diversity via nucleus sampling: 0.5 means half of all likelihood-weighted options are considered. We generally recommend altering this or temperature but not both.
|
|
39
|
+
* @default 1
|
|
40
|
+
*/
|
|
41
|
+
topP?: number | Expression<number>;
|
|
42
|
+
};
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export interface LcLmChatMinimaxV1Credentials {
|
|
46
|
+
minimaxApi: CredentialReference;
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
interface LcLmChatMinimaxV1NodeBase {
|
|
50
|
+
type: '@n8n/n8n-nodes-langchain.lmChatMinimax';
|
|
51
|
+
version: 1;
|
|
52
|
+
credentials?: LcLmChatMinimaxV1Credentials;
|
|
53
|
+
isTrigger: true;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type LcLmChatMinimaxV1ParamsNode = LcLmChatMinimaxV1NodeBase & {
|
|
57
|
+
config: NodeConfig<LcLmChatMinimaxV1Params>;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
export type LcLmChatMinimaxV1Node = LcLmChatMinimaxV1ParamsNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moonshot Kimi Chat Model Node Types
|
|
3
|
+
*
|
|
4
|
+
* Re-exports all version-specific types and provides combined union type.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { LcLmChatMoonshotV1Node } from './v1';
|
|
8
|
+
|
|
9
|
+
export * from './v1';
|
|
10
|
+
|
|
11
|
+
// Combined union type for all versions
|
|
12
|
+
export type LcLmChatMoonshotNode = LcLmChatMoonshotV1Node;
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moonshot Kimi Chat Model Node - Version 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
|
+
model: stringOrExpression.optional(),
|
|
18
|
+
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() }).optional(),
|
|
19
|
+
});
|
|
20
|
+
|
|
21
|
+
// Return combined config schema
|
|
22
|
+
return z.object({
|
|
23
|
+
parameters: parametersSchema.nullable().optional(),
|
|
24
|
+
});
|
|
25
|
+
};
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moonshot Kimi Chat Model Node - Version 1
|
|
3
|
+
* For advanced usage with an AI chain
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export interface LcLmChatMoonshotV1Params {
|
|
8
|
+
/**
|
|
9
|
+
* The model which will generate the completion. <a href="https://platform.kimi.ai/docs/api/chat">Learn more</a>.
|
|
10
|
+
* @default kimi-k2.5
|
|
11
|
+
*/
|
|
12
|
+
model?: string | Expression<string>;
|
|
13
|
+
/**
|
|
14
|
+
* Additional options to add
|
|
15
|
+
* @default {}
|
|
16
|
+
*/
|
|
17
|
+
options?: {
|
|
18
|
+
/** 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
|
|
19
|
+
* @default 0
|
|
20
|
+
*/
|
|
21
|
+
frequencyPenalty?: number | Expression<number>;
|
|
22
|
+
/** The maximum number of tokens to generate in the completion. The limit depends on the selected model.
|
|
23
|
+
* @default -1
|
|
24
|
+
*/
|
|
25
|
+
maxTokens?: number | Expression<number>;
|
|
26
|
+
/** Response Format
|
|
27
|
+
* @default text
|
|
28
|
+
*/
|
|
29
|
+
responseFormat?: 'text' | 'json_object' | Expression<string>;
|
|
30
|
+
/** 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
|
|
31
|
+
* @default 0
|
|
32
|
+
*/
|
|
33
|
+
presencePenalty?: number | Expression<number>;
|
|
34
|
+
/** Controls randomness: Lowering results in less random completions. As the temperature approaches zero, the model will become deterministic and repetitive.
|
|
35
|
+
* @default 0.7
|
|
36
|
+
*/
|
|
37
|
+
temperature?: number | Expression<number>;
|
|
38
|
+
/** Maximum amount of time a request is allowed to take in milliseconds
|
|
39
|
+
* @default 360000
|
|
40
|
+
*/
|
|
41
|
+
timeout?: number | Expression<number>;
|
|
42
|
+
/** Maximum number of retries to attempt
|
|
43
|
+
* @default 2
|
|
44
|
+
*/
|
|
45
|
+
maxRetries?: number | Expression<number>;
|
|
46
|
+
/** Controls diversity via nucleus sampling: 0.5 means half of all likelihood-weighted options are considered. We generally recommend altering this or temperature but not both.
|
|
47
|
+
* @default 1
|
|
48
|
+
*/
|
|
49
|
+
topP?: number | Expression<number>;
|
|
50
|
+
};
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export interface LcLmChatMoonshotV1Credentials {
|
|
54
|
+
moonshotApi: CredentialReference;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
interface LcLmChatMoonshotV1NodeBase {
|
|
58
|
+
type: '@n8n/n8n-nodes-langchain.lmChatMoonshot';
|
|
59
|
+
version: 1;
|
|
60
|
+
credentials?: LcLmChatMoonshotV1Credentials;
|
|
61
|
+
isTrigger: true;
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type LcLmChatMoonshotV1ParamsNode = LcLmChatMoonshotV1NodeBase & {
|
|
65
|
+
config: NodeConfig<LcLmChatMoonshotV1Params>;
|
|
66
|
+
};
|
|
67
|
+
|
|
68
|
+
export type LcLmChatMoonshotV1Node = LcLmChatMoonshotV1ParamsNode;
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Moonshot Kimi Node Types
|
|
3
|
+
*
|
|
4
|
+
* Re-exports all version-specific types and provides combined union type.
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import type { LcMoonshotV1Node } from './v1';
|
|
8
|
+
|
|
9
|
+
export * from './v1';
|
|
10
|
+
|
|
11
|
+
// Combined union type for all versions
|
|
12
|
+
export type LcMoonshotNode = LcMoonshotV1Node;
|