Skip to content

The agent engineering platform.

chore(anthropic): make test agnostic of python version (#34320)

ccurmec3738ea37630
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 aa27cf9480..40311c6a09 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 0370f22580..e8d5b11e9b 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.