def test_toolkit_crewai_kwarg_passthrough(client):
    """Test toolkit with invalid input parameters for function conversion."""
    mock_function_info = generate_function_info()

    with (
        mock.patch(
            "unitycatalog.ai.core.utils.client_utils.validate_or_set_default_client",
            return_value=client,
        ),
        mock.patch.object(client, "get_function", return_value=mock_function_info),
    ):
        tool = UCFunctionToolkit.uc_function_to_crewai_tool(
            function_name="catalog.schema.test",
            client=client,
            cache_function=lambda: True,
            result_as_answer=True,
            description_updated=True,
        )

        assert tool.cache_function()
        assert tool.result_as_answer
        assert tool.description_updated
Test toolkit with invalid input parameters for function conversion.
ai/integrations/crewai/tests/test_crewai_toolkit.py