@n8n/n8n-nodes-langchain 2.46.1 → 3.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/known/credentials.json +1 -27
- package/dist/known/nodes.json +0 -84
- package/dist/node-definitions/.nodes-hash +1 -1
- package/dist/node-definitions/index.ts +0 -4
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v1.schema.js +5 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v1.ts +13 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v11.schema.js +5 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v11.ts +13 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v12.schema.js +5 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v12.ts +13 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v13.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v13.ts +13 -70
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v14.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v14.ts +13 -70
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v15.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v15.ts +13 -70
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v16.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v16.ts +13 -70
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v17.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v17.ts +13 -70
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v18.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v18.ts +13 -70
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v19.schema.js +4 -7
- package/dist/node-definitions/nodes/n8n-nodes-langchain/agent/v19.ts +13 -70
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.js +0 -2
- package/dist/nodes/Guardrails/helpers/configureNodeInputs.js.map +1 -1
- package/dist/nodes/agents/Agent/Agent.node.js +10 -11
- package/dist/nodes/agents/Agent/Agent.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js +1 -1
- package/dist/nodes/agents/Agent/V2/AgentToolV2.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js +3 -2
- package/dist/nodes/agents/Agent/V2/AgentV2.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V2/utils.js +0 -2
- package/dist/nodes/agents/Agent/V2/utils.js.map +1 -1
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js +1 -1
- package/dist/nodes/agents/Agent/V3/AgentToolV3.node.js.map +1 -1
- package/dist/nodes/agents/Agent/V3/AgentV3.node.js +1 -1
- package/dist/nodes/agents/Agent/V3/AgentV3.node.js.map +1 -1
- package/dist/nodes/agents/Agent/agents/utils.d.ts +1 -6
- package/dist/nodes/agents/Agent/agents/utils.js +0 -20
- package/dist/nodes/agents/Agent/agents/utils.js.map +1 -1
- package/dist/nodes/agents/Agent/utils.d.ts +2 -1
- package/dist/nodes/agents/Agent/utils.js +23 -2
- package/dist/nodes/agents/Agent/utils.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js +1 -1
- package/dist/nodes/chains/ChainSummarization/V1/ChainSummarizationV1.node.js.map +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js +1 -1
- package/dist/nodes/chains/ChainSummarization/V2/ChainSummarizationV2.node.js.map +1 -1
- package/dist/nodes/mcp/McpClientTool/utils.js +1 -1
- package/dist/nodes/mcp/McpClientTool/utils.js.map +1 -1
- package/dist/nodes/mcp/shared/runtime.js +14 -1
- package/dist/nodes/mcp/shared/runtime.js.map +1 -1
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js +0 -1
- package/dist/nodes/memory/MemoryXata/MemoryXata.node.js.map +1 -1
- package/dist/nodes/vendors/Microsoft/langchain-utils.js +1 -1
- package/dist/nodes/vendors/Microsoft/langchain-utils.js.map +1 -1
- package/dist/nodes/{agents/Agent/agents/ConversationalAgent → vendors/Microsoft}/prompt.d.ts +0 -1
- package/dist/nodes/{agents/Agent/agents/ConversationalAgent → vendors/Microsoft}/prompt.js +1 -14
- package/dist/nodes/vendors/Microsoft/prompt.js.map +1 -0
- package/dist/typecheck.tsbuildinfo +1 -1
- package/dist/types/credentials.json +1 -4
- package/dist/types/nodes.json +11 -33
- package/dist/utils/agent-execution/createEngineRequests.js +13 -1
- package/dist/utils/agent-execution/createEngineRequests.js.map +1 -1
- package/dist/utils/agent-execution/executeEngineAction.d.ts +1 -1
- package/dist/utils/agent-execution/executeEngineAction.js +10 -1
- package/dist/utils/agent-execution/executeEngineAction.js.map +1 -1
- package/dist/utils/agent-execution/index.d.ts +1 -0
- package/dist/utils/agent-execution/index.js +3 -1
- package/dist/utils/agent-execution/index.js.map +1 -1
- package/dist/utils/agent-execution/processHitlResponses.js +3 -2
- package/dist/utils/agent-execution/processHitlResponses.js.map +1 -1
- package/dist/utils/agent-execution/types.d.ts +2 -0
- package/dist/utils/agent-execution/types.js +2 -0
- package/dist/utils/agent-execution/types.js.map +1 -1
- package/dist/utils/helpers.js +0 -2
- package/dist/utils/helpers.js.map +1 -1
- package/package.json +13 -45
- package/dist/credentials/MotorheadApi.credentials.d.ts +0 -9
- package/dist/credentials/MotorheadApi.credentials.js +0 -49
- package/dist/credentials/MotorheadApi.credentials.js.map +0 -1
- package/dist/credentials/SerpApi.credentials.d.ts +0 -9
- package/dist/credentials/SerpApi.credentials.js +0 -42
- package/dist/credentials/SerpApi.credentials.js.map +0 -1
- package/dist/credentials/ZepApi.credentials.d.ts +0 -9
- package/dist/credentials/ZepApi.credentials.js +0 -61
- package/dist/credentials/ZepApi.credentials.js.map +0 -1
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/index.ts +0 -20
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/index.schema.js +0 -26
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/index.ts +0 -21
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_insert.schema.js +0 -29
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_insert.ts +0 -60
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_load.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_load.ts +0 -93
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_retrieve.schema.js +0 -32
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_retrieve.ts +0 -84
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_retrieve_as_tool.schema.js +0 -36
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v1/mode_retrieve_as_tool.ts +0 -107
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/index.schema.js +0 -26
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/index.ts +0 -21
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_insert.schema.js +0 -30
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_insert.ts +0 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_load.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_load.ts +0 -93
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_retrieve.schema.js +0 -32
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_retrieve.ts +0 -84
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_retrieve_as_tool.schema.js +0 -36
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v11/mode_retrieve_as_tool.ts +0 -107
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/index.schema.js +0 -26
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/index.ts +0 -21
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_insert.schema.js +0 -30
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_insert.ts +0 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_load.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_load.ts +0 -93
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_retrieve.schema.js +0 -32
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_retrieve.ts +0 -84
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_retrieve_as_tool.schema.js +0 -36
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v12/mode_retrieve_as_tool.ts +0 -107
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/index.schema.js +0 -26
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/index.ts +0 -21
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_insert.schema.js +0 -30
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_insert.ts +0 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_load.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_load.ts +0 -93
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_retrieve.schema.js +0 -32
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_retrieve.ts +0 -84
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_retrieve_as_tool.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v13/mode_retrieve_as_tool.ts +0 -103
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/index.schema.js +0 -26
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/index.ts +0 -21
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_insert.schema.js +0 -30
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_insert.ts +0 -65
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_load.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_load.ts +0 -93
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_retrieve.schema.js +0 -32
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_retrieve.ts +0 -84
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_retrieve_as_tool.schema.js +0 -35
- package/dist/node-definitions/nodes/n8n-nodes-langchain/vectorStoreZep/v14/mode_retrieve_as_tool.ts +0 -103
- package/dist/nodes/agents/Agent/V1/AgentV1.node.d.ts +0 -6
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js +0 -422
- package/dist/nodes/agents/Agent/V1/AgentV1.node.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js +0 -220
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/description.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js +0 -96
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/execute.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ConversationalAgent/prompt.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js +0 -210
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js +0 -8
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.d.ts +0 -1
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js +0 -5
- package/dist/nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js +0 -196
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/description.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js +0 -79
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/execute.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.d.ts +0 -1
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js +0 -11
- package/dist/nodes/agents/Agent/agents/PlanAndExecuteAgent/prompt.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.js +0 -240
- package/dist/nodes/agents/Agent/agents/ReActAgent/description.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js +0 -102
- package/dist/nodes/agents/Agent/agents/ReActAgent/execute.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.d.ts +0 -4
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js +0 -11
- package/dist/nodes/agents/Agent/agents/ReActAgent/prompt.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.js +0 -329
- package/dist/nodes/agents/Agent/agents/SqlAgent/description.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.d.ts +0 -3
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js +0 -169
- package/dist/nodes/agents/Agent/agents/SqlAgent/execute.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.d.ts +0 -3
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js +0 -20
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/mysql.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.d.ts +0 -3
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js +0 -21
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/postgres.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.d.ts +0 -3
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js +0 -72
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/handlers/sqlite.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js +0 -23
- package/dist/nodes/agents/Agent/agents/SqlAgent/other/prompts.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js +0 -20
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/description.js.map +0 -1
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.d.ts +0 -2
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js +0 -98
- package/dist/nodes/agents/Agent/agents/ToolsAgent/V1/execute.js.map +0 -1
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.d.ts +0 -5
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js +0 -388
- package/dist/nodes/agents/OpenAiAssistant/OpenAiAssistant.node.js.map +0 -1
- package/dist/nodes/agents/OpenAiAssistant/utils.d.ts +0 -5
- package/dist/nodes/agents/OpenAiAssistant/utils.js +0 -35
- package/dist/nodes/agents/OpenAiAssistant/utils.js.map +0 -1
- package/dist/nodes/code/Code.node.d.ts +0 -10
- package/dist/nodes/code/Code.node.js +0 -381
- package/dist/nodes/code/Code.node.js.map +0 -1
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.d.ts +0 -7
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js +0 -174
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/DocumentBinaryInputLoader.node.js.map +0 -1
- package/dist/nodes/document_loaders/DocumentBinaryInputLoader/binary.svg +0 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.d.ts +0 -5
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js +0 -170
- package/dist/nodes/document_loaders/DocumentGithubLoader/DocumentGithubLoader.node.js.map +0 -1
- package/dist/nodes/document_loaders/DocumentGithubLoader/github.svg +0 -1
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.d.ts +0 -5
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js +0 -84
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/DocumentJsonInputLoader.node.js.map +0 -1
- package/dist/nodes/document_loaders/DocumentJSONInputLoader/json.svg +0 -1
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.d.ts +0 -15
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js +0 -247
- package/dist/nodes/llms/LMOpenAi/LmOpenAi.node.js.map +0 -1
- package/dist/nodes/llms/LMOpenAi/openAiLight.dark.svg +0 -3
- package/dist/nodes/llms/LMOpenAi/openAiLight.svg +0 -3
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.d.ts +0 -5
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js +0 -93
- package/dist/nodes/memory/MemoryChatRetriever/MemoryChatRetriever.node.js.map +0 -1
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.d.ts +0 -5
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js +0 -119
- package/dist/nodes/memory/MemoryMotorhead/MemoryMotorhead.node.js.map +0 -1
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.d.ts +0 -5
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js +0 -151
- package/dist/nodes/memory/MemoryZep/MemoryZep.node.js.map +0 -1
- package/dist/nodes/memory/MemoryZep/zep.png +0 -0
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.d.ts +0 -5
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js +0 -344
- package/dist/nodes/tools/ToolHttpRequest/ToolHttpRequest.node.js.map +0 -1
- package/dist/nodes/tools/ToolHttpRequest/descriptions.d.ts +0 -7
- package/dist/nodes/tools/ToolHttpRequest/descriptions.js +0 -389
- package/dist/nodes/tools/ToolHttpRequest/descriptions.js.map +0 -1
- package/dist/nodes/tools/ToolHttpRequest/httprequest.dark.svg +0 -3
- package/dist/nodes/tools/ToolHttpRequest/httprequest.svg +0 -1
- package/dist/nodes/tools/ToolHttpRequest/interfaces.d.ts +0 -20
- package/dist/nodes/tools/ToolHttpRequest/interfaces.js +0 -3
- package/dist/nodes/tools/ToolHttpRequest/interfaces.js.map +0 -1
- package/dist/nodes/tools/ToolHttpRequest/utils.d.ts +0 -25
- package/dist/nodes/tools/ToolHttpRequest/utils.js +0 -671
- package/dist/nodes/tools/ToolHttpRequest/utils.js.map +0 -1
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.d.ts +0 -6
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js +0 -143
- package/dist/nodes/tools/ToolSerpApi/ToolSerpApi.node.js.map +0 -1
- package/dist/nodes/tools/ToolSerpApi/serpApi.svg +0 -1
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.d.ts +0 -5
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js +0 -67
- package/dist/nodes/trigger/ManualChatTrigger/ManualChatTrigger.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.d.ts +0 -5
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js +0 -86
- package/dist/nodes/vector_store/VectorStoreInMemoryInsert/VectorStoreInMemoryInsert.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.d.ts +0 -5
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js +0 -65
- package/dist/nodes/vector_store/VectorStoreInMemoryLoad/VectorStoreInMemoryLoad.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.d.ts +0 -11
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js +0 -113
- package/dist/nodes/vector_store/VectorStorePineconeInsert/VectorStorePineconeInsert.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStorePineconeInsert/pinecone.svg +0 -1
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.d.ts +0 -11
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js +0 -100
- package/dist/nodes/vector_store/VectorStorePineconeLoad/VectorStorePineconeLoad.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStorePineconeLoad/pinecone.svg +0 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.d.ts +0 -11
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js +0 -103
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/VectorStoreSupabaseInsert.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseInsert/supabase.svg +0 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.d.ts +0 -11
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js +0 -96
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/VectorStoreSupabaseLoad.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreSupabaseLoad/supabase.svg +0 -1
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.d.ts +0 -29
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js +0 -130
- package/dist/nodes/vector_store/VectorStoreZep/VectorStoreZep.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreZep/zep.png +0 -0
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.d.ts +0 -5
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js +0 -122
- package/dist/nodes/vector_store/VectorStoreZepInsert/VectorStoreZepInsert.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreZepInsert/zep.png +0 -0
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.d.ts +0 -5
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js +0 -103
- package/dist/nodes/vector_store/VectorStoreZepLoad/VectorStoreZepLoad.node.js.map +0 -1
- package/dist/nodes/vector_store/VectorStoreZepLoad/zep.png +0 -0
|
@@ -1,220 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.conversationalAgentProperties = void 0;
|
|
4
|
-
const prompt_1 = require("./prompt");
|
|
5
|
-
exports.conversationalAgentProperties = [
|
|
6
|
-
{
|
|
7
|
-
displayName: 'Text',
|
|
8
|
-
name: 'text',
|
|
9
|
-
type: 'string',
|
|
10
|
-
required: true,
|
|
11
|
-
displayOptions: {
|
|
12
|
-
show: {
|
|
13
|
-
agent: ['conversationalAgent'],
|
|
14
|
-
'@version': [1],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
default: '={{ $json.input }}',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
displayName: 'Text',
|
|
21
|
-
name: 'text',
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true,
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
agent: ['conversationalAgent'],
|
|
27
|
-
'@version': [1.1],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
default: '={{ $json.chat_input }}',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
displayName: 'Text',
|
|
34
|
-
name: 'text',
|
|
35
|
-
type: 'string',
|
|
36
|
-
required: true,
|
|
37
|
-
displayOptions: {
|
|
38
|
-
show: {
|
|
39
|
-
agent: ['conversationalAgent'],
|
|
40
|
-
'@version': [1.2],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
default: '={{ $json.chatInput }}',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
displayName: 'Options',
|
|
47
|
-
name: 'options',
|
|
48
|
-
type: 'collection',
|
|
49
|
-
displayOptions: {
|
|
50
|
-
show: {
|
|
51
|
-
agent: ['conversationalAgent'],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
default: {},
|
|
55
|
-
placeholder: 'Add Option',
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
displayName: 'Human Message',
|
|
59
|
-
name: 'humanMessage',
|
|
60
|
-
type: 'string',
|
|
61
|
-
default: prompt_1.HUMAN_MESSAGE,
|
|
62
|
-
description: 'The message that will provide the agent with a list of tools to use',
|
|
63
|
-
typeOptions: {
|
|
64
|
-
rows: 6,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
displayName: 'System Message',
|
|
69
|
-
name: 'systemMessage',
|
|
70
|
-
type: 'string',
|
|
71
|
-
default: prompt_1.SYSTEM_MESSAGE,
|
|
72
|
-
description: 'The message that will be sent to the agent before the conversation starts',
|
|
73
|
-
typeOptions: {
|
|
74
|
-
rows: 6,
|
|
75
|
-
},
|
|
76
|
-
},
|
|
77
|
-
{
|
|
78
|
-
displayName: 'Max Iterations',
|
|
79
|
-
name: 'maxIterations',
|
|
80
|
-
type: 'number',
|
|
81
|
-
default: 10,
|
|
82
|
-
description: 'The maximum number of iterations the agent will run before stopping',
|
|
83
|
-
},
|
|
84
|
-
{
|
|
85
|
-
displayName: 'Return Intermediate Steps',
|
|
86
|
-
name: 'returnIntermediateSteps',
|
|
87
|
-
type: 'boolean',
|
|
88
|
-
default: false,
|
|
89
|
-
description: 'Whether or not the output should include intermediate steps the agent took',
|
|
90
|
-
},
|
|
91
|
-
{
|
|
92
|
-
displayName: 'Tracing Metadata',
|
|
93
|
-
name: 'tracingMetadata',
|
|
94
|
-
type: 'fixedCollection',
|
|
95
|
-
typeOptions: {
|
|
96
|
-
multipleValues: true,
|
|
97
|
-
},
|
|
98
|
-
default: {},
|
|
99
|
-
placeholder: 'Add Metadata',
|
|
100
|
-
description: 'Custom metadata added to tracing events',
|
|
101
|
-
options: [
|
|
102
|
-
{
|
|
103
|
-
displayName: 'Metadata',
|
|
104
|
-
name: 'values',
|
|
105
|
-
values: [
|
|
106
|
-
{
|
|
107
|
-
displayName: 'Key',
|
|
108
|
-
name: 'key',
|
|
109
|
-
type: 'string',
|
|
110
|
-
default: '',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
displayName: 'Type',
|
|
114
|
-
name: 'type',
|
|
115
|
-
type: 'options',
|
|
116
|
-
description: 'The field value type',
|
|
117
|
-
options: [
|
|
118
|
-
{
|
|
119
|
-
name: 'Array',
|
|
120
|
-
value: 'arrayValue',
|
|
121
|
-
},
|
|
122
|
-
{
|
|
123
|
-
name: 'Boolean',
|
|
124
|
-
value: 'booleanValue',
|
|
125
|
-
},
|
|
126
|
-
{
|
|
127
|
-
name: 'Number',
|
|
128
|
-
value: 'numberValue',
|
|
129
|
-
},
|
|
130
|
-
{
|
|
131
|
-
name: 'Object',
|
|
132
|
-
value: 'objectValue',
|
|
133
|
-
},
|
|
134
|
-
{
|
|
135
|
-
name: 'String',
|
|
136
|
-
value: 'stringValue',
|
|
137
|
-
},
|
|
138
|
-
],
|
|
139
|
-
default: 'stringValue',
|
|
140
|
-
},
|
|
141
|
-
{
|
|
142
|
-
displayName: 'Value',
|
|
143
|
-
name: 'stringValue',
|
|
144
|
-
type: 'string',
|
|
145
|
-
default: '',
|
|
146
|
-
displayOptions: {
|
|
147
|
-
show: {
|
|
148
|
-
type: ['stringValue'],
|
|
149
|
-
},
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
{
|
|
153
|
-
displayName: 'Value',
|
|
154
|
-
name: 'numberValue',
|
|
155
|
-
type: 'string',
|
|
156
|
-
default: '',
|
|
157
|
-
displayOptions: {
|
|
158
|
-
show: {
|
|
159
|
-
type: ['numberValue'],
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
validateType: 'number',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
displayName: 'Value',
|
|
166
|
-
name: 'booleanValue',
|
|
167
|
-
type: 'options',
|
|
168
|
-
default: 'true',
|
|
169
|
-
options: [
|
|
170
|
-
{
|
|
171
|
-
name: 'True',
|
|
172
|
-
value: 'true',
|
|
173
|
-
},
|
|
174
|
-
{
|
|
175
|
-
name: 'False',
|
|
176
|
-
value: 'false',
|
|
177
|
-
},
|
|
178
|
-
],
|
|
179
|
-
displayOptions: {
|
|
180
|
-
show: {
|
|
181
|
-
type: ['booleanValue'],
|
|
182
|
-
},
|
|
183
|
-
},
|
|
184
|
-
},
|
|
185
|
-
{
|
|
186
|
-
displayName: 'Value',
|
|
187
|
-
name: 'arrayValue',
|
|
188
|
-
type: 'string',
|
|
189
|
-
default: '',
|
|
190
|
-
placeholder: 'e.g. [ arrayItem1, arrayItem2, arrayItem3 ]',
|
|
191
|
-
displayOptions: {
|
|
192
|
-
show: {
|
|
193
|
-
type: ['arrayValue'],
|
|
194
|
-
},
|
|
195
|
-
},
|
|
196
|
-
validateType: 'array',
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
displayName: 'Value',
|
|
200
|
-
name: 'objectValue',
|
|
201
|
-
type: 'json',
|
|
202
|
-
default: '={}',
|
|
203
|
-
typeOptions: {
|
|
204
|
-
rows: 2,
|
|
205
|
-
},
|
|
206
|
-
displayOptions: {
|
|
207
|
-
show: {
|
|
208
|
-
type: ['objectValue'],
|
|
209
|
-
},
|
|
210
|
-
},
|
|
211
|
-
validateType: 'object',
|
|
212
|
-
},
|
|
213
|
-
],
|
|
214
|
-
},
|
|
215
|
-
],
|
|
216
|
-
},
|
|
217
|
-
],
|
|
218
|
-
},
|
|
219
|
-
];
|
|
220
|
-
//# sourceMappingURL=description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/ConversationalAgent/description.ts"],"names":[],"mappings":";;;AAEA,qCAAy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AK;gCACd,WAAW,EAAE;oCACZ,IAAI,EAAE,CAAC;iCACP;gCACD,cAAc,EAAE;oCACf,IAAI,EAAE;wCACL,IAAI,EAAE,CAAC,aAAa,CAAC;qCACrB;iCACD;gCACD,YAAY,EAAE,QAAQ;6BACtB;yBACD;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.conversationalAgentExecute = conversationalAgentExecute;
|
|
4
|
-
const prompts_1 = require("@langchain/core/prompts");
|
|
5
|
-
const agents_1 = require("@langchain/classic/agents");
|
|
6
|
-
const n8n_workflow_1 = require("n8n-workflow");
|
|
7
|
-
const ai_utilities_1 = require("@n8n/ai-utilities");
|
|
8
|
-
const helpers_1 = require("../../../../../utils/helpers");
|
|
9
|
-
const langchainParserError_1 = require("../../../../../utils/output_parsers/langchainParserError");
|
|
10
|
-
const N8nOutputParser_1 = require("../../../../../utils/output_parsers/N8nOutputParser");
|
|
11
|
-
const schemaParsing_1 = require("../../../../../utils/schemaParsing");
|
|
12
|
-
const tracing_1 = require("../../../../../utils/tracing");
|
|
13
|
-
const utils_1 = require("../utils");
|
|
14
|
-
async function conversationalAgentExecute(nodeVersion) {
|
|
15
|
-
this.logger.debug('Executing Conversational Agent');
|
|
16
|
-
const model = await this.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiLanguageModel, 0);
|
|
17
|
-
if (!(0, ai_utilities_1.isChatInstance)(model)) {
|
|
18
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'Conversational Agent requires Chat Model');
|
|
19
|
-
}
|
|
20
|
-
const memory = (await this.getInputConnectionData(n8n_workflow_1.NodeConnectionTypes.AiMemory, 0));
|
|
21
|
-
const tools = await (0, helpers_1.getConnectedTools)(this, nodeVersion >= 1.5, true, true);
|
|
22
|
-
const outputParser = await (0, N8nOutputParser_1.getOptionalOutputParser)(this);
|
|
23
|
-
await (0, utils_1.checkForStructuredTools)(tools, this.getNode(), 'Conversational Agent');
|
|
24
|
-
const options = this.getNodeParameter('options', 0, {});
|
|
25
|
-
const additionalMetadata = (0, tracing_1.buildTracingMetadata)(options.tracingMetadata?.values, this.logger);
|
|
26
|
-
if (Object.keys(additionalMetadata).length > 0) {
|
|
27
|
-
this.logger.debug('Tracing metadata', { additionalMetadata });
|
|
28
|
-
}
|
|
29
|
-
const tracingConfig = (0, tracing_1.getTracingConfig)(this, { additionalMetadata });
|
|
30
|
-
const agentExecutor = await (0, agents_1.initializeAgentExecutorWithOptions)(tools, model, {
|
|
31
|
-
agentType: 'chat-conversational-react-description',
|
|
32
|
-
memory,
|
|
33
|
-
returnIntermediateSteps: options?.returnIntermediateSteps === true,
|
|
34
|
-
maxIterations: options.maxIterations ?? 10,
|
|
35
|
-
agentArgs: {
|
|
36
|
-
systemMessage: options.systemMessage,
|
|
37
|
-
humanMessage: options.humanMessage,
|
|
38
|
-
},
|
|
39
|
-
});
|
|
40
|
-
const returnData = [];
|
|
41
|
-
let prompt;
|
|
42
|
-
if (outputParser) {
|
|
43
|
-
const formatInstructions = outputParser.getFormatInstructions();
|
|
44
|
-
prompt = new prompts_1.PromptTemplate({
|
|
45
|
-
template: '{input}\n{formatInstructions}',
|
|
46
|
-
inputVariables: ['input'],
|
|
47
|
-
partialVariables: { formatInstructions },
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
const items = this.getInputData();
|
|
51
|
-
for (let itemIndex = 0; itemIndex < items.length; itemIndex++) {
|
|
52
|
-
try {
|
|
53
|
-
let input;
|
|
54
|
-
if (this.getNode().typeVersion <= 1.2) {
|
|
55
|
-
input = this.getNodeParameter('text', itemIndex);
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
input = (0, helpers_1.getPromptInputByType)({
|
|
59
|
-
ctx: this,
|
|
60
|
-
i: itemIndex,
|
|
61
|
-
inputKey: 'text',
|
|
62
|
-
promptTypeKey: 'promptType',
|
|
63
|
-
});
|
|
64
|
-
}
|
|
65
|
-
if (input === undefined) {
|
|
66
|
-
throw new n8n_workflow_1.NodeOperationError(this.getNode(), 'The ‘text parameter is empty.');
|
|
67
|
-
}
|
|
68
|
-
if (prompt) {
|
|
69
|
-
input = (await prompt.invoke({ input })).value;
|
|
70
|
-
}
|
|
71
|
-
const response = await agentExecutor
|
|
72
|
-
.withConfig(tracingConfig)
|
|
73
|
-
.invoke({ input, outputParser });
|
|
74
|
-
if (outputParser) {
|
|
75
|
-
response.output = await (0, utils_1.extractParsedOutput)(this, outputParser, response.output);
|
|
76
|
-
}
|
|
77
|
-
returnData.push({ json: response });
|
|
78
|
-
}
|
|
79
|
-
catch (error) {
|
|
80
|
-
(0, schemaParsing_1.throwIfToolSchema)(this, error);
|
|
81
|
-
const executionError = (0, langchainParserError_1.wrapLangChainParserError)(error, this.getNode(), itemIndex, {
|
|
82
|
-
enrichNonParserErrors: true,
|
|
83
|
-
});
|
|
84
|
-
if (this.continueOnFail()) {
|
|
85
|
-
returnData.push({
|
|
86
|
-
json: { error: executionError.message },
|
|
87
|
-
pairedItem: { item: itemIndex },
|
|
88
|
-
});
|
|
89
|
-
continue;
|
|
90
|
-
}
|
|
91
|
-
throw executionError;
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
return [returnData];
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=execute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/ConversationalAgent/execute.ts"],"names":[],"mappings":";;;AACA,qDAAyD;AACzD,sDAA+E;AAE/E,+CAAuE;AAEvE,oDAAmD;AACnD,4CAAyE;AACzE,qFAAsF;AACtF,2EAAgF;AAChF,wDAAyD;AACzD,4CAAwE;AAExE,oCAAwE;AAEjE,KAAK,qCAEX,WAAmB;IAEnB,IAAI,CAAC,MAAM,CAAC,KAAK,CAAC,gCAAgC,CAAC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;AAAa,QAAA,cAAc,GAAG;;;;;;oSAMsQ,CAAC;AAExR,QAAA,aAAa,GAAG;;;;;;;;;;;;UAYnB,CAAC"}
|
|
@@ -1,210 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.openAiFunctionsAgentProperties = void 0;
|
|
4
|
-
const prompt_1 = require("./prompt");
|
|
5
|
-
exports.openAiFunctionsAgentProperties = [
|
|
6
|
-
{
|
|
7
|
-
displayName: 'Text',
|
|
8
|
-
name: 'text',
|
|
9
|
-
type: 'string',
|
|
10
|
-
required: true,
|
|
11
|
-
displayOptions: {
|
|
12
|
-
show: {
|
|
13
|
-
agent: ['openAiFunctionsAgent'],
|
|
14
|
-
'@version': [1],
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
default: '={{ $json.input }}',
|
|
18
|
-
},
|
|
19
|
-
{
|
|
20
|
-
displayName: 'Text',
|
|
21
|
-
name: 'text',
|
|
22
|
-
type: 'string',
|
|
23
|
-
required: true,
|
|
24
|
-
displayOptions: {
|
|
25
|
-
show: {
|
|
26
|
-
agent: ['openAiFunctionsAgent'],
|
|
27
|
-
'@version': [1.1],
|
|
28
|
-
},
|
|
29
|
-
},
|
|
30
|
-
default: '={{ $json.chat_input }}',
|
|
31
|
-
},
|
|
32
|
-
{
|
|
33
|
-
displayName: 'Text',
|
|
34
|
-
name: 'text',
|
|
35
|
-
type: 'string',
|
|
36
|
-
required: true,
|
|
37
|
-
displayOptions: {
|
|
38
|
-
show: {
|
|
39
|
-
agent: ['openAiFunctionsAgent'],
|
|
40
|
-
'@version': [1.2],
|
|
41
|
-
},
|
|
42
|
-
},
|
|
43
|
-
default: '={{ $json.chatInput }}',
|
|
44
|
-
},
|
|
45
|
-
{
|
|
46
|
-
displayName: 'Options',
|
|
47
|
-
name: 'options',
|
|
48
|
-
type: 'collection',
|
|
49
|
-
displayOptions: {
|
|
50
|
-
show: {
|
|
51
|
-
agent: ['openAiFunctionsAgent'],
|
|
52
|
-
},
|
|
53
|
-
},
|
|
54
|
-
default: {},
|
|
55
|
-
placeholder: 'Add Option',
|
|
56
|
-
options: [
|
|
57
|
-
{
|
|
58
|
-
displayName: 'System Message',
|
|
59
|
-
name: 'systemMessage',
|
|
60
|
-
type: 'string',
|
|
61
|
-
default: prompt_1.SYSTEM_MESSAGE,
|
|
62
|
-
description: 'The message that will be sent to the agent before the conversation starts',
|
|
63
|
-
typeOptions: {
|
|
64
|
-
rows: 6,
|
|
65
|
-
},
|
|
66
|
-
},
|
|
67
|
-
{
|
|
68
|
-
displayName: 'Max Iterations',
|
|
69
|
-
name: 'maxIterations',
|
|
70
|
-
type: 'number',
|
|
71
|
-
default: 10,
|
|
72
|
-
description: 'The maximum number of iterations the agent will run before stopping',
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
displayName: 'Return Intermediate Steps',
|
|
76
|
-
name: 'returnIntermediateSteps',
|
|
77
|
-
type: 'boolean',
|
|
78
|
-
default: false,
|
|
79
|
-
description: 'Whether or not the output should include intermediate steps the agent took',
|
|
80
|
-
},
|
|
81
|
-
{
|
|
82
|
-
displayName: 'Tracing Metadata',
|
|
83
|
-
name: 'tracingMetadata',
|
|
84
|
-
type: 'fixedCollection',
|
|
85
|
-
typeOptions: {
|
|
86
|
-
multipleValues: true,
|
|
87
|
-
},
|
|
88
|
-
default: {},
|
|
89
|
-
placeholder: 'Add Metadata',
|
|
90
|
-
description: 'Custom metadata added to tracing events',
|
|
91
|
-
options: [
|
|
92
|
-
{
|
|
93
|
-
displayName: 'Metadata',
|
|
94
|
-
name: 'values',
|
|
95
|
-
values: [
|
|
96
|
-
{
|
|
97
|
-
displayName: 'Key',
|
|
98
|
-
name: 'key',
|
|
99
|
-
type: 'string',
|
|
100
|
-
default: '',
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
displayName: 'Type',
|
|
104
|
-
name: 'type',
|
|
105
|
-
type: 'options',
|
|
106
|
-
description: 'The field value type',
|
|
107
|
-
options: [
|
|
108
|
-
{
|
|
109
|
-
name: 'Array',
|
|
110
|
-
value: 'arrayValue',
|
|
111
|
-
},
|
|
112
|
-
{
|
|
113
|
-
name: 'Boolean',
|
|
114
|
-
value: 'booleanValue',
|
|
115
|
-
},
|
|
116
|
-
{
|
|
117
|
-
name: 'Number',
|
|
118
|
-
value: 'numberValue',
|
|
119
|
-
},
|
|
120
|
-
{
|
|
121
|
-
name: 'Object',
|
|
122
|
-
value: 'objectValue',
|
|
123
|
-
},
|
|
124
|
-
{
|
|
125
|
-
name: 'String',
|
|
126
|
-
value: 'stringValue',
|
|
127
|
-
},
|
|
128
|
-
],
|
|
129
|
-
default: 'stringValue',
|
|
130
|
-
},
|
|
131
|
-
{
|
|
132
|
-
displayName: 'Value',
|
|
133
|
-
name: 'stringValue',
|
|
134
|
-
type: 'string',
|
|
135
|
-
default: '',
|
|
136
|
-
displayOptions: {
|
|
137
|
-
show: {
|
|
138
|
-
type: ['stringValue'],
|
|
139
|
-
},
|
|
140
|
-
},
|
|
141
|
-
},
|
|
142
|
-
{
|
|
143
|
-
displayName: 'Value',
|
|
144
|
-
name: 'numberValue',
|
|
145
|
-
type: 'string',
|
|
146
|
-
default: '',
|
|
147
|
-
displayOptions: {
|
|
148
|
-
show: {
|
|
149
|
-
type: ['numberValue'],
|
|
150
|
-
},
|
|
151
|
-
},
|
|
152
|
-
validateType: 'number',
|
|
153
|
-
},
|
|
154
|
-
{
|
|
155
|
-
displayName: 'Value',
|
|
156
|
-
name: 'booleanValue',
|
|
157
|
-
type: 'options',
|
|
158
|
-
default: 'true',
|
|
159
|
-
options: [
|
|
160
|
-
{
|
|
161
|
-
name: 'True',
|
|
162
|
-
value: 'true',
|
|
163
|
-
},
|
|
164
|
-
{
|
|
165
|
-
name: 'False',
|
|
166
|
-
value: 'false',
|
|
167
|
-
},
|
|
168
|
-
],
|
|
169
|
-
displayOptions: {
|
|
170
|
-
show: {
|
|
171
|
-
type: ['booleanValue'],
|
|
172
|
-
},
|
|
173
|
-
},
|
|
174
|
-
},
|
|
175
|
-
{
|
|
176
|
-
displayName: 'Value',
|
|
177
|
-
name: 'arrayValue',
|
|
178
|
-
type: 'string',
|
|
179
|
-
default: '',
|
|
180
|
-
placeholder: 'e.g. [ arrayItem1, arrayItem2, arrayItem3 ]',
|
|
181
|
-
displayOptions: {
|
|
182
|
-
show: {
|
|
183
|
-
type: ['arrayValue'],
|
|
184
|
-
},
|
|
185
|
-
},
|
|
186
|
-
validateType: 'array',
|
|
187
|
-
},
|
|
188
|
-
{
|
|
189
|
-
displayName: 'Value',
|
|
190
|
-
name: 'objectValue',
|
|
191
|
-
type: 'json',
|
|
192
|
-
default: '={}',
|
|
193
|
-
typeOptions: {
|
|
194
|
-
rows: 2,
|
|
195
|
-
},
|
|
196
|
-
displayOptions: {
|
|
197
|
-
show: {
|
|
198
|
-
type: ['objectValue'],
|
|
199
|
-
},
|
|
200
|
-
},
|
|
201
|
-
validateType: 'object',
|
|
202
|
-
},
|
|
203
|
-
],
|
|
204
|
-
},
|
|
205
|
-
],
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
];
|
|
210
|
-
//# sourceMappingURL=description.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"description.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/OpenAiFunctionsAgent/description.ts"],"names":[],"mappings":";;;AAEA,qCAA0C;AAE7B,QAAA,8BAA8B,GAAsB;IAChE;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,EAAE,MAAM;QACZ,IAAI,EAAE,QAAQ;QACd,QAAQ,EAAE,IAAI;QACd,cAAc,EAAE;YACf,IAAI,EAAE;gBACL,KAAK,EAAE,CAAC,sBAAsB,CAAC;gBAC/B,UAAU,EAAE,CAAC,CAAC,CAAC;aACf;SACD;QACD,OAAO,EAAE,oBAAoB;KAC7B;IACD;QACC,WAAW,EAAE,MAAM;QACnB,IAAI,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AAE,QAAQ;6BACtB;4BACD;gCACC,WAAW,EAAE,OAAO;gCACpB,IAAI,EAAE,cAAc;gCACpB,IAAI,EAAE,SAAS;gCACf,OAAO,EAAE,MAAM;gCACf,OAAO,EAAE;oCACR;wCACC,IAAI,EAAE,MAAM;wCACZ,KAAK,EAAE,MAAM;qCACb;oCACD;wCACC,IAAI,EAAE,OAAO;wCACb,KAAK,EAAE,OAAO;qCACd;iCACD;gCACD,cAAc,EAAE;oCACf,IAAI,EAAE;wCACL,IAAI,EAAE,CAAC,cAAc,CAAC;qCACtB;iCACD;6BACD;4BACD;gCACC,WAAW,EAAE,OAAO;gCACpB,IAAI,EAAE,YAAY;gCAClB,IAAI,EAAE,QAAQ;gCACd,OAAO,EAAE,EAAE;gCACX,WAAW,EAAE,6CAA6C;gCAC1D,cAAc,EAAE;oCACf,IAAI,EAAE;wCACL,IAAI,EAAE,CAAC,YAAY,CAAC;qCACpB;iCACD;gCACD,YAAY,EAAE,OAAO;6BACrB;4BACD;gCACC,WAAW,EAAE,OAAO;gCACpB,IAAI,EAAE,aAAa;gCACnB,IAAI,EAAE,MAAM;gCACZ,OAAO,EAAE,KAAK;gCACd,WAAW,EAAE;oCACZ,IAAI,EAAE,CAAC;iCACP;gCACD,cAAc,EAAE;oCACf,IAAI,EAAE;wCACL,IAAI,EAAE,CAAC,aAAa,CAAC;qCACrB;iCACD;gCACD,YAAY,EAAE,QAAQ;6BACtB;yBACD;qBACD;iBACD;aACD;SACD;KACD;CACD,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.openAiFunctionsAgentExecute = openAiFunctionsAgentExecute;
|
|
4
|
-
const execute_1 = require("../ToolsAgent/V1/execute");
|
|
5
|
-
async function openAiFunctionsAgentExecute(_nodeVersion) {
|
|
6
|
-
return await execute_1.toolsAgentExecute.call(this);
|
|
7
|
-
}
|
|
8
|
-
//# sourceMappingURL=execute.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"execute.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/OpenAiFunctionsAgent/execute.ts"],"names":[],"mappings":";;;AAEA,sDAA6D;AAYtD,KAAK,sCAEX,YAAoB;IAEpB,OAAO,MAAM,2BAAiB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;AAC3C,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export declare const SYSTEM_MESSAGE = "You are a helpful AI assistant.";
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.js","sourceRoot":"","sources":["../../../../../../nodes/agents/Agent/agents/OpenAiFunctionsAgent/prompt.ts"],"names":[],"mappings":";;;AAAa,QAAA,cAAc,GAAG,iCAAiC,CAAC"}
|