From 881dc28d2ca853a8f111f0b2297892f4a896b523 Mon Sep 17 00:00:00 2001 From: William FH <13333726+hinthornw@users.noreply.github.com> Date: Tue, 30 Jan 2024 09:40:28 -0800 Subject: [PATCH] Fix Dep Recommendation (#16793) Tools are different than functions --- libs/core/langchain_core/utils/function_calling.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/core/langchain_core/utils/function_calling.py b/libs/core/langchain_core/utils/function_calling.py index a852fe517ed..a4449b655b8 100644 --- a/libs/core/langchain_core/utils/function_calling.py +++ b/libs/core/langchain_core/utils/function_calling.py @@ -89,7 +89,7 @@ def convert_pydantic_to_openai_function( @deprecated( "0.1.16", - alternative="langchain_core.utils.function_calling.convert_to_openai_function()", + alternative="langchain_core.utils.function_calling.convert_to_openai_tool()", removal="0.2.0", ) def convert_pydantic_to_openai_tool( @@ -253,7 +253,7 @@ def format_tool_to_openai_function(tool: BaseTool) -> FunctionDescription: @deprecated( "0.1.16", - alternative="langchain_core.utils.function_calling.convert_to_openai_function()", + alternative="langchain_core.utils.function_calling.convert_to_openai_tool()", removal="0.2.0", ) def format_tool_to_openai_tool(tool: BaseTool) -> ToolDescription: