From e8c47874301d8d5c3583fb6787417f90deec4056 Mon Sep 17 00:00:00 2001 From: Bagatur Date: Wed, 12 Mar 2025 02:42:05 -0700 Subject: [PATCH] fmt --- libs/core/langchain_core/utils/function_calling.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/core/langchain_core/utils/function_calling.py b/libs/core/langchain_core/utils/function_calling.py index 3e6eef85f71..72d261ec4c5 100644 --- a/libs/core/langchain_core/utils/function_calling.py +++ b/libs/core/langchain_core/utils/function_calling.py @@ -538,7 +538,7 @@ def convert_to_openai_tool( any dict with "type" in "file_search", "function", "computer_use_preview", "web_search_preview". """ - if isinstance(tool, dict) : + if isinstance(tool, dict): if tool.get("type") in ("function", "file_search", "computer_use_preview"): return tool # As of 03.12.25 can be "web_search_preview" or "web_search_preview_2025_03_11"