diff --git a/libs/partners/anthropic/tests/cassettes/test_tool_search.yaml.gz b/libs/partners/anthropic/tests/cassettes/test_tool_search.yaml.gz index aa27cf94809..40311c6a09f 100644 Binary files a/libs/partners/anthropic/tests/cassettes/test_tool_search.yaml.gz and b/libs/partners/anthropic/tests/cassettes/test_tool_search.yaml.gz differ diff --git a/libs/partners/anthropic/tests/integration_tests/test_chat_models.py b/libs/partners/anthropic/tests/integration_tests/test_chat_models.py index 0370f22580e..e8d5b11e9be 100644 --- a/libs/partners/anthropic/tests/integration_tests/test_chat_models.py +++ b/libs/partners/anthropic/tests/integration_tests/test_chat_models.py @@ -2083,7 +2083,7 @@ def test_context_management() -> None: def test_tool_search(output_version: str) -> None: """Test tool search with LangChain tools using extras parameter.""" - @tool(extras={"defer_loading": True}) + @tool(parse_docstring=True, extras={"defer_loading": True}) def get_weather(location: str, unit: str = "fahrenheit") -> str: """Get the current weather for a location. @@ -2093,7 +2093,7 @@ def test_tool_search(output_version: str) -> None: """ return f"The weather in {location} is sunny and 72°{unit[0].upper()}" - @tool(extras={"defer_loading": True}) + @tool(parse_docstring=True, extras={"defer_loading": True}) def search_files(query: str) -> str: """Search through files in the workspace.