diff --git a/libs/vertexai/langchain_google_vertexai/functions_utils.py b/libs/vertexai/langchain_google_vertexai/functions_utils.py index 92239dea..8a0970ae 100644 --- a/libs/vertexai/langchain_google_vertexai/functions_utils.py +++ b/libs/vertexai/langchain_google_vertexai/functions_utils.py @@ -67,7 +67,7 @@ def _format_tools_to_vertex_tool( elif isinstance(tool, dict): func = { "name": tool["name"], - "description": tool.pop("description"), + "description": tool["description"], "parameters": _get_parameters_from_schema(tool["parameters"]), } else: