diff --git a/libs/partners/anthropic/tests/cassettes/test_search_result_tool_message.yaml.gz b/libs/partners/anthropic/tests/cassettes/test_search_result_tool_message.yaml.gz new file mode 100644 index 00000000000..4f80f569039 Binary files /dev/null and b/libs/partners/anthropic/tests/cassettes/test_search_result_tool_message.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 b4c6c373c23..f8f5111da39 100644 --- a/libs/partners/anthropic/tests/integration_tests/test_chat_models.py +++ b/libs/partners/anthropic/tests/integration_tests/test_chat_models.py @@ -1700,6 +1700,7 @@ def test_files_api_pdf(block_format: str) -> None: _ = llm.invoke([input_message]) +@pytest.mark.vcr def test_search_result_tool_message() -> None: """Test that we can pass a search result tool message to the model.""" llm = ChatAnthropic( diff --git a/libs/partners/anthropic/uv.lock b/libs/partners/anthropic/uv.lock index dfe211672aa..68e52c48a01 100644 --- a/libs/partners/anthropic/uv.lock +++ b/libs/partners/anthropic/uv.lock @@ -622,7 +622,7 @@ typing = [ [[package]] name = "langchain-core" -version = "1.0.2" +version = "1.0.3" source = { editable = "../../core" } dependencies = [ { name = "jsonpatch" }, @@ -656,6 +656,7 @@ test = [ { name = "blockbuster", specifier = ">=1.5.18,<1.6.0" }, { name = "freezegun", specifier = ">=1.2.2,<2.0.0" }, { name = "grandalf", specifier = ">=0.8.0,<1.0.0" }, + { name = "langchain-model-profiles", directory = "../../model-profiles" }, { name = "langchain-tests", directory = "../../standard-tests" }, { name = "numpy", marker = "python_full_version < '3.13'", specifier = ">=1.26.4" }, { name = "numpy", marker = "python_full_version >= '3.13'", specifier = ">=2.1.0" }, @@ -672,6 +673,7 @@ test = [ ] test-integration = [] typing = [ + { name = "langchain-model-profiles", directory = "../../model-profiles" }, { name = "langchain-text-splitters", directory = "../../text-splitters" }, { name = "mypy", specifier = ">=1.18.1,<1.19.0" }, { name = "types-pyyaml", specifier = ">=6.0.12.2,<7.0.0.0" },