def test_schema_error():
    """The markov backend does not support schemas, error should be raised"""
    with pytest.raises(ValueError):
        class OutputModel(BaseModel):
            result: str

        @backend("markov", delay=0, length=10)
        def generate_summary(t) -> OutputModel:
            """Generate a summary of the following text: {{ t }}"""
            pass

        generate_summary("Hello, world!")
The markov backend does not support schemas, error should be raised
tests/test_basic.py