async def test_toolkit_with_invalid_function_input(dbx_client):
    """
    Test toolkit with invalid input parameters for function conversion
    (e.g. 'unexpected_key'). Expects a validation error if `extra='forbid'`.
    """

    mock_function_info = generate_function_info()
    with (
        mock.patch(
            "unitycatalog.ai.core.utils.client_utils.validate_or_set_default_client",
            return_value=dbx_client,
        ),
        mock.patch.object(dbx_client, "get_function", return_value=mock_function_info),
    ):
        tool = UCFunctionToolkit.uc_function_to_autogen_tool(
            function_name="catalog.schema.test", client=dbx_client
        )
        invalid_inputs = {"unexpected_key": "value"}

        with pytest.raises(ValueError, match="Extra inputs are not permitted"):
            await tool.run_json(invalid_inputs, CancellationToken())

    Test toolkit with invalid input parameters for function conversion
    (e.g. 'unexpected_key'). Expects a validation error if `extra='forbid'`.
    
ai/integrations/autogen/tests/test_autogen_toolkit.py