def test_toolkit_creation_errors_invalid_client(uc_client):
    """Test that UCFunctionToolkit raises ValidationError when an invalid client is provided."""
    with pytest.raises(
        ValidationError,
        match=r"Input should be an instance of BaseFunctionClient",
    ):
        UCFunctionToolkit(function_names=[], client="client")
Test that UCFunctionToolkit raises ValidationError when an invalid client is provided.
ai/integrations/litellm/tests/test_litellm_toolkit_oss.py