def test_vertex_metadata_non_function_calling():
    """Test that Vertex LLM metadata correctly identifies non-Gemini models as non-function calling models."""
    from unittest.mock import patch, Mock

    with patch(
        "vertexai.language_models.ChatModel.from_pretrained"
    ) as mock_from_pretrained:
        mock_chat_client = Mock()
        mock_from_pretrained.return_value = mock_chat_client

        llm = Vertex(model="chat-bison")
        metadata = llm.metadata

        assert metadata.is_function_calling_model is False
        assert metadata.model_name == "chat-bison"
        assert metadata.is_chat_model is True
Test that Vertex LLM metadata correctly identifies non-Gemini models as non-function calling models.
llama-index-integrations/llms/llama-index-llms-vertex/tests/test_llms_vertex.py