From ea705e35a21439bd94d1ea43baaaa0a4c48a723c Mon Sep 17 00:00:00 2001 From: lorenzejay Date: Sun, 8 Mar 2026 14:19:02 -0700 Subject: [PATCH] linted --- lib/crewai/src/crewai/llms/providers/anthropic/completion.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crewai/src/crewai/llms/providers/anthropic/completion.py b/lib/crewai/src/crewai/llms/providers/anthropic/completion.py index 4a6dc38d8..f1f564fd3 100644 --- a/lib/crewai/src/crewai/llms/providers/anthropic/completion.py +++ b/lib/crewai/src/crewai/llms/providers/anthropic/completion.py @@ -555,7 +555,8 @@ class AnthropicCompletion(BaseLLM): Updated tools list with tool search tool prepended and regular tools marked as deferred. """ - assert self.tool_search is not None # type + if self.tool_search is None: + return tools # Check if a tool search tool is already present (user passed one manually) has_search_tool = any(