def test_validate_and_convert_stringable() -> None:
    """Test conversion of stringable object into string."""
    message = ChatMessage(role=MessageRole.USER, content="hello")
    assert validate_and_convert_stringable(message) == "user: hello"
Test conversion of stringable object into string.
llama-index-core/tests/query_pipeline/test_utils.py