From 62bee249243e4a0024109dd4c94bba47ec62e94a Mon Sep 17 00:00:00 2001 From: timothycarambat Date: Thu, 5 Jun 2025 07:34:31 -0700 Subject: [PATCH] remove LLM Instruction `inputVariable` requirement --- .../Admin/AgentBuilder/BlockList/index.jsx | 1 - .../nodes/LLMInstructionNode/index.jsx | 11 ----------- .../agentFlows/executors/llm-instruction.js | 19 ++++--------------- server/utils/agentFlows/flowTypes.js | 4 ---- 4 files changed, 4 insertions(+), 31 deletions(-) diff --git a/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx b/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx index 2bdf18c3ddc..eaaf05b89eb 100644 --- a/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx +++ b/frontend/src/pages/Admin/AgentBuilder/BlockList/index.jsx @@ -115,7 +115,6 @@ const BLOCK_INFO = { description: "Process data using LLM instructions", defaultConfig: { instruction: "", - inputVariable: "", resultVariable: "", }, getSummary: (config) => config.instruction || "No instruction", diff --git a/frontend/src/pages/Admin/AgentBuilder/nodes/LLMInstructionNode/index.jsx b/frontend/src/pages/Admin/AgentBuilder/nodes/LLMInstructionNode/index.jsx index 24b7821b5de..bd52f81db5f 100644 --- a/frontend/src/pages/Admin/AgentBuilder/nodes/LLMInstructionNode/index.jsx +++ b/frontend/src/pages/Admin/AgentBuilder/nodes/LLMInstructionNode/index.jsx @@ -7,17 +7,6 @@ export default function LLMInstructionNode({ }) { return (
-
- - {renderVariableSelect( - config.inputVariable, - (value) => onConfigChange({ ...config, inputVariable: value }), - "Select input variable" - )} -
-