From 63c483ea01167a1ed6eded7a074793ad46569eaa Mon Sep 17 00:00:00 2001 From: Bagatur <22008038+baskaryan@users.noreply.github.com> Date: Wed, 14 Aug 2024 09:13:56 -0700 Subject: [PATCH] standard-tests: import fix (#25395) --- .../langchain_standard_tests/integration_tests/chat_models.py | 2 +- .../langchain_standard_tests/unit_tests/chat_models.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/standard-tests/langchain_standard_tests/integration_tests/chat_models.py b/libs/standard-tests/langchain_standard_tests/integration_tests/chat_models.py index 713c4fd354..bcb47a4c15 100644 --- a/libs/standard-tests/langchain_standard_tests/integration_tests/chat_models.py +++ b/libs/standard-tests/langchain_standard_tests/integration_tests/chat_models.py @@ -17,7 +17,7 @@ from langchain_core.messages import ( from langchain_core.output_parsers import StrOutputParser from langchain_core.prompts import ChatPromptTemplate from langchain_core.pydantic_v1 import BaseModel, Field -from langchain_core.tools.convert import tool +from langchain_core.tools import tool from pydantic import BaseModel as RawBaseModel from pydantic import Field as RawField diff --git a/libs/standard-tests/langchain_standard_tests/unit_tests/chat_models.py b/libs/standard-tests/langchain_standard_tests/unit_tests/chat_models.py index 1a7d85e493..ed73771dbd 100644 --- a/libs/standard-tests/langchain_standard_tests/unit_tests/chat_models.py +++ b/libs/standard-tests/langchain_standard_tests/unit_tests/chat_models.py @@ -7,7 +7,7 @@ import pytest from langchain_core.language_models import BaseChatModel from langchain_core.pydantic_v1 import BaseModel, Field from langchain_core.runnables import RunnableBinding -from langchain_core.tools.convert import tool +from langchain_core.tools import tool from langchain_standard_tests.base import BaseStandardTests from langchain_standard_tests.utils.pydantic import PYDANTIC_MAJOR_VERSION