def test_debug_mode_1():
    """Test that debug mode works when we do not pass a type"""
    @backend("markov", debug=True, system="You are a helpful assistant.")
    def generate_summary(t):
        """Generate a summary of the following text: {{ t }}"""
        pass

    result = generate_summary("Hello, world!")
    
    assert isinstance(result, dict)
    assert result["_debug"]["prompt"] == "Generate a summary of the following text: Hello, world!"
    assert result["_debug"]["template_inputs"] == {"t": "Hello, world!"}
    assert result["_debug"]["system"] == "You are a helpful assistant."
    assert result["result"]
Test that debug mode works when we do not pass a type
tests/test_basic.py