Framework for orchestrating role-playing, autonomous AI agents. By fostering collaborative intelligence, CrewAI empowers agents to work together seamlessly, tackling complex tasks.
fix: ensure supports_tools is true for all supported anthropic models
Greyson LaLonde59180e9c9fb3
diff --git a/lib/crewai/src/crewai/llms/providers/anthropic/completion.py b/lib/crewai/src/crewai/llms/providers/anthropic/completion.pyindex ea161fc63..8af79b41e 100644--- a/lib/crewai/src/crewai/llms/providers/anthropic/completion.py+++ b/lib/crewai/src/crewai/llms/providers/anthropic/completion.py@@ -89,10 +89,7 @@ class AnthropicCompletion(BaseLLM):self.top_p = top_pself.stream = streamself.stop_sequences = stop_sequences or []-- # Model-specific settings- self.is_claude_3 = "claude-3" in model.lower()- self.supports_tools = self.is_claude_3 # Claude 3+ supports tool use+ self.supports_tools = True@propertydef stop(self) -> list[str]:@@ -546,7 +543,7 @@ class AnthropicCompletion(BaseLLM):# Execute the toolresult = self._handle_tool_execution(function_name=function_name,- function_args=function_args, # type: ignore+ function_args=function_args,available_functions=available_functions,from_task=from_task,from_agent=from_agent,