From 989dbc6acfc2d4bc28fc5ade4fb308a063227cf9 Mon Sep 17 00:00:00 2001 From: Waleed Latif Date: Sun, 6 Apr 2025 19:03:52 -0700 Subject: [PATCH] fix(tools): removed check in agent block for duplicate tools, since we now allow selecting of operation we have to allow a block's tool to be added to an agent more than once --- .../sub-block/components/tool-input/tool-input.tsx | 6 ------ 1 file changed, 6 deletions(-) diff --git a/sim/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx b/sim/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx index 18a44cdf21..dd95050edb 100644 --- a/sim/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx +++ b/sim/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx @@ -162,12 +162,6 @@ export function ToolInput({ blockId, subBlockId }: ToolInputProps) { : [] const handleSelectTool = (toolBlock: (typeof toolBlocks)[0]) => { - // Check if tool already exists - if (selectedTools.some((tool) => tool.type === toolBlock.type)) { - setOpen(false) - return - } - const hasOperations = hasMultipleOperations(toolBlock.type) const operationOptions = hasOperations ? getOperationOptions(toolBlock.type) : [] const defaultOperation = operationOptions.length > 0 ? operationOptions[0].id : undefined