This commit is contained in:
lorenzejay
2026-03-08 14:19:02 -07:00
parent 97df7700aa
commit ea705e35a2

View File

@@ -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(