def test_prepare_function_call_missing_required_arg():
    """Test function preparation with missing required argument"""
    def test_func(text: str, count: int) -> OutputModel:
        """Process {{ text }} {{ count }} times"""
        pass

    with pytest.raises(TypeError):
        _prepare_function_call(
            test_func,
            args=(),
            kwargs={"text": "Hello"}  # missing required 'count' argument
        )
Test function preparation with missing required argument
tests/test_function_prep.py