From 51c5973033b6bd488a0efe249f81fe4788a3e385 Mon Sep 17 00:00:00 2001 From: lorenzejay Date: Thu, 22 Jan 2026 13:52:38 -0800 Subject: [PATCH] fix test --- lib/crewai/tests/llms/anthropic/test_anthropic_async.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/crewai/tests/llms/anthropic/test_anthropic_async.py b/lib/crewai/tests/llms/anthropic/test_anthropic_async.py index 63cb5d5e4..a93397317 100644 --- a/lib/crewai/tests/llms/anthropic/test_anthropic_async.py +++ b/lib/crewai/tests/llms/anthropic/test_anthropic_async.py @@ -196,4 +196,5 @@ async def test_anthropic_async_with_tools(): logging.debug("result: %s", result) assert result is not None - assert isinstance(result, str) + # Result can be either a string or a list of tool calls (native tool calling) + assert isinstance(result, (str, list))