mirror of
https://github.com/simstudioai/sim.git
synced 2026-01-14 17:37:55 -05:00
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
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user