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

This commit is contained in:
ccurme
2025-12-12 13:10:14 -05:00
committed by GitHub
parent cd124a0949
commit c3738ea376
2 changed files with 2 additions and 2 deletions

View File

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