@n8n/n8n-nodes-langchain 2.5.2 → 2.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/credentials/AnthropicApi.credentials.d.ts +9 -0
- package/dist/credentials/AnthropicApi.credentials.js +80 -100
- package/dist/credentials/AnthropicApi.credentials.js.map +1 -1
- package/dist/credentials/AzureAiSearchApi.credentials.d.ts +9 -0
- package/dist/credentials/AzureAiSearchApi.credentials.js +48 -71
- package/dist/credentials/AzureAiSearchApi.credentials.js.map +1 -1
- package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js +105 -129
- package/dist/credentials/AzureEntraCognitiveServicesOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/AzureOpenAiApi.credentials.d.ts +8 -0
- package/dist/credentials/AzureOpenAiApi.credentials.js +47 -70
- package/dist/credentials/AzureOpenAiApi.credentials.js.map +1 -1
- package/dist/credentials/ChromaCloudApi.credentials.d.ts +9 -0
- package/dist/credentials/ChromaCloudApi.credentials.js +55 -78
- package/dist/credentials/ChromaCloudApi.credentials.js.map +1 -1
- package/dist/credentials/ChromaSelfHostedApi.credentials.d.ts +9 -0
- package/dist/credentials/ChromaSelfHostedApi.credentials.js +78 -101
- package/dist/credentials/ChromaSelfHostedApi.credentials.js.map +1 -1
- package/dist/credentials/CohereApi.credentials.d.ts +9 -0
- package/dist/credentials/CohereApi.credentials.js +38 -61
- package/dist/credentials/CohereApi.credentials.js.map +1 -1
- package/dist/credentials/DeepSeekApi.credentials.d.ts +9 -0
- package/dist/credentials/DeepSeekApi.credentials.js +38 -61
- package/dist/credentials/DeepSeekApi.credentials.js.map +1 -1
- package/dist/credentials/GooglePalmApi.credentials.d.ts +9 -0
- package/dist/credentials/GooglePalmApi.credentials.js +38 -61
- package/dist/credentials/GooglePalmApi.credentials.js.map +1 -1
- package/dist/credentials/GroqApi.credentials.d.ts +9 -0
- package/dist/credentials/GroqApi.credentials.js +32 -55
- package/dist/credentials/GroqApi.credentials.js.map +1 -1
- package/dist/credentials/HuggingFaceApi.credentials.d.ts +9 -0
- package/dist/credentials/HuggingFaceApi.credentials.js +32 -55
- package/dist/credentials/HuggingFaceApi.credentials.js.map +1 -1
- package/dist/credentials/LemonadeApi.credentials.d.ts +13 -0
- package/dist/credentials/LemonadeApi.credentials.js +42 -65
- package/dist/credentials/LemonadeApi.credentials.js.map +1 -1
- package/dist/credentials/McpOAuth2Api.credentials.d.ts +8 -0
- package/dist/credentials/McpOAuth2Api.credentials.js +17 -40
- package/dist/credentials/McpOAuth2Api.credentials.js.map +1 -1
- package/dist/credentials/MilvusApi.credentials.d.ts +9 -0
- package/dist/credentials/MilvusApi.credentials.js +45 -68
- package/dist/credentials/MilvusApi.credentials.js.map +1 -1
- package/dist/credentials/MistralCloudApi.credentials.d.ts +9 -0
- package/dist/credentials/MistralCloudApi.credentials.js +33 -56
- package/dist/credentials/MistralCloudApi.credentials.js.map +1 -1
- package/dist/credentials/MotorheadApi.credentials.d.ts +9 -0
- package/dist/credentials/MotorheadApi.credentials.js +45 -68
- package/dist/credentials/MotorheadApi.credentials.js.map +1 -1
- package/dist/credentials/OllamaApi.credentials.d.ts +9 -0
- package/dist/credentials/OllamaApi.credentials.js +41 -64
- package/dist/credentials/OllamaApi.credentials.js.map +1 -1
- package/dist/credentials/OpenRouterApi.credentials.d.ts +9 -0
- package/dist/credentials/OpenRouterApi.credentials.js +38 -61
- package/dist/credentials/OpenRouterApi.credentials.js.map +1 -1
- package/dist/credentials/PineconeApi.credentials.d.ts +9 -0
- package/dist/credentials/PineconeApi.credentials.js +34 -57
- package/dist/credentials/PineconeApi.credentials.js.map +1 -1
- package/dist/credentials/QdrantApi.credentials.d.ts +9 -0
- package/dist/credentials/QdrantApi.credentials.js +39 -62
- package/dist/credentials/QdrantApi.credentials.js.map +1 -1
- package/dist/credentials/SearXngApi.credentials.d.ts +7 -0
- package/dist/credentials/SearXngApi.credentials.js +17 -40
- package/dist/credentials/SearXngApi.credentials.js.map +1 -1
- package/dist/credentials/SerpApi.credentials.d.ts +9 -0
- package/dist/credentials/SerpApi.credentials.js +32 -55
- package/dist/credentials/SerpApi.credentials.js.map +1 -1
- package/dist/credentials/VercelAiGatewayApi.credentials.d.ts +9 -0
- package/dist/credentials/VercelAiGatewayApi.credentials.js +54 -77
- package/dist/credentials/VercelAiGatewayApi.credentials.js.map +1 -1
- package/dist/credentials/WeaviateApi.credentials.d.ts +8 -0
- package/dist/credentials/WeaviateApi.credentials.js +137 -160
- package/dist/credentials/WeaviateApi.credentials.js.map +1 -1
- package/dist/credentials/WolframAlphaApi.credentials.d.ts +9 -0
- package/dist/credentials/WolframAlphaApi.credentials.js +36 -59
- package/dist/credentials/WolframAlphaApi.credentials.js.map +1 -1
- package/dist/credentials/XAiApi.credentials.d.ts +9 -0
- package/dist/credentials/XAiApi.credentials.js +38 -61
- package/dist/credentials/XAiApi.credentials.js.map +1 -1
- package/dist/credentials/XataApi.credentials.d.ts +9 -0
- package/dist/credentials/XataApi.credentials.js +46 -69
- package/dist/credentials/XataApi.credentials.js.map +1 -1
- package/dist/credentials/ZepApi.credentials.d.ts +9 -0
- package/dist/credentials/ZepApi.credentials.js +57 -80
- package/dist/credentials/ZepApi.credentials.js.map +1 -1
- package/dist/nodes/Guardrails/Guardrails.node.d.ts +4 -0
- package/dist/nodes/Guardrails/Guardrails.node.js +36 -59
- package/dist/nodes/Guardrails/Guardrails.node.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/jailbreak.d.ts +3 -0
- package/dist/nodes/Guardrails/actions/checks/jailbreak.js +6 -31
- package/dist/nodes/Guardrails/actions/checks/jailbreak.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/keywords.d.ts +6 -0
- package/dist/nodes/Guardrails/actions/checks/keywords.js +55 -75
- package/dist/nodes/Guardrails/actions/checks/keywords.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/nsfw.d.ts +3 -0
- package/dist/nodes/Guardrails/actions/checks/nsfw.js +6 -31
- package/dist/nodes/Guardrails/actions/checks/nsfw.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/pii.d.ts +49 -0
- package/dist/nodes/Guardrails/actions/checks/pii.js +178 -215
- package/dist/nodes/Guardrails/actions/checks/pii.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/secretKeys.d.ts +7 -0
- package/dist/nodes/Guardrails/actions/checks/secretKeys.js +154 -178
- package/dist/nodes/Guardrails/actions/checks/secretKeys.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/topicalAlignment.d.ts +3 -0
- package/dist/nodes/Guardrails/actions/checks/topicalAlignment.js +6 -31
- package/dist/nodes/Guardrails/actions/checks/topicalAlignment.js.map +1 -1
- package/dist/nodes/Guardrails/actions/checks/urls.d.ts +9 -0
- package/dist/nodes/Guardrails/actions/checks/urls.js +204 -223
- package/dist/nodes/Guardrails/actions/checks/urls.js.map +1 -1
- package/dist/nodes/Guardrails/actions/execute.d.ts +2 -0
- package/dist/nodes/Guardrails/actions/execute.js +43 -63
- package/dist/nodes/Guardrails/actions/execute.js.map +1 -1
- package/dist/nodes/Guardrails/actions/process.d.ts +12 -0
- package/dist/nodes/Guardrails/actions/process.js +185 -209
- package/dist/nodes/Guardrails/actions/process.js.map +1 -1
- package/dist/nodes/Guardrails/actions/types.d.ts +96 -0
- package/dist/nodes/Guardrails/actions/types.js +8 -31
- package/dist/nodes/Guardrails/actions/types.js.map +1 -1
- package/dist/nodes/Guardrails/description.d.ts +2 -0
- package/dist/nodes/Guardrails/description.js +345 -383
- package/dist/nodes/Guardrails/description.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/base.d.ts +9 -0
- package/dist/nodes/Guardrails/helpers/base.js +25 -61
- package/dist/nodes/Guardrails/helpers/base.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/common.d.ts +2 -0
- package/dist/nodes/Guardrails/helpers/common.js +20 -39
- package/dist/nodes/Guardrails/helpers/common.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.d.ts +22 -0
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.js +49 -74
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/mappers.d.ts +11 -0
- package/dist/nodes/Guardrails/helpers/mappers.js +73 -90
- package/dist/nodes/Guardrails/helpers/mappers.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/model.d.ts +7 -0
- package/dist/nodes/Guardrails/helpers/model.js +75 -104
- package/dist/nodes/Guardrails/helpers/model.js.map +1 -1
- package/dist/nodes/Guardrails/helpers/preflight.d.ts +2 -0
- package/dist/nodes/Guardrails/helpers/preflight.js +30 -54
- package/dist/nodes/Guardrails/helpers/preflight.js.map +1 -1
- package/dist/nodes/Guardrails/v1/GuardrailsV1.node.d.ts +6 -0
- package/dist/nodes/Guardrails/v1/GuardrailsV1.node.js +24 -47
- package/dist/nodes/Guardrails/v1/GuardrailsV1.node.js.map +1 -1
- package/dist/nodes/Guardrails/v2/GuardrailsV2.node.d.ts +6 -0
- package/dist/nodes/Guardrails/v2/GuardrailsV2.node.js +24 -47
- package/dist/nodes/Guardrails/v2/GuardrailsV2.node.js.map +1 -1
- package/dist/nodes/ModelSelector/ModelSelector.node.d.ts +13 -0
- package/dist/nodes/ModelSelector/ModelSelector.node.js +145 -170
- package/dist/nodes/ModelSelector/ModelSelector.node.js.map +1 -1
- package/dist/nodes/ModelSelector/helpers.d.ts +3 -0
- package/dist/nodes/ModelSelector/helpers.js +55 -80
- package/dist/nodes/ModelSelector/helpers.js.map +1 -1
- package/dist/nodes/ToolExecutor/ToolExecutor.node.d.ts +6 -0
- package/dist/nodes/ToolExecutor/ToolExecutor.node.js +134 -96
- package/dist/nodes/ToolExecutor/ToolExecutor.node.js.map +1 -1
- package/dist/nodes/ToolExecutor/utils/convertToSchema.d.ts +2 -0
- package/dist/nodes/ToolExecutor/utils/convertToSchema.js +36 -55
- package/dist/nodes/ToolExecutor/utils/convertToSchema.js.map +1 -1
- package/dist/nodes/ToolExecutor/utils/executeTool.d.ts +3 -0
- package/dist/nodes/ToolExecutor/utils/executeTool.js +11 -35
- package/dist/nodes/ToolExecutor/utils/executeTool.js.map +1 -1
- package/dist/nodes/agents/Agent/Agent.node.d.ts +4 -0
- package/dist/nodes/agents/Agent/Agent.node.js +52 -76
- package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
- package/dist/nodes/agents/Agent/AgentTool.node.d.ts +4 -0
- package/dist/nodes/agents/Agent/AgentTool.node.js +31 -56
- package/dist/nodes/agents/Agent/AgentTool.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V1/AgentV1.node.d.ts +6 -0
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js +396 -414
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.d.ts +6 -0
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js +72 -96
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentV2.node.d.ts +6 -0
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js +108 -131
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/utils.d.ts +2 -0
- package/dist/nodes/agents/Agent/V2/utils.js +65 -87
- package/dist/nodes/agents/Agent/V2/utils.js.map +1 -1
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.d.ts +7 -0
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js +67 -91
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V3/AgentV3.node.d.ts +7 -0
- package/dist/nodes/agents/Agent/V3/AgentV3.node.js +110 -133
- package/dist/nodes/agents/Agent/V3/AgentV3.node.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js +87 -111
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js +75 -99
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js +4 -30
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js +77 -101
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js +4 -28
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.d.ts +1 -0
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js +3 -27
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js +63 -87
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js +67 -90
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.d.ts +1 -0
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js +3 -27
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.js +107 -131
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js +82 -101
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.d.ts +4 -0
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js +6 -36
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.js +191 -215
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js +104 -130
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js +16 -40
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js +17 -41
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js +67 -67
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js +4 -30
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js +16 -40
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js +81 -123
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.d.ts +4 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.js +41 -66
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js +214 -278
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V2/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.js +26 -50
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/description.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.js +27 -58
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/execute.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.d.ts +13 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.js +30 -68
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildExecutionContext.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.d.ts +3 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.js +9 -36
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/checkMaxIterations.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.d.ts +10 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.js +30 -54
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/createAgentSequence.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.d.ts +8 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.js +65 -86
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/executeBatch.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.d.ts +5 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.js +15 -53
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/finalizeResult.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.d.ts +9 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.js +16 -48
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/index.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.d.ts +16 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.js +38 -62
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/prepareItemContext.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.d.ts +10 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js +64 -88
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/runAgent.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.d.ts +21 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.js +1 -15
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/types.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/common.d.ts +28 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js +212 -228
- package/dist/nodes/agents/Agent/agents/ToolsAgent/common.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/options.d.ts +2 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/options.js +35 -59
- package/dist/nodes/agents/Agent/agents/ToolsAgent/options.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.d.ts +1 -0
- package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.js +3 -27
- package/dist/nodes/agents/Agent/agents/ToolsAgent/prompt.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/utils.d.ts +6 -0
- package/dist/nodes/agents/Agent/agents/utils.js +17 -48
- package/dist/nodes/agents/Agent/agents/utils.js.map +1 -1
- package/dist/nodes/agents/Agent/utils.d.ts +2 -0
- package/dist/nodes/agents/Agent/utils.js +65 -87
- package/dist/nodes/agents/Agent/utils.js.map +1 -1
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.d.ts +5 -0
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +359 -380
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +1 -1
- package/dist/nodes/agents/OpenAiAssistant/utils.d.ts +5 -0
- package/dist/nodes/agents/OpenAiAssistant/utils.js +27 -53
- package/dist/nodes/agents/OpenAiAssistant/utils.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.d.ts +5 -0
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js +114 -142
- package/dist/nodes/chains/ChainLLM/ChainLlm.node.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.d.ts +29 -0
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js +103 -129
- package/dist/nodes/chains/ChainLLM/methods/chainExecutor.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/config.d.ts +3 -0
- package/dist/nodes/chains/ChainLLM/methods/config.js +292 -317
- package/dist/nodes/chains/ChainLLM/methods/config.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.d.ts +12 -0
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.js +60 -94
- package/dist/nodes/chains/ChainLLM/methods/imageUtils.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/index.d.ts +4 -0
- package/dist/nodes/chains/ChainLLM/methods/index.js +9 -35
- package/dist/nodes/chains/ChainLLM/methods/index.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/processItem.d.ts +2 -0
- package/dist/nodes/chains/ChainLLM/methods/processItem.js +54 -89
- package/dist/nodes/chains/ChainLLM/methods/processItem.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.d.ts +7 -0
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.js +86 -126
- package/dist/nodes/chains/ChainLLM/methods/promptUtils.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.d.ts +2 -0
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js +22 -46
- package/dist/nodes/chains/ChainLLM/methods/responseFormatter.js.map +1 -1
- package/dist/nodes/chains/ChainLLM/methods/types.d.ts +29 -0
- package/dist/nodes/chains/ChainLLM/methods/types.js +1 -15
- package/dist/nodes/chains/ChainLLM/methods/types.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.d.ts +5 -0
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js +231 -253
- package/dist/nodes/chains/ChainRetrievalQA/ChainRetrievalQa.node.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/constants.d.ts +5 -0
- package/dist/nodes/chains/ChainRetrievalQA/constants.js +13 -43
- package/dist/nodes/chains/ChainRetrievalQA/constants.js.map +1 -1
- package/dist/nodes/chains/ChainRetrievalQA/processItem.d.ts +2 -0
- package/dist/nodes/chains/ChainRetrievalQA/processItem.js +57 -85
- package/dist/nodes/chains/ChainRetrievalQA/processItem.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.d.ts +4 -0
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js +38 -61
- package/dist/nodes/chains/ChainSummarization/ChainSummarization.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.d.ts +6 -0
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js +208 -233
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.d.ts +6 -0
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js +323 -352
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/processItem.d.ts +3 -0
- package/dist/nodes/chains/ChainSummarization/V2/processItem.js +50 -89
- package/dist/nodes/chains/ChainSummarization/V2/processItem.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/helpers.d.ts +9 -0
- package/dist/nodes/chains/ChainSummarization/helpers.js +43 -67
- package/dist/nodes/chains/ChainSummarization/helpers.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/prompt.d.ts +2 -0
- package/dist/nodes/chains/ChainSummarization/prompt.js +4 -30
- package/dist/nodes/chains/ChainSummarization/prompt.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.d.ts +5 -0
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js +251 -283
- package/dist/nodes/chains/InformationExtractor/InformationExtractor.node.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/constants.d.ts +1 -0
- package/dist/nodes/chains/InformationExtractor/constants.js +3 -27
- package/dist/nodes/chains/InformationExtractor/constants.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/helpers.d.ts +7 -0
- package/dist/nodes/chains/InformationExtractor/helpers.js +28 -48
- package/dist/nodes/chains/InformationExtractor/helpers.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/processItem.d.ts +4 -0
- package/dist/nodes/chains/InformationExtractor/processItem.js +26 -52
- package/dist/nodes/chains/InformationExtractor/processItem.js.map +1 -1
- package/dist/nodes/chains/InformationExtractor/types.d.ts +6 -0
- package/dist/nodes/chains/InformationExtractor/types.js +1 -15
- package/dist/nodes/chains/InformationExtractor/types.js.map +1 -1
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.d.ts +5 -0
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js +314 -350
- package/dist/nodes/chains/SentimentAnalysis/SentimentAnalysis.node.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.d.ts +5 -0
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js +246 -285
- package/dist/nodes/chains/TextClassifier/TextClassifier.node.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/constants.d.ts +1 -0
- package/dist/nodes/chains/TextClassifier/constants.js +3 -27
- package/dist/nodes/chains/TextClassifier/constants.js.map +1 -1
- package/dist/nodes/chains/TextClassifier/processItem.d.ts +7 -0
- package/dist/nodes/chains/TextClassifier/processItem.js +26 -59
- package/dist/nodes/chains/TextClassifier/processItem.js.map +1 -1
- package/dist/nodes/code/Code.node.d.ts +8 -0
- package/dist/nodes/code/Code.node.js +316 -364
- package/dist/nodes/code/Code.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.d.ts +8 -0
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js +166 -197
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.d.ts +8 -0
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js +317 -336
- package/dist/nodes/document_loaders/DocumentDefaultDataLoader/DocumentDefaultDataLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.d.ts +5 -0
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js +152 -171
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js.map +1 -1
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.d.ts +5 -0
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js +77 -105
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js +123 -146
- package/dist/nodes/embeddings/EmbeddingsAwsBedrock/EmbeddingsAwsBedrock.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js +132 -159
- package/dist/nodes/embeddings/EmbeddingsAzureOpenAi/EmbeddingsAzureOpenAi.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js +101 -124
- package/dist/nodes/embeddings/EmbeddingsCohere/EmbeddingsCohere.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js +118 -145
- package/dist/nodes/embeddings/EmbeddingsGoogleGemini/EmbeddingsGoogleGemini.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.d.ts +15 -0
- package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js +136 -159
- package/dist/nodes/embeddings/EmbeddingsGoogleVertex/EmbeddingsGoogleVertex.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js +98 -125
- package/dist/nodes/embeddings/EmbeddingsHuggingFaceInference/EmbeddingsHuggingFaceInference.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.js +58 -81
- package/dist/nodes/embeddings/EmbeddingsLemonade/EmbeddingsLemonade.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js +136 -163
- package/dist/nodes/embeddings/EmbeddingsMistralCloud/EmbeddingsMistralCloud.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js +56 -77
- package/dist/nodes/embeddings/EmbeddingsOllama/EmbeddingsOllama.node.js.map +1 -1
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.d.ts +5 -0
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js +228 -251
- package/dist/nodes/embeddings/EmbeddingsOpenAI/EmbeddingsOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.d.ts +11 -0
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js +294 -322
- package/dist/nodes/llms/LMChatAnthropic/LmChatAnthropic.node.js.map +1 -1
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.d.ts +8 -0
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js +38 -60
- package/dist/nodes/llms/LMChatAnthropic/methods/searchModels.js.map +1 -1
- package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.d.ts +5 -0
- package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js +83 -104
- package/dist/nodes/llms/LMChatLemonade/LmChatLemonade.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.d.ts +5 -0
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js +69 -90
- package/dist/nodes/llms/LMChatOllama/LmChatOllama.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.d.ts +11 -0
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js +730 -759
- package/dist/nodes/llms/LMChatOpenAi/LmChatOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/common.d.ts +4 -0
- package/dist/nodes/llms/LMChatOpenAi/common.js +116 -141
- package/dist/nodes/llms/LMChatOpenAi/common.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.d.ts +2 -0
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js +38 -66
- package/dist/nodes/llms/LMChatOpenAi/methods/loadModels.js.map +1 -1
- package/dist/nodes/llms/LMChatOpenAi/types.d.ts +59 -0
- package/dist/nodes/llms/LMChatOpenAi/types.js +1 -15
- package/dist/nodes/llms/LMChatOpenAi/types.js.map +1 -1
- package/dist/nodes/llms/LMCohere/LmCohere.node.d.ts +5 -0
- package/dist/nodes/llms/LMCohere/LmCohere.node.js +93 -116
- package/dist/nodes/llms/LMCohere/LmCohere.node.js.map +1 -1
- package/dist/nodes/llms/LMLemonade/LmLemonade.node.d.ts +5 -0
- package/dist/nodes/llms/LMLemonade/LmLemonade.node.js +81 -101
- package/dist/nodes/llms/LMLemonade/LmLemonade.node.js.map +1 -1
- package/dist/nodes/llms/LMLemonade/description.d.ts +4 -0
- package/dist/nodes/llms/LMLemonade/description.js +112 -140
- package/dist/nodes/llms/LMLemonade/description.js.map +1 -1
- package/dist/nodes/llms/LMOllama/LmOllama.node.d.ts +5 -0
- package/dist/nodes/llms/LMOllama/LmOllama.node.js +65 -86
- package/dist/nodes/llms/LMOllama/LmOllama.node.js.map +1 -1
- package/dist/nodes/llms/LMOllama/description.d.ts +4 -0
- package/dist/nodes/llms/LMOllama/description.js +207 -235
- package/dist/nodes/llms/LMOllama/description.js.map +1 -1
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.d.ts +15 -0
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js +226 -248
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.d.ts +5 -0
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js +133 -156
- package/dist/nodes/llms/LMOpenHuggingFaceInference/LmOpenHuggingFaceInference.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js +234 -258
- package/dist/nodes/llms/LmChatAwsBedrock/LmChatAwsBedrock.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js +111 -144
- package/dist/nodes/llms/LmChatAzureOpenAi/LmChatAzureOpenAi.node.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.d.ts +14 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js +41 -69
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/N8nOAuth2TokenCredential.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.d.ts +3 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js +21 -47
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/api-key.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.d.ts +3 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js +23 -50
- package/dist/nodes/llms/LmChatAzureOpenAi/credentials/oauth2.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/properties.d.ts +2 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/properties.js +124 -151
- package/dist/nodes/llms/LmChatAzureOpenAi/properties.js.map +1 -1
- package/dist/nodes/llms/LmChatAzureOpenAi/types.d.ts +56 -0
- package/dist/nodes/llms/LmChatAzureOpenAi/types.js +14 -40
- package/dist/nodes/llms/LmChatAzureOpenAi/types.js.map +1 -1
- package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.d.ts +11 -0
- package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.js +148 -172
- package/dist/nodes/llms/LmChatCohere/LmChatCohere.node.js.map +1 -1
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js +220 -241
- package/dist/nodes/llms/LmChatDeepSeek/LmChatDeepSeek.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js +133 -162
- package/dist/nodes/llms/LmChatGoogleGemini/LmChatGoogleGemini.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.d.ts +15 -0
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js +174 -205
- package/dist/nodes/llms/LmChatGoogleVertex/LmChatGoogleVertex.node.js.map +1 -1
- package/dist/nodes/llms/LmChatGoogleVertex/error-handling.d.ts +8 -0
- package/dist/nodes/llms/LmChatGoogleVertex/error-handling.js +14 -36
- package/dist/nodes/llms/LmChatGoogleVertex/error-handling.js.map +1 -1
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js +136 -159
- package/dist/nodes/llms/LmChatGroq/LmChatGroq.node.js.map +1 -1
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js +194 -217
- package/dist/nodes/llms/LmChatMistralCloud/LmChatMistralCloud.node.js.map +1 -1
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js +220 -241
- package/dist/nodes/llms/LmChatOpenRouter/LmChatOpenRouter.node.js.map +1 -1
- package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.js +220 -241
- package/dist/nodes/llms/LmChatVercelAiGateway/LmChatVercelAiGateway.node.js.map +1 -1
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.d.ts +5 -0
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js +222 -243
- package/dist/nodes/llms/LmChatXAiGrok/LmChatXAiGrok.node.js.map +1 -1
- package/dist/nodes/llms/N8nLlmTracing.d.ts +46 -0
- package/dist/nodes/llms/N8nLlmTracing.js +144 -189
- package/dist/nodes/llms/N8nLlmTracing.js.map +1 -1
- package/dist/nodes/llms/N8nNonEstimatingTracing.d.ts +31 -0
- package/dist/nodes/llms/N8nNonEstimatingTracing.js +112 -157
- package/dist/nodes/llms/N8nNonEstimatingTracing.js.map +1 -1
- package/dist/nodes/llms/gemini-common/additional-options.d.ts +4 -0
- package/dist/nodes/llms/gemini-common/additional-options.js +95 -122
- package/dist/nodes/llms/gemini-common/additional-options.js.map +1 -1
- package/dist/nodes/llms/gemini-common/safety-options.d.ts +3 -0
- package/dist/nodes/llms/gemini-common/safety-options.js +49 -75
- package/dist/nodes/llms/gemini-common/safety-options.js.map +1 -1
- package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.d.ts +1 -0
- package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js +24 -60
- package/dist/nodes/llms/n8nDefaultFailedAttemptHandler.js.map +1 -1
- package/dist/nodes/llms/n8nLlmFailedAttemptHandler.d.ts +3 -0
- package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js +24 -46
- package/dist/nodes/llms/n8nLlmFailedAttemptHandler.js.map +1 -1
- package/dist/nodes/mcp/McpClient/McpClient.node.d.ts +11 -0
- package/dist/nodes/mcp/McpClient/McpClient.node.js +317 -323
- package/dist/nodes/mcp/McpClient/McpClient.node.js.map +1 -1
- package/dist/nodes/mcp/McpClient/listSearch.d.ts +2 -0
- package/dist/nodes/mcp/McpClient/listSearch.js +32 -54
- package/dist/nodes/mcp/McpClient/listSearch.js.map +1 -1
- package/dist/nodes/mcp/McpClient/resourceMapping.d.ts +2 -0
- package/dist/nodes/mcp/McpClient/resourceMapping.js +33 -57
- package/dist/nodes/mcp/McpClient/resourceMapping.js.map +1 -1
- package/dist/nodes/mcp/McpClient/utils.d.ts +5 -0
- package/dist/nodes/mcp/McpClient/utils.js +202 -232
- package/dist/nodes/mcp/McpClient/utils.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.d.ts +12 -0
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js +359 -397
- package/dist/nodes/mcp/McpClientTool/McpClientTool.node.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/loadOptions.d.ts +2 -0
- package/dist/nodes/mcp/McpClientTool/loadOptions.js +34 -57
- package/dist/nodes/mcp/McpClientTool/loadOptions.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/types.d.ts +1 -0
- package/dist/nodes/mcp/McpClientTool/types.js +1 -15
- package/dist/nodes/mcp/McpClientTool/types.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/utils.d.ts +14 -0
- package/dist/nodes/mcp/McpClientTool/utils.js +70 -109
- package/dist/nodes/mcp/McpClientTool/utils.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/FlushingTransport.d.ts +21 -0
- package/dist/nodes/mcp/McpTrigger/FlushingTransport.js +32 -56
- package/dist/nodes/mcp/McpTrigger/FlushingTransport.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/McpServer.d.ts +27 -0
- package/dist/nodes/mcp/McpTrigger/McpServer.js +201 -230
- package/dist/nodes/mcp/McpTrigger/McpServer.js.map +1 -1
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.d.ts +6 -0
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js +172 -189
- package/dist/nodes/mcp/McpTrigger/McpTrigger.node.js.map +1 -1
- package/dist/nodes/mcp/shared/descriptions.d.ts +6 -0
- package/dist/nodes/mcp/shared/descriptions.js +54 -82
- package/dist/nodes/mcp/shared/descriptions.js.map +1 -1
- package/dist/nodes/mcp/shared/types.d.ts +8 -0
- package/dist/nodes/mcp/shared/types.js +1 -15
- package/dist/nodes/mcp/shared/types.js.map +1 -1
- package/dist/nodes/mcp/shared/utils.d.ts +32 -0
- package/dist/nodes/mcp/shared/utils.js +182 -202
- package/dist/nodes/mcp/shared/utils.js.map +1 -1
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js +137 -158
- package/dist/nodes/memory/MemoryBufferWindow/MemoryBufferWindow.node.js.map +1 -1
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js +84 -107
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js.map +1 -1
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.d.ts +7 -0
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js +324 -362
- package/dist/nodes/memory/MemoryManager/MemoryManager.node.js.map +1 -1
- package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js +120 -148
- package/dist/nodes/memory/MemoryMongoDbChat/MemoryMongoDbChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +105 -127
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +1 -1
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.d.ts +11 -0
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js +98 -119
- package/dist/nodes/memory/MemoryPostgresChat/MemoryPostgresChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js +151 -171
- package/dist/nodes/memory/MemoryRedisChat/MemoryRedisChat.node.js.map +1 -1
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js +126 -152
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js.map +1 -1
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.d.ts +5 -0
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js +141 -165
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js.map +1 -1
- package/dist/nodes/memory/descriptions.d.ts +5 -0
- package/dist/nodes/memory/descriptions.js +48 -78
- package/dist/nodes/memory/descriptions.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.d.ts +5 -0
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js +90 -127
- package/dist/nodes/output_parser/OutputParserAutofixing/OutputParserAutofixing.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserAutofixing/prompt.d.ts +1 -0
- package/dist/nodes/output_parser/OutputParserAutofixing/prompt.js +3 -27
- package/dist/nodes/output_parser/OutputParserAutofixing/prompt.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.d.ts +5 -0
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js +68 -101
- package/dist/nodes/output_parser/OutputParserItemList/OutputParserItemList.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.d.ts +5 -0
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js +159 -196
- package/dist/nodes/output_parser/OutputParserStructured/OutputParserStructured.node.js.map +1 -1
- package/dist/nodes/output_parser/OutputParserStructured/prompt.d.ts +1 -0
- package/dist/nodes/output_parser/OutputParserStructured/prompt.js +3 -27
- package/dist/nodes/output_parser/OutputParserStructured/prompt.js.map +1 -1
- package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.d.ts +5 -0
- package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.js +87 -110
- package/dist/nodes/rerankers/RerankerCohere/RerankerCohere.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js +69 -98
- package/dist/nodes/retrievers/RetrieverContextualCompression/RetrieverContextualCompression.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js +88 -117
- package/dist/nodes/retrievers/RetrieverMultiQuery/RetrieverMultiQuery.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js +68 -93
- package/dist/nodes/retrievers/RetrieverVectorStore/RetrieverVectorStore.node.js.map +1 -1
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.d.ts +5 -0
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js +356 -400
- package/dist/nodes/retrievers/RetrieverWorkflow/RetrieverWorkflow.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.d.ts +5 -0
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js +76 -99
- package/dist/nodes/text_splitters/TextSplitterCharacterTextSplitter/TextSplitterCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.d.ts +5 -0
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js +103 -130
- package/dist/nodes/text_splitters/TextSplitterRecursiveCharacterTextSplitter/TextSplitterRecursiveCharacterTextSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.d.ts +5 -0
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js +70 -93
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TextSplitterTokenSplitter.node.js.map +1 -1
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.d.ts +12 -0
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.js +50 -81
- package/dist/nodes/text_splitters/TextSplitterTokenSplitter/TokenTextSplitter.js.map +1 -1
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.d.ts +6 -0
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js +63 -86
- package/dist/nodes/tools/ToolCalculator/ToolCalculator.node.js.map +1 -1
- package/dist/nodes/tools/ToolCode/ToolCode.node.d.ts +6 -0
- package/dist/nodes/tools/ToolCode/ToolCode.node.js +278 -310
- package/dist/nodes/tools/ToolCode/ToolCode.node.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.d.ts +5 -0
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js +329 -384
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/descriptions.d.ts +7 -0
- package/dist/nodes/tools/ToolHttpRequest/descriptions.js +357 -394
- package/dist/nodes/tools/ToolHttpRequest/descriptions.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/interfaces.d.ts +20 -0
- package/dist/nodes/tools/ToolHttpRequest/interfaces.js +1 -15
- package/dist/nodes/tools/ToolHttpRequest/interfaces.js.map +1 -1
- package/dist/nodes/tools/ToolHttpRequest/utils.d.ts +25 -0
- package/dist/nodes/tools/ToolHttpRequest/utils.js +540 -581
- package/dist/nodes/tools/ToolHttpRequest/utils.js.map +1 -1
- package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.d.ts +6 -0
- package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.js +118 -141
- package/dist/nodes/tools/ToolSearXng/ToolSearXng.node.js.map +1 -1
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.d.ts +6 -0
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js +123 -149
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js.map +1 -1
- package/dist/nodes/tools/ToolThink/ToolThink.node.d.ts +6 -0
- package/dist/nodes/tools/ToolThink/ToolThink.node.js +87 -110
- package/dist/nodes/tools/ToolThink/ToolThink.node.js.map +1 -1
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.d.ts +6 -0
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js +126 -153
- package/dist/nodes/tools/ToolVectorStore/ToolVectorStore.node.js.map +1 -1
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js +62 -84
- package/dist/nodes/tools/ToolWikipedia/ToolWikipedia.node.js.map +1 -1
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js +66 -89
- package/dist/nodes/tools/ToolWolframAlpha/ToolWolframAlpha.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.d.ts +4 -0
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js +42 -65
- package/dist/nodes/tools/ToolWorkflow/ToolWorkflow.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.d.ts +6 -0
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js +185 -193
- package/dist/nodes/tools/ToolWorkflow/v1/ToolWorkflowV1.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js +287 -324
- package/dist/nodes/tools/ToolWorkflow/v1/versionDescription.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.d.ts +11 -0
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js +58 -79
- package/dist/nodes/tools/ToolWorkflow/v2/ToolWorkflowV2.node.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/methods/index.d.ts +1 -0
- package/dist/nodes/tools/ToolWorkflow/v2/methods/index.js +35 -36
- package/dist/nodes/tools/ToolWorkflow/v2/methods/index.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.js +20 -42
- package/dist/nodes/tools/ToolWorkflow/v2/methods/localResourceMapping.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.d.ts +26 -0
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js +235 -288
- package/dist/nodes/tools/ToolWorkflow/v2/utils/WorkflowToolService.js.map +1 -1
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.d.ts +2 -0
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js +131 -164
- package/dist/nodes/tools/ToolWorkflow/v2/versionDescription.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/Chat.node.d.ts +8 -0
- package/dist/nodes/trigger/ChatTrigger/Chat.node.js +233 -275
- package/dist/nodes/trigger/ChatTrigger/Chat.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.d.ts +7 -0
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js +770 -775
- package/dist/nodes/trigger/ChatTrigger/ChatTrigger.node.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/GenericFunctions.d.ts +2 -0
- package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js +41 -70
- package/dist/nodes/trigger/ChatTrigger/GenericFunctions.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/constants.d.ts +1 -0
- package/dist/nodes/trigger/ChatTrigger/constants.js +3 -27
- package/dist/nodes/trigger/ChatTrigger/constants.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/error.d.ts +5 -0
- package/dist/nodes/trigger/ChatTrigger/error.js +17 -39
- package/dist/nodes/trigger/ChatTrigger/error.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/templates.d.ts +19 -0
- package/dist/nodes/trigger/ChatTrigger/templates.js +55 -95
- package/dist/nodes/trigger/ChatTrigger/templates.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/types.d.ts +6 -0
- package/dist/nodes/trigger/ChatTrigger/types.js +8 -32
- package/dist/nodes/trigger/ChatTrigger/types.js.map +1 -1
- package/dist/nodes/trigger/ChatTrigger/util.d.ts +15 -0
- package/dist/nodes/trigger/ChatTrigger/util.js +101 -135
- package/dist/nodes/trigger/ChatTrigger/util.js.map +1 -1
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.d.ts +5 -0
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js +63 -87
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.d.ts +29 -0
- package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.js +325 -387
- package/dist/nodes/vector_store/VectorStoreAzureAISearch/VectorStoreAzureAISearch.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.js +309 -326
- package/dist/nodes/vector_store/VectorStoreChromaDB/VectorStoreChromaDB.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js +136 -164
- package/dist/nodes/vector_store/VectorStoreInMemory/VectorStoreInMemory.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js +83 -116
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js +62 -90
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.js +77 -100
- package/dist/nodes/vector_store/VectorStoreMilvus/VectorStoreMilvus.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.d.ts +47 -0
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js +278 -340
- package/dist/nodes/vector_store/VectorStoreMongoDBAtlas/VectorStoreMongoDBAtlas.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js +221 -256
- package/dist/nodes/vector_store/VectorStorePGVector/VectorStorePGVector.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js +109 -131
- package/dist/nodes/vector_store/VectorStorePinecone/VectorStorePinecone.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js +107 -137
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js +98 -125
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.d.ts +6 -0
- package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.js +27 -48
- package/dist/nodes/vector_store/VectorStoreQdrant/Qdrant.utils.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js +130 -162
- package/dist/nodes/vector_store/VectorStoreQdrant/VectorStoreQdrant.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.d.ts +34 -0
- package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.js +267 -292
- package/dist/nodes/vector_store/VectorStoreRedis/VectorStoreRedis.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.d.ts +18 -0
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js +95 -116
- package/dist/nodes/vector_store/VectorStoreSupabase/VectorStoreSupabase.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js +99 -129
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.d.ts +11 -0
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js +94 -121
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.js +301 -336
- package/dist/nodes/vector_store/VectorStoreWeaviate/VectorStoreWeaviate.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.d.ts +28 -0
- package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.js +118 -117
- package/dist/nodes/vector_store/VectorStoreWeaviate/Weaviate.utils.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.d.ts +19 -0
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js +119 -139
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js +117 -147
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js.map +1 -1
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.d.ts +5 -0
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js +100 -127
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.d.ts +7 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js +37 -65
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryCalculator.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.d.ts +34 -0
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js +161 -222
- package/dist/nodes/vector_store/shared/MemoryManager/MemoryVectorStoreManager.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.d.ts +16 -0
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js +87 -120
- package/dist/nodes/vector_store/shared/MemoryManager/StoreCleanupService.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/config.d.ts +4 -0
- package/dist/nodes/vector_store/shared/MemoryManager/config.js +26 -50
- package/dist/nodes/vector_store/shared/MemoryManager/config.js.map +1 -1
- package/dist/nodes/vector_store/shared/MemoryManager/types.d.ts +39 -0
- package/dist/nodes/vector_store/shared/MemoryManager/types.js +1 -15
- package/dist/nodes/vector_store/shared/MemoryManager/types.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.d.ts +4 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js +41 -67
- package/dist/nodes/vector_store/shared/createVectorStoreNode/constants.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.d.ts +18 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js +229 -281
- package/dist/nodes/vector_store/shared/createVectorStoreNode/createVectorStoreNode.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.d.ts +31 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js +70 -97
- package/dist/nodes/vector_store/shared/createVectorStoreNode/methods/listSearch.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.d.ts +6 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js +20 -30
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/index.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js +29 -58
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/insertOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js +39 -75
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/loadOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.js +57 -92
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolExecuteOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js +56 -91
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveAsToolOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js +24 -50
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/retrieveOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.d.ts +5 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js +34 -64
- package/dist/nodes/vector_store/shared/createVectorStoreNode/operations/updateOperation.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.d.ts +37 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js +1 -15
- package/dist/nodes/vector_store/shared/createVectorStoreNode/types.js.map +1 -1
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.d.ts +6 -0
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js +12 -40
- package/dist/nodes/vector_store/shared/createVectorStoreNode/utils.js.map +1 -1
- package/dist/nodes/vector_store/shared/descriptions.d.ts +7 -0
- package/dist/nodes/vector_store/shared/descriptions.js +128 -162
- package/dist/nodes/vector_store/shared/descriptions.js.map +1 -1
- package/dist/nodes/vector_store/shared/processDocuments.d.ts +25 -0
- package/dist/nodes/vector_store/shared/processDocuments.js +35 -58
- package/dist/nodes/vector_store/shared/processDocuments.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/Anthropic.node.d.ts +9 -0
- package/dist/nodes/vendors/Anthropic/Anthropic.node.js +15 -38
- package/dist/nodes/vendors/Anthropic/Anthropic.node.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/actions/descriptions.js +25 -49
- package/dist/nodes/vendors/Anthropic/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.js +91 -116
- package/dist/nodes/vendors/Anthropic/actions/document/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/document/index.d.ts +4 -0
- package/dist/nodes/vendors/Anthropic/actions/document/index.js +58 -60
- package/dist/nodes/vendors/Anthropic/actions/document/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.js +27 -54
- package/dist/nodes/vendors/Anthropic/actions/file/delete.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/get.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/get.operation.js +29 -56
- package/dist/nodes/vendors/Anthropic/actions/file/get.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/index.d.ts +7 -0
- package/dist/nodes/vendors/Anthropic/actions/file/index.js +85 -90
- package/dist/nodes/vendors/Anthropic/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/list.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/list.operation.js +70 -96
- package/dist/nodes/vendors/Anthropic/actions/file/list.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.d.ts +29 -0
- package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.js +92 -118
- package/dist/nodes/vendors/Anthropic/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.js +91 -116
- package/dist/nodes/vendors/Anthropic/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/image/index.d.ts +4 -0
- package/dist/nodes/vendors/Anthropic/actions/image/index.js +58 -60
- package/dist/nodes/vendors/Anthropic/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/node.type.d.ts +10 -0
- package/dist/nodes/vendors/Anthropic/actions/node.type.js +1 -15
- package/dist/nodes/vendors/Anthropic/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.js +51 -76
- package/dist/nodes/vendors/Anthropic/actions/prompt/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.js +117 -142
- package/dist/nodes/vendors/Anthropic/actions/prompt/improve.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/index.d.ts +6 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/index.js +87 -91
- package/dist/nodes/vendors/Anthropic/actions/prompt/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.js +109 -134
- package/dist/nodes/vendors/Anthropic/actions/prompt/templatize.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/actions/router.js +84 -87
- package/dist/nodes/vendors/Anthropic/actions/router.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/Anthropic/actions/text/index.js +58 -60
- package/dist/nodes/vendors/Anthropic/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js +489 -508
- package/dist/nodes/vendors/Anthropic/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/actions/versionDescription.js +105 -106
- package/dist/nodes/vendors/Anthropic/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js +80 -102
- package/dist/nodes/vendors/Anthropic/helpers/baseAnalyze.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/helpers/interfaces.d.ts +74 -0
- package/dist/nodes/vendors/Anthropic/helpers/interfaces.js +1 -15
- package/dist/nodes/vendors/Anthropic/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/helpers/utils.d.ts +10 -0
- package/dist/nodes/vendors/Anthropic/helpers/utils.js +39 -71
- package/dist/nodes/vendors/Anthropic/helpers/utils.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/Anthropic/methods/index.js +35 -36
- package/dist/nodes/vendors/Anthropic/methods/index.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/methods/listSearch.d.ts +2 -0
- package/dist/nodes/vendors/Anthropic/methods/listSearch.js +14 -38
- package/dist/nodes/vendors/Anthropic/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/Anthropic/transport/index.d.ts +14 -0
- package/dist/nodes/vendors/Anthropic/transport/index.js +36 -57
- package/dist/nodes/vendors/Anthropic/transport/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.d.ts +9 -0
- package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js +15 -38
- package/dist/nodes/vendors/GoogleGemini/GoogleGemini.node.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/audio/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/audio/index.d.ts +5 -0
- package/dist/nodes/vendors/GoogleGemini/actions/audio/index.js +67 -70
- package/dist/nodes/vendors/GoogleGemini/actions/audio/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.js +158 -173
- package/dist/nodes/vendors/GoogleGemini/actions/audio/transcribe.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js +25 -48
- package/dist/nodes/vendors/GoogleGemini/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/document/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/document/index.d.ts +4 -0
- package/dist/nodes/vendors/GoogleGemini/actions/document/index.js +58 -60
- package/dist/nodes/vendors/GoogleGemini/actions/document/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/file/index.d.ts +4 -0
- package/dist/nodes/vendors/GoogleGemini/actions/file/index.js +58 -60
- package/dist/nodes/vendors/GoogleGemini/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.js +67 -94
- package/dist/nodes/vendors/GoogleGemini/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.js +30 -57
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/createStore.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.js +38 -65
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/deleteStore.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.d.ts +7 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.js +85 -90
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.js +40 -68
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/listStores.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.d.ts +29 -0
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.js +87 -121
- package/dist/nodes/vendors/GoogleGemini/actions/fileSearch/uploadToStore.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js +161 -191
- package/dist/nodes/vendors/GoogleGemini/actions/image/edit.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js +118 -158
- package/dist/nodes/vendors/GoogleGemini/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/image/index.d.ts +6 -0
- package/dist/nodes/vendors/GoogleGemini/actions/image/index.js +76 -80
- package/dist/nodes/vendors/GoogleGemini/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/node.type.d.ts +12 -0
- package/dist/nodes/vendors/GoogleGemini/actions/node.type.js +1 -15
- package/dist/nodes/vendors/GoogleGemini/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/actions/router.js +92 -95
- package/dist/nodes/vendors/GoogleGemini/actions/router.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/GoogleGemini/actions/text/index.js +58 -60
- package/dist/nodes/vendors/GoogleGemini/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js +497 -522
- package/dist/nodes/vendors/GoogleGemini/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js +118 -119
- package/dist/nodes/vendors/GoogleGemini/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.js +91 -116
- package/dist/nodes/vendors/GoogleGemini/actions/video/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js +51 -80
- package/dist/nodes/vendors/GoogleGemini/actions/video/download.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js +174 -213
- package/dist/nodes/vendors/GoogleGemini/actions/video/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/actions/video/index.d.ts +6 -0
- package/dist/nodes/vendors/GoogleGemini/actions/video/index.js +76 -80
- package/dist/nodes/vendors/GoogleGemini/actions/video/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.d.ts +2 -0
- package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js +81 -99
- package/dist/nodes/vendors/GoogleGemini/helpers/baseAnalyze.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.d.ts +105 -0
- package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.js +4 -27
- package/dist/nodes/vendors/GoogleGemini/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/helpers/utils.d.ts +17 -0
- package/dist/nodes/vendors/GoogleGemini/helpers/utils.js +179 -247
- package/dist/nodes/vendors/GoogleGemini/helpers/utils.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/GoogleGemini/methods/index.js +35 -36
- package/dist/nodes/vendors/GoogleGemini/methods/index.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.d.ts +6 -0
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js +52 -78
- package/dist/nodes/vendors/GoogleGemini/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/GoogleGemini/transport/index.d.ts +9 -0
- package/dist/nodes/vendors/GoogleGemini/transport/index.js +20 -44
- package/dist/nodes/vendors/GoogleGemini/transport/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/Ollama.node.d.ts +9 -0
- package/dist/nodes/vendors/Ollama/Ollama.node.js +15 -38
- package/dist/nodes/vendors/Ollama/Ollama.node.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/descriptions.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/actions/descriptions.js +25 -49
- package/dist/nodes/vendors/Ollama/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js +378 -393
- package/dist/nodes/vendors/Ollama/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/image/index.d.ts +4 -0
- package/dist/nodes/vendors/Ollama/actions/image/index.js +58 -60
- package/dist/nodes/vendors/Ollama/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/node.type.d.ts +7 -0
- package/dist/nodes/vendors/Ollama/actions/node.type.js +1 -15
- package/dist/nodes/vendors/Ollama/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/actions/router.js +72 -72
- package/dist/nodes/vendors/Ollama/actions/router.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/text/index.d.ts +4 -0
- package/dist/nodes/vendors/Ollama/actions/text/index.js +58 -60
- package/dist/nodes/vendors/Ollama/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/Ollama/actions/text/message.operation.js +401 -419
- package/dist/nodes/vendors/Ollama/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/Ollama/actions/versionDescription.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/actions/versionDescription.js +88 -89
- package/dist/nodes/vendors/Ollama/actions/versionDescription.js.map +1 -1
- package/dist/nodes/vendors/Ollama/helpers/index.d.ts +1 -0
- package/dist/nodes/vendors/Ollama/helpers/index.js +1 -15
- package/dist/nodes/vendors/Ollama/helpers/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/helpers/interfaces.d.ts +50 -0
- package/dist/nodes/vendors/Ollama/helpers/interfaces.js +1 -15
- package/dist/nodes/vendors/Ollama/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/Ollama/methods/index.d.ts +1 -0
- package/dist/nodes/vendors/Ollama/methods/index.js +35 -36
- package/dist/nodes/vendors/Ollama/methods/index.js.map +1 -1
- package/dist/nodes/vendors/Ollama/methods/listSearch.d.ts +2 -0
- package/dist/nodes/vendors/Ollama/methods/listSearch.js +11 -35
- package/dist/nodes/vendors/Ollama/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/Ollama/transport/index.d.ts +9 -0
- package/dist/nodes/vendors/Ollama/transport/index.js +28 -52
- package/dist/nodes/vendors/Ollama/transport/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/OpenAi.node.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js +57 -80
- package/dist/nodes/vendors/OpenAi/OpenAi.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/binary-data.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/helpers/binary-data.js +11 -33
- package/dist/nodes/vendors/OpenAi/helpers/binary-data.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/constants.d.ts +1 -0
- package/dist/nodes/vendors/OpenAi/helpers/constants.js +23 -47
- package/dist/nodes/vendors/OpenAi/helpers/constants.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/description.d.ts +9 -0
- package/dist/nodes/vendors/OpenAi/helpers/description.js +43 -67
- package/dist/nodes/vendors/OpenAi/helpers/description.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.js +32 -52
- package/dist/nodes/vendors/OpenAi/helpers/error-handling.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.d.ts +93 -0
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.js +1 -15
- package/dist/nodes/vendors/OpenAi/helpers/interfaces.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.d.ts +1 -0
- package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.js +17 -30
- package/dist/nodes/vendors/OpenAi/helpers/modelFiltering.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/polling.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/helpers/polling.js +23 -47
- package/dist/nodes/vendors/OpenAi/helpers/polling.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/helpers/utils.d.ts +9 -0
- package/dist/nodes/vendors/OpenAi/helpers/utils.js +55 -83
- package/dist/nodes/vendors/OpenAi/helpers/utils.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/index.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/methods/index.js +36 -39
- package/dist/nodes/vendors/OpenAi/methods/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/listSearch.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js +94 -120
- package/dist/nodes/vendors/OpenAi/methods/listSearch.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.js +12 -36
- package/dist/nodes/vendors/OpenAi/methods/loadOptions.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/transport/index.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/transport/index.js +33 -50
- package/dist/nodes/vendors/OpenAi/transport/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.d.ts +11 -0
- package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.js +103 -104
- package/dist/nodes/vendors/OpenAi/v1/OpenAiV1.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.js +228 -267
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/create.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.js +24 -49
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/deleteAssistant.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.d.ts +8 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.js +94 -100
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.js +59 -83
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/list.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js +236 -261
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/message.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.js +171 -216
- package/dist/nodes/vendors/OpenAi/v1/actions/assistant/update.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.js +157 -186
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.js +88 -92
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.js +75 -111
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/transcribe.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.js +65 -101
- package/dist/nodes/vendors/OpenAi/v1/actions/audio/translate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.d.ts +3 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.js +50 -75
- package/dist/nodes/vendors/OpenAi/v1/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.js +50 -75
- package/dist/nodes/vendors/OpenAi/v1/actions/file/deleteFile.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/index.js +76 -80
- package/dist/nodes/vendors/OpenAi/v1/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.js +49 -74
- package/dist/nodes/vendors/OpenAi/v1/actions/file/list.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.js +76 -110
- package/dist/nodes/vendors/OpenAi/v1/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js +187 -206
- package/dist/nodes/vendors/OpenAi/v1/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js +277 -305
- package/dist/nodes/vendors/OpenAi/v1/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/image/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/image/index.js +67 -70
- package/dist/nodes/vendors/OpenAi/v1/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/node.type.d.ts +10 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/node.type.js +1 -15
- package/dist/nodes/vendors/OpenAi/v1/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/router.js +97 -100
- package/dist/nodes/vendors/OpenAi/v1/actions/router.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.js +70 -93
- package/dist/nodes/vendors/OpenAi/v1/actions/text/classify.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/text/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/text/index.js +67 -71
- package/dist/nodes/vendors/OpenAi/v1/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js +304 -334
- package/dist/nodes/vendors/OpenAi/v1/actions/text/message.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.d.ts +11 -0
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js +109 -110
- package/dist/nodes/vendors/OpenAi/v2/OpenAiV2.node.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.js +157 -186
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.js +88 -92
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.js +75 -111
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/transcribe.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.js +65 -101
- package/dist/nodes/vendors/OpenAi/v2/actions/audio/translate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js +85 -110
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/create.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.js +27 -52
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/get.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.d.ts +7 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.js +85 -90
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.js +27 -52
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/remove.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.js +41 -66
- package/dist/nodes/vendors/OpenAi/v2/actions/conversation/update.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js +237 -266
- package/dist/nodes/vendors/OpenAi/v2/actions/descriptions.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.js +50 -75
- package/dist/nodes/vendors/OpenAi/v2/actions/file/deleteFile.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/index.js +76 -80
- package/dist/nodes/vendors/OpenAi/v2/actions/file/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.js +57 -83
- package/dist/nodes/vendors/OpenAi/v2/actions/file/list.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.js +84 -118
- package/dist/nodes/vendors/OpenAi/v2/actions/file/upload.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js +177 -197
- package/dist/nodes/vendors/OpenAi/v2/actions/image/analyze.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.d.ts +29 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js +395 -444
- package/dist/nodes/vendors/OpenAi/v2/actions/image/edit.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js +277 -305
- package/dist/nodes/vendors/OpenAi/v2/actions/image/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/image/index.d.ts +6 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/image/index.js +76 -80
- package/dist/nodes/vendors/OpenAi/v2/actions/image/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/node.type.d.ts +11 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/node.type.js +1 -15
- package/dist/nodes/vendors/OpenAi/v2/actions/node.type.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/router.d.ts +2 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/router.js +101 -104
- package/dist/nodes/vendors/OpenAi/v2/actions/router.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.js +79 -102
- package/dist/nodes/vendors/OpenAi/v2/actions/text/classify.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.d.ts +13 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.js +193 -231
- package/dist/nodes/vendors/OpenAi/v2/actions/text/helpers/responses.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/index.d.ts +5 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/index.js +67 -71
- package/dist/nodes/vendors/OpenAi/v2/actions/text/index.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js +628 -667
- package/dist/nodes/vendors/OpenAi/v2/actions/text/response.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.d.ts +28 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js +136 -187
- package/dist/nodes/vendors/OpenAi/v2/actions/video/generate.operation.js.map +1 -1
- package/dist/nodes/vendors/OpenAi/v2/actions/video/index.d.ts +4 -0
- package/dist/nodes/vendors/OpenAi/v2/actions/video/index.js +58 -60
- package/dist/nodes/vendors/OpenAi/v2/actions/video/index.js.map +1 -1
- package/dist/typecheck.tsbuildinfo +1 -0
- package/dist/types/nodes.json +20 -20
- package/dist/types/types.d.ts +6 -0
- package/dist/types/types.js +1 -15
- package/dist/types/types.js.map +1 -1
- package/dist/types/zod.types.d.ts +2 -0
- package/dist/types/zod.types.js +1 -15
- package/dist/types/zod.types.js.map +1 -1
- package/dist/utils/N8nBinaryLoader.d.ts +18 -0
- package/dist/utils/N8nBinaryLoader.js +142 -186
- package/dist/utils/N8nBinaryLoader.js.map +1 -1
- package/dist/utils/N8nJsonLoader.d.ts +11 -0
- package/dist/utils/N8nJsonLoader.js +59 -82
- package/dist/utils/N8nJsonLoader.js.map +1 -1
- package/dist/utils/N8nTool.d.ts +11 -0
- package/dist/utils/N8nTool.js +75 -95
- package/dist/utils/N8nTool.js.map +1 -1
- package/dist/utils/agent-execution/buildResponseMetadata.d.ts +3 -0
- package/dist/utils/agent-execution/buildResponseMetadata.js +13 -0
- package/dist/utils/agent-execution/buildResponseMetadata.js.map +1 -0
- package/dist/utils/agent-execution/buildSteps.d.ts +3 -0
- package/dist/utils/agent-execution/buildSteps.js +129 -142
- package/dist/utils/agent-execution/buildSteps.js.map +1 -1
- package/dist/utils/agent-execution/createEngineRequests.d.ts +8 -0
- package/dist/utils/agent-execution/createEngineRequests.js +135 -74
- package/dist/utils/agent-execution/createEngineRequests.js.map +1 -1
- package/dist/utils/agent-execution/index.d.ts +7 -0
- package/dist/utils/agent-execution/index.js +16 -40
- package/dist/utils/agent-execution/index.js.map +1 -1
- package/dist/utils/agent-execution/memoryManagement.d.ts +10 -0
- package/dist/utils/agent-execution/memoryManagement.js +105 -126
- package/dist/utils/agent-execution/memoryManagement.js.map +1 -1
- package/dist/utils/agent-execution/processEventStream.d.ts +5 -0
- package/dist/utils/agent-execution/processEventStream.js +55 -76
- package/dist/utils/agent-execution/processEventStream.js.map +1 -1
- package/dist/utils/agent-execution/processHitlResponses.d.ts +8 -0
- package/dist/utils/agent-execution/processHitlResponses.js +124 -0
- package/dist/utils/agent-execution/processHitlResponses.js.map +1 -0
- package/dist/utils/agent-execution/types.d.ts +82 -0
- package/dist/utils/agent-execution/types.js +22 -33
- package/dist/utils/agent-execution/types.js.map +1 -1
- package/dist/utils/descriptions.d.ts +19 -0
- package/dist/utils/descriptions.js +143 -186
- package/dist/utils/descriptions.js.map +1 -1
- package/dist/utils/embeddings/embeddingInputValidation.d.ts +3 -0
- package/dist/utils/embeddings/embeddingInputValidation.js +22 -49
- package/dist/utils/embeddings/embeddingInputValidation.js.map +1 -1
- package/dist/utils/fromAIToolFactory.d.ts +14 -0
- package/dist/utils/fromAIToolFactory.js +27 -53
- package/dist/utils/fromAIToolFactory.js.map +1 -1
- package/dist/utils/helpers.d.ts +24 -0
- package/dist/utils/helpers.js +235 -226
- package/dist/utils/helpers.js.map +1 -1
- package/dist/utils/httpProxyAgent.d.ts +10 -0
- package/dist/utils/httpProxyAgent.js +34 -68
- package/dist/utils/httpProxyAgent.js.map +1 -1
- package/dist/utils/logWrapper.d.ts +29 -0
- package/dist/utils/logWrapper.js +320 -365
- package/dist/utils/logWrapper.js.map +1 -1
- package/dist/utils/output_parsers/N8nItemListOutputParser.d.ts +13 -0
- package/dist/utils/output_parsers/N8nItemListOutputParser.js +35 -57
- package/dist/utils/output_parsers/N8nItemListOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nOutputFixingParser.d.ts +18 -0
- package/dist/utils/output_parsers/N8nOutputFixingParser.js +62 -94
- package/dist/utils/output_parsers/N8nOutputFixingParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nOutputParser.d.ts +7 -0
- package/dist/utils/output_parsers/N8nOutputParser.js +15 -44
- package/dist/utils/output_parsers/N8nOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/N8nStructuredOutputParser.d.ts +12 -0
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js +115 -134
- package/dist/utils/output_parsers/N8nStructuredOutputParser.js.map +1 -1
- package/dist/utils/output_parsers/prompt.d.ts +3 -0
- package/dist/utils/output_parsers/prompt.js +5 -31
- package/dist/utils/output_parsers/prompt.js.map +1 -1
- package/dist/utils/schemaParsing.d.ts +6 -0
- package/dist/utils/schemaParsing.js +34 -63
- package/dist/utils/schemaParsing.js.map +1 -1
- package/dist/utils/sharedFields.d.ts +8 -0
- package/dist/utils/sharedFields.js +130 -157
- package/dist/utils/sharedFields.js.map +1 -1
- package/dist/utils/tokenizer/tiktoken.d.ts +4 -0
- package/dist/utils/tokenizer/tiktoken.js +31 -56
- package/dist/utils/tokenizer/tiktoken.js.map +1 -1
- package/dist/utils/tokenizer/token-estimator.d.ts +4 -0
- package/dist/utils/tokenizer/token-estimator.js +84 -105
- package/dist/utils/tokenizer/token-estimator.js.map +1 -1
- package/dist/utils/tracing.d.ts +7 -0
- package/dist/utils/tracing.js +15 -37
- package/dist/utils/tracing.js.map +1 -1
- package/package.json +14 -15
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildResponseMetadata.js +0 -37
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V3/helpers/buildResponseMetadata.js.map +0 -1
|
@@ -1,265 +1,249 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
__export(common_exports, {
|
|
21
|
-
extractBinaryMessages: () => extractBinaryMessages,
|
|
22
|
-
fixEmptyContentMessage: () => fixEmptyContentMessage,
|
|
23
|
-
getAgentStepsParser: () => getAgentStepsParser,
|
|
24
|
-
getChatModel: () => getChatModel,
|
|
25
|
-
getOptionalMemory: () => getOptionalMemory,
|
|
26
|
-
getOutputParserSchema: () => getOutputParserSchema,
|
|
27
|
-
getTools: () => getTools,
|
|
28
|
-
handleAgentFinishOutput: () => handleAgentFinishOutput,
|
|
29
|
-
handleParsedStepOutput: () => handleParsedStepOutput,
|
|
30
|
-
prepareMessages: () => prepareMessages,
|
|
31
|
-
preparePrompt: () => preparePrompt
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(common_exports);
|
|
34
|
-
var import_messages = require("@langchain/core/messages");
|
|
35
|
-
var import_prompts = require("@langchain/core/prompts");
|
|
36
|
-
var import_tools = require("@langchain/classic/tools");
|
|
37
|
-
var import_n8n_workflow = require("n8n-workflow");
|
|
38
|
-
var import_zod = require("zod");
|
|
39
|
-
var import_helpers = require("../../../../../utils/helpers");
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAgentStepsParser = void 0;
|
|
4
|
+
exports.getOutputParserSchema = getOutputParserSchema;
|
|
5
|
+
exports.extractBinaryMessages = extractBinaryMessages;
|
|
6
|
+
exports.fixEmptyContentMessage = fixEmptyContentMessage;
|
|
7
|
+
exports.handleAgentFinishOutput = handleAgentFinishOutput;
|
|
8
|
+
exports.handleParsedStepOutput = handleParsedStepOutput;
|
|
9
|
+
exports.getChatModel = getChatModel;
|
|
10
|
+
exports.getOptionalMemory = getOptionalMemory;
|
|
11
|
+
exports.getTools = getTools;
|
|
12
|
+
exports.prepareMessages = prepareMessages;
|
|
13
|
+
exports.preparePrompt = preparePrompt;
|
|
14
|
+
const messages_1 = require("@langchain/core/messages");
|
|
15
|
+
const prompts_1 = require("@langchain/core/prompts");
|
|
16
|
+
const tools_1 = require("@langchain/classic/tools");
|
|
17
|
+
const n8n_workflow_1 = require("n8n-workflow");
|
|
18
|
+
const zod_1 = require("zod");
|
|
19
|
+
const helpers_1 = require("../../../../../utils/helpers");
|
|
40
20
|
function getOutputParserSchema(outputParser) {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
outputParser.getSchema() ?? import_zod.z.object({ text: import_zod.z.string() })
|
|
44
|
-
);
|
|
45
|
-
return schema;
|
|
21
|
+
const schema = outputParser.getSchema() ?? zod_1.z.object({ text: zod_1.z.string() });
|
|
22
|
+
return schema;
|
|
46
23
|
}
|
|
47
24
|
function isTextFile(mimeType) {
|
|
48
|
-
|
|
25
|
+
return (mimeType.startsWith('text/') ||
|
|
26
|
+
mimeType === 'application/json' ||
|
|
27
|
+
mimeType === 'application/xml' ||
|
|
28
|
+
mimeType === 'application/csv' ||
|
|
29
|
+
mimeType === 'application/x-yaml' ||
|
|
30
|
+
mimeType === 'application/yaml');
|
|
49
31
|
}
|
|
50
32
|
function isImageFile(mimeType) {
|
|
51
|
-
|
|
33
|
+
return mimeType.startsWith('image/');
|
|
52
34
|
}
|
|
53
35
|
async function extractBinaryMessages(ctx, itemIndex) {
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
36
|
+
const binaryData = ctx.getInputData()?.[itemIndex]?.binary ?? {};
|
|
37
|
+
const binaryMessages = await Promise.all(Object.values(binaryData)
|
|
38
|
+
.filter((data) => isImageFile(data.mimeType) || isTextFile(data.mimeType))
|
|
39
|
+
.map(async (data) => {
|
|
40
|
+
if (isImageFile(data.mimeType)) {
|
|
41
|
+
let binaryUrlString;
|
|
42
|
+
if (data.id) {
|
|
43
|
+
const binaryBuffer = await ctx.helpers.binaryToBuffer(await ctx.helpers.getBinaryStream(data.id));
|
|
44
|
+
binaryUrlString = `data:${data.mimeType};base64,${Buffer.from(binaryBuffer).toString(n8n_workflow_1.BINARY_ENCODING)}`;
|
|
45
|
+
}
|
|
46
|
+
else {
|
|
47
|
+
binaryUrlString = data.data.includes('base64')
|
|
48
|
+
? data.data
|
|
49
|
+
: `data:${data.mimeType};base64,${data.data}`;
|
|
50
|
+
}
|
|
51
|
+
return {
|
|
52
|
+
type: 'image_url',
|
|
53
|
+
image_url: {
|
|
54
|
+
url: binaryUrlString,
|
|
55
|
+
},
|
|
56
|
+
};
|
|
68
57
|
}
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}
|
|
58
|
+
else {
|
|
59
|
+
let textContent;
|
|
60
|
+
if (data.id) {
|
|
61
|
+
const binaryBuffer = await ctx.helpers.binaryToBuffer(await ctx.helpers.getBinaryStream(data.id));
|
|
62
|
+
textContent = binaryBuffer.toString('utf-8');
|
|
63
|
+
}
|
|
64
|
+
else {
|
|
65
|
+
if (data.data.includes('base64,')) {
|
|
66
|
+
const base64Data = data.data.split('base64,')[1];
|
|
67
|
+
textContent = Buffer.from(base64Data, 'base64').toString('utf-8');
|
|
68
|
+
}
|
|
69
|
+
else {
|
|
70
|
+
textContent = Buffer.from(data.data, 'base64').toString('utf-8');
|
|
71
|
+
}
|
|
72
|
+
}
|
|
73
|
+
return {
|
|
74
|
+
type: 'text',
|
|
75
|
+
text: `File: ${data.fileName ?? 'attachment'}\nContent:\n${textContent}`,
|
|
76
|
+
};
|
|
89
77
|
}
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
${textContent}`
|
|
95
|
-
};
|
|
96
|
-
}
|
|
97
|
-
})
|
|
98
|
-
);
|
|
99
|
-
return new import_messages.HumanMessage({
|
|
100
|
-
content: [...binaryMessages]
|
|
101
|
-
});
|
|
78
|
+
}));
|
|
79
|
+
return new messages_1.HumanMessage({
|
|
80
|
+
content: [...binaryMessages],
|
|
81
|
+
});
|
|
102
82
|
}
|
|
103
83
|
function fixEmptyContentMessage(steps) {
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
84
|
+
if (!Array.isArray(steps))
|
|
85
|
+
return steps;
|
|
86
|
+
steps.forEach((step) => {
|
|
87
|
+
if ('messageLog' in step && step.messageLog !== undefined) {
|
|
88
|
+
if (Array.isArray(step.messageLog)) {
|
|
89
|
+
step.messageLog.forEach((message) => {
|
|
90
|
+
if ('content' in message && Array.isArray(message.content)) {
|
|
91
|
+
message.content.forEach((content) => {
|
|
92
|
+
if (content.input === '') {
|
|
93
|
+
content.input = {};
|
|
94
|
+
}
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
});
|
|
101
|
+
return steps;
|
|
121
102
|
}
|
|
122
103
|
function handleAgentFinishOutput(steps) {
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
104
|
+
const agentFinishSteps = steps;
|
|
105
|
+
if (agentFinishSteps.returnValues) {
|
|
106
|
+
const isMultiOutput = Array.isArray(agentFinishSteps.returnValues?.output);
|
|
107
|
+
if (isMultiOutput) {
|
|
108
|
+
const multiOutputSteps = agentFinishSteps.returnValues.output;
|
|
109
|
+
const textOutputs = multiOutputSteps
|
|
110
|
+
.filter((output) => output.type === 'text' && output.text)
|
|
111
|
+
.map((output) => output.text)
|
|
112
|
+
.join('\n')
|
|
113
|
+
.trim();
|
|
114
|
+
if (textOutputs) {
|
|
115
|
+
agentFinishSteps.returnValues.output = textOutputs;
|
|
116
|
+
}
|
|
117
|
+
else {
|
|
118
|
+
const thinkingOutputs = multiOutputSteps
|
|
119
|
+
.filter((output) => output.type === 'thinking' && output.thinking)
|
|
120
|
+
.map((output) => output.thinking)
|
|
121
|
+
.join('\n')
|
|
122
|
+
.trim();
|
|
123
|
+
if (thinkingOutputs) {
|
|
124
|
+
agentFinishSteps.returnValues.output = thinkingOutputs;
|
|
125
|
+
}
|
|
126
|
+
else {
|
|
127
|
+
agentFinishSteps.returnValues.output = '';
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
return agentFinishSteps;
|
|
137
131
|
}
|
|
138
|
-
}
|
|
139
|
-
return agentFinishSteps;
|
|
140
132
|
}
|
|
141
|
-
|
|
142
|
-
return agentFinishSteps;
|
|
133
|
+
return agentFinishSteps;
|
|
143
134
|
}
|
|
144
135
|
function handleParsedStepOutput(output, memory) {
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
136
|
+
return {
|
|
137
|
+
returnValues: memory ? { output: JSON.stringify(output) } : output,
|
|
138
|
+
log: 'Final response formatted',
|
|
139
|
+
};
|
|
149
140
|
}
|
|
150
141
|
const getAgentStepsParser = (outputParser, memory) => async (steps) => {
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
142
|
+
if (Array.isArray(steps)) {
|
|
143
|
+
const responseParserTool = steps.find((step) => step.tool === 'format_final_json_response');
|
|
144
|
+
if (responseParserTool && outputParser) {
|
|
145
|
+
const toolInput = responseParserTool.toolInput;
|
|
146
|
+
const parserInput = toolInput instanceof Object ? JSON.stringify(toolInput) : toolInput;
|
|
147
|
+
const returnValues = (await outputParser.parse(parserInput));
|
|
148
|
+
return handleParsedStepOutput(returnValues, memory);
|
|
149
|
+
}
|
|
158
150
|
}
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
151
|
+
if (outputParser && typeof steps === 'object' && steps.returnValues) {
|
|
152
|
+
const finalResponse = steps.returnValues;
|
|
153
|
+
let parserInput;
|
|
154
|
+
if (finalResponse instanceof Object) {
|
|
155
|
+
if ('output' in finalResponse) {
|
|
156
|
+
try {
|
|
157
|
+
const parsedOutput = (0, n8n_workflow_1.jsonParse)(finalResponse.output);
|
|
158
|
+
if (parsedOutput !== null &&
|
|
159
|
+
typeof parsedOutput === 'object' &&
|
|
160
|
+
'output' in parsedOutput &&
|
|
161
|
+
Object.keys(parsedOutput).length === 1) {
|
|
162
|
+
parserInput = JSON.stringify(parsedOutput);
|
|
163
|
+
}
|
|
164
|
+
else {
|
|
165
|
+
parserInput = JSON.stringify({ output: parsedOutput });
|
|
166
|
+
}
|
|
167
|
+
}
|
|
168
|
+
catch (error) {
|
|
169
|
+
parserInput = finalResponse.output;
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
else {
|
|
173
|
+
parserInput = JSON.stringify(finalResponse);
|
|
174
|
+
}
|
|
174
175
|
}
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
176
|
+
else {
|
|
177
|
+
parserInput = finalResponse;
|
|
178
|
+
}
|
|
179
|
+
const returnValues = (await outputParser.parse(parserInput));
|
|
180
|
+
return handleParsedStepOutput(returnValues, memory);
|
|
180
181
|
}
|
|
181
|
-
|
|
182
|
-
return handleParsedStepOutput(returnValues, memory);
|
|
183
|
-
}
|
|
184
|
-
return handleAgentFinishOutput(steps);
|
|
182
|
+
return handleAgentFinishOutput(steps);
|
|
185
183
|
};
|
|
184
|
+
exports.getAgentStepsParser = getAgentStepsParser;
|
|
186
185
|
async function getChatModel(ctx, index = 0) {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
186
|
+
const connectedModels = await ctx.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiLanguageModel, 0);
|
|
187
|
+
let model;
|
|
188
|
+
if (Array.isArray(connectedModels) && index !== undefined) {
|
|
189
|
+
if (connectedModels.length <= index) {
|
|
190
|
+
return undefined;
|
|
191
|
+
}
|
|
192
|
+
const reversedModels = [...connectedModels].reverse();
|
|
193
|
+
model = reversedModels[index];
|
|
192
194
|
}
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
model
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
ctx.getNode(),
|
|
201
|
-
"Tools Agent requires Chat Model which supports Tools calling"
|
|
202
|
-
);
|
|
203
|
-
}
|
|
204
|
-
return model;
|
|
195
|
+
else {
|
|
196
|
+
model = connectedModels;
|
|
197
|
+
}
|
|
198
|
+
if (!(0, helpers_1.isChatInstance)(model) || !model.bindTools) {
|
|
199
|
+
throw new n8n_workflow_1.NodeOperationError(ctx.getNode(), 'Tools Agent requires Chat Model which supports Tools calling');
|
|
200
|
+
}
|
|
201
|
+
return model;
|
|
205
202
|
}
|
|
206
203
|
async function getOptionalMemory(ctx) {
|
|
207
|
-
|
|
204
|
+
return (await ctx.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiMemory, 0));
|
|
208
205
|
}
|
|
209
206
|
async function getTools(ctx, outputParser) {
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
return tools;
|
|
207
|
+
const tools = (await (0, helpers_1.getConnectedTools)(ctx, true, false));
|
|
208
|
+
if (outputParser) {
|
|
209
|
+
const schema = getOutputParserSchema(outputParser);
|
|
210
|
+
const structuredOutputParserTool = new tools_1.DynamicStructuredTool({
|
|
211
|
+
schema,
|
|
212
|
+
name: 'format_final_json_response',
|
|
213
|
+
description: 'Use this tool to format your final response to the user in a structured JSON format. This tool validates your output against a schema to ensure it meets the required format. ONLY use this tool when you have completed all necessary reasoning and are ready to provide your final answer. Do not use this tool for intermediate steps or for asking questions. The output from this tool will be directly returned to the user.',
|
|
214
|
+
func: async () => '',
|
|
215
|
+
});
|
|
216
|
+
tools.push(structuredOutputParserTool);
|
|
217
|
+
}
|
|
218
|
+
return tools;
|
|
223
219
|
}
|
|
224
220
|
async function prepareMessages(ctx, itemIndex, options) {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
221
|
+
const useSystemMessage = options.systemMessage ?? ctx.getNode().typeVersion < 1.9;
|
|
222
|
+
const messages = [];
|
|
223
|
+
if (useSystemMessage) {
|
|
224
|
+
messages.push([
|
|
225
|
+
'system',
|
|
226
|
+
`{system_message}${options.outputParser ? '\n\n{formatting_instructions}' : ''}`,
|
|
227
|
+
]);
|
|
228
|
+
}
|
|
229
|
+
else if (options.outputParser) {
|
|
230
|
+
messages.push(['system', '{formatting_instructions}']);
|
|
231
|
+
}
|
|
232
|
+
messages.push(['placeholder', '{chat_history}'], ['human', '{input}']);
|
|
233
|
+
const hasBinaryData = ctx.getInputData()?.[itemIndex]?.binary !== undefined;
|
|
234
|
+
if (hasBinaryData && options.passthroughBinaryImages) {
|
|
235
|
+
const binaryMessage = await extractBinaryMessages(ctx, itemIndex);
|
|
236
|
+
if (binaryMessage.content.length !== 0) {
|
|
237
|
+
messages.push(binaryMessage);
|
|
238
|
+
}
|
|
239
|
+
else {
|
|
240
|
+
ctx.logger.debug('Not attaching binary message, since its content was empty');
|
|
241
|
+
}
|
|
243
242
|
}
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
return messages;
|
|
243
|
+
messages.push(['placeholder', '{agent_scratchpad}']);
|
|
244
|
+
return messages;
|
|
247
245
|
}
|
|
248
246
|
function preparePrompt(messages) {
|
|
249
|
-
|
|
247
|
+
return prompts_1.ChatPromptTemplate.fromMessages(messages);
|
|
250
248
|
}
|
|
251
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
252
|
-
0 && (module.exports = {
|
|
253
|
-
extractBinaryMessages,
|
|
254
|
-
fixEmptyContentMessage,
|
|
255
|
-
getAgentStepsParser,
|
|
256
|
-
getChatModel,
|
|
257
|
-
getOptionalMemory,
|
|
258
|
-
getOutputParserSchema,
|
|
259
|
-
getTools,
|
|
260
|
-
handleAgentFinishOutput,
|
|
261
|
-
handleParsedStepOutput,
|
|
262
|
-
prepareMessages,
|
|
263
|
-
preparePrompt
|
|
264
|
-
});
|
|
265
249
|
//# sourceMappingURL=common.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../../nodes/agents/Agent/agents/ToolsAgent/common.ts"],"sourcesContent":["import type { BaseChatModel } from '@langchain/core/language_models/chat_models';\nimport { HumanMessage } from '@langchain/core/messages';\nimport type { BaseMessage } from '@langchain/core/messages';\nimport { ChatPromptTemplate, type BaseMessagePromptTemplateLike } from '@langchain/core/prompts';\nimport type { AgentAction, AgentFinish } from '@langchain/classic/agents';\nimport type { ToolsAgentAction } from '@langchain/classic/dist/agents/tool_calling/output_parser';\nimport type { BaseChatMemory } from '@langchain/classic/memory';\nimport { DynamicStructuredTool, type Tool } from '@langchain/classic/tools';\nimport { BINARY_ENCODING, jsonParse, NodeConnectionTypes, NodeOperationError } from 'n8n-workflow';\nimport type { IExecuteFunctions, ISupplyDataFunctions } from 'n8n-workflow';\nimport type { ZodObject } from 'zod';\nimport { z } from 'zod';\n\nimport { isChatInstance, getConnectedTools } from '@utils/helpers';\nimport { type N8nOutputParser } from '@utils/output_parsers/N8nOutputParser';\n\n/* -----------------------------------------------------------\n Output Parser Helper\n----------------------------------------------------------- */\n/**\n * Retrieve the output parser schema.\n * If the parser does not return a valid schema, default to a schema with a single text field.\n */\nexport function getOutputParserSchema(\n\toutputParser: N8nOutputParser,\n\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n): ZodObject<any, any, any, any> {\n\tconst schema =\n\t\t// eslint-disable-next-line @typescript-eslint/no-explicit-any\n\t\t(outputParser.getSchema() as ZodObject<any, any, any, any>) ?? z.object({ text: z.string() });\n\treturn schema;\n}\n\n/* -----------------------------------------------------------\n Binary Data Helpers\n----------------------------------------------------------- */\nfunction isTextFile(mimeType: string): boolean {\n\treturn (\n\t\tmimeType.startsWith('text/') ||\n\t\tmimeType === 'application/json' ||\n\t\tmimeType === 'application/xml' ||\n\t\tmimeType === 'application/csv' ||\n\t\tmimeType === 'application/x-yaml' ||\n\t\tmimeType === 'application/yaml'\n\t);\n}\n\nfunction isImageFile(mimeType: string): boolean {\n\treturn mimeType.startsWith('image/');\n}\n\n/**\n * Extracts binary messages (images and text files) from the input data.\n * When operating in filesystem mode, the binary stream is first converted to a buffer.\n *\n * Images are converted to base64 data URLs.\n * Text files are read as UTF-8 text and included in the message content.\n *\n * @param ctx - The execution context\n * @param itemIndex - The current item index\n * @returns A HumanMessage containing the binary messages (images and text files).\n */\nexport async function extractBinaryMessages(\n\tctx: IExecuteFunctions | ISupplyDataFunctions,\n\titemIndex: number,\n): Promise<HumanMessage> {\n\tconst binaryData = ctx.getInputData()?.[itemIndex]?.binary ?? {};\n\tconst binaryMessages = await Promise.all(\n\t\tObject.values(binaryData)\n\t\t\t// select only the files we can process\n\t\t\t.filter((data) => isImageFile(data.mimeType) || isTextFile(data.mimeType))\n\t\t\t.map(async (data) => {\n\t\t\t\t// Handle images\n\t\t\t\tif (isImageFile(data.mimeType)) {\n\t\t\t\t\tlet binaryUrlString: string;\n\n\t\t\t\t\t// In filesystem mode we need to get binary stream by id before converting it to buffer\n\t\t\t\t\tif (data.id) {\n\t\t\t\t\t\tconst binaryBuffer = await ctx.helpers.binaryToBuffer(\n\t\t\t\t\t\t\tawait ctx.helpers.getBinaryStream(data.id),\n\t\t\t\t\t\t);\n\t\t\t\t\t\tbinaryUrlString = `data:${data.mimeType};base64,${Buffer.from(binaryBuffer).toString(\n\t\t\t\t\t\t\tBINARY_ENCODING,\n\t\t\t\t\t\t)}`;\n\t\t\t\t\t} else {\n\t\t\t\t\t\tbinaryUrlString = data.data.includes('base64')\n\t\t\t\t\t\t\t? data.data\n\t\t\t\t\t\t\t: `data:${data.mimeType};base64,${data.data}`;\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttype: 'image_url',\n\t\t\t\t\t\timage_url: {\n\t\t\t\t\t\t\turl: binaryUrlString,\n\t\t\t\t\t\t},\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t\t// Handle text files\n\t\t\t\telse {\n\t\t\t\t\tlet textContent: string;\n\t\t\t\t\tif (data.id) {\n\t\t\t\t\t\tconst binaryBuffer = await ctx.helpers.binaryToBuffer(\n\t\t\t\t\t\t\tawait ctx.helpers.getBinaryStream(data.id),\n\t\t\t\t\t\t);\n\t\t\t\t\t\ttextContent = binaryBuffer.toString('utf-8');\n\t\t\t\t\t} else {\n\t\t\t\t\t\t// Data might be base64 encoded with or without data URL prefix\n\t\t\t\t\t\tif (data.data.includes('base64,')) {\n\t\t\t\t\t\t\tconst base64Data = data.data.split('base64,')[1];\n\t\t\t\t\t\t\ttextContent = Buffer.from(base64Data, 'base64').toString('utf-8');\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Default: binary data is base64-encoded without prefix\n\t\t\t\t\t\t\ttextContent = Buffer.from(data.data, 'base64').toString('utf-8');\n\t\t\t\t\t\t}\n\t\t\t\t\t}\n\n\t\t\t\t\treturn {\n\t\t\t\t\t\ttype: 'text',\n\t\t\t\t\t\ttext: `File: ${data.fileName ?? 'attachment'}\\nContent:\\n${textContent}`,\n\t\t\t\t\t};\n\t\t\t\t}\n\t\t\t}),\n\t);\n\treturn new HumanMessage({\n\t\tcontent: [...binaryMessages],\n\t});\n}\n\n/* -----------------------------------------------------------\n Agent Output Format Helpers\n----------------------------------------------------------- */\n/**\n * Fixes empty content messages in agent steps.\n *\n * This function is necessary when using RunnableSequence.from in LangChain.\n * If a tool doesn't have any arguments, LangChain returns input: '' (empty string).\n * This can throw an error for some providers (like Anthropic) which expect the input to always be an object.\n * This function replaces empty string inputs with empty objects to prevent such errors.\n *\n * @param steps - The agent steps to fix\n * @returns The fixed agent steps\n */\nexport function fixEmptyContentMessage(\n\tsteps: AgentFinish | ToolsAgentAction[],\n): AgentFinish | ToolsAgentAction[] {\n\tif (!Array.isArray(steps)) return steps;\n\n\tsteps.forEach((step) => {\n\t\tif ('messageLog' in step && step.messageLog !== undefined) {\n\t\t\tif (Array.isArray(step.messageLog)) {\n\t\t\t\tstep.messageLog.forEach((message: BaseMessage) => {\n\t\t\t\t\tif ('content' in message && Array.isArray(message.content)) {\n\t\t\t\t\t\t(message.content as Array<{ input?: string | object }>).forEach((content) => {\n\t\t\t\t\t\t\tif (content.input === '') {\n\t\t\t\t\t\t\t\tcontent.input = {};\n\t\t\t\t\t\t\t}\n\t\t\t\t\t\t});\n\t\t\t\t\t}\n\t\t\t\t});\n\t\t\t}\n\t\t}\n\t});\n\n\treturn steps;\n}\n\n/**\n * Ensures consistent handling of outputs regardless of the model used,\n * providing a unified output format for further processing.\n *\n * This method is necessary to handle different output formats from various language models.\n * Specifically, it checks if the agent step is the final step (contains returnValues) and determines\n * if the output is a simple string (e.g., from OpenAI models) or an array of outputs (e.g., from Anthropic models).\n *\n * Examples:\n * 1. Anthropic model output:\n * ```json\n * {\n * \"output\": [\n * {\n * \"index\": 0,\n * \"type\": \"text\",\n * \"text\": \"The result of the calculation is approximately 1001.8166...\"\n * }\n * ]\n * }\n *```\n * 2. OpenAI model output:\n * ```json\n * {\n * \"output\": \"The result of the calculation is approximately 1001.82...\"\n * }\n * ```\n *\n * @param steps - The agent finish or agent action steps.\n * @returns The modified agent finish steps or the original steps.\n */\nexport function handleAgentFinishOutput(\n\tsteps: AgentFinish | AgentAction[],\n): AgentFinish | AgentAction[] {\n\ttype AgentMultiOutputFinish = AgentFinish & {\n\t\treturnValues: { output: Array<{ text: string; type: string; index: number }> };\n\t};\n\tconst agentFinishSteps = steps as AgentMultiOutputFinish | AgentFinish;\n\n\tif (agentFinishSteps.returnValues) {\n\t\tconst isMultiOutput = Array.isArray(agentFinishSteps.returnValues?.output);\n\t\tif (isMultiOutput) {\n\t\t\tconst multiOutputSteps = agentFinishSteps.returnValues.output as Array<{\n\t\t\t\tindex: number;\n\t\t\t\ttype: string;\n\t\t\t\ttext?: string;\n\t\t\t\tthinking?: string;\n\t\t\t}>;\n\n\t\t\t// Filter out thinking blocks and join text blocks\n\t\t\tconst textOutputs = multiOutputSteps\n\t\t\t\t.filter((output) => output.type === 'text' && output.text)\n\t\t\t\t.map((output) => output.text)\n\t\t\t\t.join('\\n')\n\t\t\t\t.trim();\n\n\t\t\tif (textOutputs) {\n\t\t\t\tagentFinishSteps.returnValues.output = textOutputs;\n\t\t\t} else {\n\t\t\t\tconst thinkingOutputs = multiOutputSteps\n\t\t\t\t\t.filter((output) => output.type === 'thinking' && output.thinking)\n\t\t\t\t\t.map((output) => output.thinking)\n\t\t\t\t\t.join('\\n')\n\t\t\t\t\t.trim();\n\n\t\t\t\tif (thinkingOutputs) {\n\t\t\t\t\tagentFinishSteps.returnValues.output = thinkingOutputs;\n\t\t\t\t} else {\n\t\t\t\t\t// no output was found\n\t\t\t\t\tagentFinishSteps.returnValues.output = '';\n\t\t\t\t}\n\t\t\t}\n\t\t\treturn agentFinishSteps;\n\t\t}\n\t}\n\n\treturn agentFinishSteps;\n}\n\n/**\n * Wraps the parsed output so that it can be stored in memory.\n * If memory is connected, the output is stringified.\n *\n * @param output - The parsed output object\n * @param memory - The connected memory (if any)\n * @returns The formatted output object\n */\nexport function handleParsedStepOutput(\n\toutput: Record<string, unknown>,\n\tmemory?: BaseChatMemory,\n): { returnValues: Record<string, unknown>; log: string } {\n\treturn {\n\t\treturnValues: memory ? { output: JSON.stringify(output) } : output,\n\t\tlog: 'Final response formatted',\n\t};\n}\n\n/**\n * Parses agent steps using the provided output parser.\n * If the agent used the 'format_final_json_response' tool, the output is parsed accordingly.\n *\n * @param steps - The agent finish or action steps\n * @param outputParser - The output parser (if defined)\n * @param memory - The connected memory (if any)\n * @returns The parsed steps with the final output\n */\nexport const getAgentStepsParser =\n\t(outputParser?: N8nOutputParser, memory?: BaseChatMemory) =>\n\tasync (steps: AgentFinish | AgentAction[]): Promise<AgentFinish | AgentAction[]> => {\n\t\t// Check if the steps contain the 'format_final_json_response' tool invocation.\n\t\tif (Array.isArray(steps)) {\n\t\t\tconst responseParserTool = steps.find((step) => step.tool === 'format_final_json_response');\n\t\t\tif (responseParserTool && outputParser) {\n\t\t\t\tconst toolInput = responseParserTool.toolInput;\n\t\t\t\t// Ensure the tool input is a string\n\t\t\t\tconst parserInput = toolInput instanceof Object ? JSON.stringify(toolInput) : toolInput;\n\t\t\t\tconst returnValues = (await outputParser.parse(parserInput)) as Record<string, unknown>;\n\t\t\t\treturn handleParsedStepOutput(returnValues, memory);\n\t\t\t}\n\t\t}\n\n\t\t// Otherwise, if the steps contain a returnValues field, try to parse them manually.\n\t\tif (outputParser && typeof steps === 'object' && (steps as AgentFinish).returnValues) {\n\t\t\tconst finalResponse = (steps as AgentFinish).returnValues;\n\t\t\tlet parserInput: string;\n\n\t\t\tif (finalResponse instanceof Object) {\n\t\t\t\tif ('output' in finalResponse) {\n\t\t\t\t\ttry {\n\t\t\t\t\t\tconst parsedOutput = jsonParse<Record<string, unknown>>(finalResponse.output);\n\t\t\t\t\t\t// Check if the parsed output already has the expected structure\n\t\t\t\t\t\t// If it already has { output: ... }, use it as-is to avoid double wrapping\n\t\t\t\t\t\t// Otherwise, wrap it in { output: ... } as expected by the parser\n\t\t\t\t\t\tif (\n\t\t\t\t\t\t\tparsedOutput !== null &&\n\t\t\t\t\t\t\ttypeof parsedOutput === 'object' &&\n\t\t\t\t\t\t\t'output' in parsedOutput &&\n\t\t\t\t\t\t\tObject.keys(parsedOutput).length === 1\n\t\t\t\t\t\t) {\n\t\t\t\t\t\t\t// Already has the expected structure, use as-is\n\t\t\t\t\t\t\tparserInput = JSON.stringify(parsedOutput);\n\t\t\t\t\t\t} else {\n\t\t\t\t\t\t\t// Needs wrapping for the parser\n\t\t\t\t\t\t\tparserInput = JSON.stringify({ output: parsedOutput });\n\t\t\t\t\t\t}\n\t\t\t\t\t} catch (error) {\n\t\t\t\t\t\t// Fallback to the raw output if parsing fails.\n\t\t\t\t\t\tparserInput = finalResponse.output;\n\t\t\t\t\t}\n\t\t\t\t} else {\n\t\t\t\t\t// If the output is not an object, we will stringify it as it is\n\t\t\t\t\tparserInput = JSON.stringify(finalResponse);\n\t\t\t\t}\n\t\t\t} else {\n\t\t\t\tparserInput = finalResponse;\n\t\t\t}\n\n\t\t\tconst returnValues = (await outputParser.parse(parserInput)) as Record<string, unknown>;\n\t\t\treturn handleParsedStepOutput(returnValues, memory);\n\t\t}\n\n\t\treturn handleAgentFinishOutput(steps);\n\t};\n\n/* -----------------------------------------------------------\n Agent Setup Helpers\n----------------------------------------------------------- */\n/**\n * Retrieves the language model from the input connection.\n * Throws an error if the model is not a valid chat instance or does not support tools.\n *\n * @param ctx - The execution context\n * @returns The validated chat model\n */\nexport async function getChatModel(\n\tctx: IExecuteFunctions | ISupplyDataFunctions,\n\tindex: number = 0,\n): Promise<BaseChatModel | undefined> {\n\tconst connectedModels = await ctx.getInputConnectionData(NodeConnectionTypes.AiLanguageModel, 0);\n\n\tlet model;\n\n\tif (Array.isArray(connectedModels) && index !== undefined) {\n\t\tif (connectedModels.length <= index) {\n\t\t\treturn undefined;\n\t\t}\n\t\t// We get the models in reversed order from the workflow so we need to reverse them to match the right index\n\t\tconst reversedModels = [...connectedModels].reverse();\n\t\tmodel = reversedModels[index] as BaseChatModel;\n\t} else {\n\t\tmodel = connectedModels as BaseChatModel;\n\t}\n\n\tif (!isChatInstance(model) || !model.bindTools) {\n\t\tthrow new NodeOperationError(\n\t\t\tctx.getNode(),\n\t\t\t'Tools Agent requires Chat Model which supports Tools calling',\n\t\t);\n\t}\n\treturn model;\n}\n\n/**\n * Retrieves the memory instance from the input connection if it is connected\n *\n * @param ctx - The execution context\n * @returns The connected memory (if any)\n */\nexport async function getOptionalMemory(\n\tctx: IExecuteFunctions | ISupplyDataFunctions,\n): Promise<BaseChatMemory | undefined> {\n\treturn (await ctx.getInputConnectionData(NodeConnectionTypes.AiMemory, 0)) as\n\t\t| BaseChatMemory\n\t\t| undefined;\n}\n\n/**\n * Retrieves the connected tools and (if an output parser is defined)\n * appends a structured output parser tool.\n *\n * @param ctx - The execution context\n * @param outputParser - The optional output parser\n * @returns The array of connected tools\n */\nexport async function getTools(\n\tctx: IExecuteFunctions | ISupplyDataFunctions,\n\toutputParser?: N8nOutputParser,\n): Promise<Array<DynamicStructuredTool | Tool>> {\n\tconst tools = (await getConnectedTools(ctx, true, false)) as Array<DynamicStructuredTool | Tool>;\n\n\t// If an output parser is available, create a dynamic tool to validate the final output.\n\tif (outputParser) {\n\t\tconst schema = getOutputParserSchema(outputParser);\n\t\tconst structuredOutputParserTool = new DynamicStructuredTool({\n\t\t\tschema,\n\t\t\tname: 'format_final_json_response',\n\t\t\tdescription:\n\t\t\t\t'Use this tool to format your final response to the user in a structured JSON format. This tool validates your output against a schema to ensure it meets the required format. ONLY use this tool when you have completed all necessary reasoning and are ready to provide your final answer. Do not use this tool for intermediate steps or for asking questions. The output from this tool will be directly returned to the user.',\n\t\t\t// We do not use a function here because we intercept the output with the parser.\n\t\t\tfunc: async () => '',\n\t\t});\n\t\ttools.push(structuredOutputParserTool);\n\t}\n\treturn tools;\n}\n\n/**\n * Prepares the prompt messages for the agent.\n *\n * @param ctx - The execution context\n * @param itemIndex - The current item index\n * @param options - Options containing systemMessage and other parameters\n * @returns The array of prompt messages\n */\nexport async function prepareMessages(\n\tctx: IExecuteFunctions | ISupplyDataFunctions,\n\titemIndex: number,\n\toptions: {\n\t\tsystemMessage?: string;\n\t\tpassthroughBinaryImages?: boolean;\n\t\toutputParser?: N8nOutputParser;\n\t},\n): Promise<BaseMessagePromptTemplateLike[]> {\n\tconst useSystemMessage = options.systemMessage ?? ctx.getNode().typeVersion < 1.9;\n\n\tconst messages: BaseMessagePromptTemplateLike[] = [];\n\n\tif (useSystemMessage) {\n\t\tmessages.push([\n\t\t\t'system',\n\t\t\t`{system_message}${options.outputParser ? '\\n\\n{formatting_instructions}' : ''}`,\n\t\t]);\n\t} else if (options.outputParser) {\n\t\tmessages.push(['system', '{formatting_instructions}']);\n\t}\n\n\tmessages.push(['placeholder', '{chat_history}'], ['human', '{input}']);\n\n\t// If there is binary data and the node option permits it, add a binary message\n\tconst hasBinaryData = ctx.getInputData()?.[itemIndex]?.binary !== undefined;\n\tif (hasBinaryData && options.passthroughBinaryImages) {\n\t\tconst binaryMessage = await extractBinaryMessages(ctx, itemIndex);\n\t\tif (binaryMessage.content.length !== 0) {\n\t\t\tmessages.push(binaryMessage);\n\t\t} else {\n\t\t\tctx.logger.debug('Not attaching binary message, since its content was empty');\n\t\t}\n\t}\n\n\t// We add the agent scratchpad last, so that the agent will not run in loops\n\t// by adding binary messages between each interaction\n\tmessages.push(['placeholder', '{agent_scratchpad}']);\n\treturn messages;\n}\n\n/**\n * Creates the chat prompt from messages.\n *\n * @param messages - The messages array\n * @returns The ChatPromptTemplate instance\n */\nexport function preparePrompt(messages: BaseMessagePromptTemplateLike[]): ChatPromptTemplate {\n\treturn ChatPromptTemplate.fromMessages(messages);\n}\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;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AAI,cAAc;AACjB,UAAM,SAAS,sBAAsB,YAAY;AACjD,UAAM,6BAA6B,IAAI,mCAAsB;AAAA,MAC5D;AAAA,MACA,MAAM;AAAA,MACN,aACC;AAAA;AAAA,MAED,MAAM,YAAY;AAAA,IACnB,CAAC;AACD,UAAM,KAAK,0BAA0B;AAAA,EACtC;AACA,SAAO;AACR;AAUA,eAAsB,gBACrB,KACA,WACA,SAK2C;AAC3C,QAAM,mBAAmB,QAAQ,iBAAiB,IAAI,QAAQ,EAAE,cAAc;AAE9E,QAAM,WAA4C,CAAC;AAEnD,MAAI,kBAAkB;AACrB,aAAS,KAAK;AAAA,MACb;AAAA,MACA,mBAAmB,QAAQ,eAAe,kCAAkC,EAAE;AAAA,IAC/E,CAAC;AAAA,EACF,WAAW,QAAQ,cAAc;AAChC,aAAS,KAAK,CAAC,UAAU,2BAA2B,CAAC;AAAA,EACtD;AAEA,WAAS,KAAK,CAAC,eAAe,gBAAgB,GAAG,CAAC,SAAS,SAAS,CAAC;AAGrE,QAAM,gBAAgB,IAAI,aAAa,IAAI,SAAS,GAAG,WAAW;AAClE,MAAI,iBAAiB,QAAQ,yBAAyB;AACrD,UAAM,gBAAgB,MAAM,sBAAsB,KAAK,SAAS;AAChE,QAAI,cAAc,QAAQ,WAAW,GAAG;AACvC,eAAS,KAAK,aAAa;AAAA,IAC5B,OAAO;AACN,UAAI,OAAO,MAAM,2DAA2D;AAAA,IAC7E;AAAA,EACD;AAIA,WAAS,KAAK,CAAC,eAAe,oBAAoB,CAAC;AACnD,SAAO;AACR;AAQO,SAAS,cAAc,UAA+D;AAC5F,SAAO,kCAAmB,aAAa,QAAQ;AAChD;","names":[]}
|
|
1
|
+
{"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/ToolsAgent/common.ts"],"names":[],"mappings":";;;AAuBA,sDAQC;AA+BD,sDAgEC;AAgBD,wDAsBC;AAiCD,0DA8CC;AAUD,wDAQC;AA+ED,oCA0BC;AAQD,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