Skip to content

Commit 8770e54

Browse files
authored
fix: remove duplicate condition check in handleToolCall (#2929)
1 parent 49d5dfa commit 8770e54

File tree

1 file changed

+0
-4
lines changed
  • apps/web/client/src/components/tools

1 file changed

+0
-4
lines changed

apps/web/client/src/components/tools/tools.ts

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,6 @@ export async function handleToolCall(agentType: AgentType, toolCall: ToolCall<st
2121

2222
throw new Error(`Tool "${toolName}" is not available in ${currentChatMode} mode!!!!`);
2323
}
24-
25-
if (!tool) {
26-
throw new Error(`Unknown tool call: ${toolName}`);
27-
}
2824
// Parse the input to the tool parameters. Throws if invalid.
2925
const validatedInput = tool.parameters.parse(toolCall.input);
3026
const toolInstance = new tool();

0 commit comments

Comments
 (0)