Skip to content

Commit 989dbc6

Browse files
committed
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
1 parent d220115 commit 989dbc6

File tree

1 file changed

+0
-6
lines changed
  • sim/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input

1 file changed

+0
-6
lines changed

sim/app/w/[id]/components/workflow-block/components/sub-block/components/tool-input/tool-input.tsx

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,6 @@ export function ToolInput({ blockId, subBlockId }: ToolInputProps) {
162162
: []
163163

164164
const handleSelectTool = (toolBlock: (typeof toolBlocks)[0]) => {
165-
// Check if tool already exists
166-
if (selectedTools.some((tool) => tool.type === toolBlock.type)) {
167-
setOpen(false)
168-
return
169-
}
170-
171165
const hasOperations = hasMultipleOperations(toolBlock.type)
172166
const operationOptions = hasOperations ? getOperationOptions(toolBlock.type) : []
173167
const defaultOperation = operationOptions.length > 0 ? operationOptions[0].id : undefined

0 commit comments

Comments
 (0)