async def test_achat(llm: GoogleGenAI) -> None:
    """Test both sync and async chat methods."""
    message = ChatMessage(content="Write a poem about a magic backpack")

    # Test async chat
    async_response = await llm.achat(messages=[message])
    assert async_response is not None
    assert async_response.message.content and len(async_response.message.content) > 0
Test both sync and async chat methods.
llama-index-integrations/llms/llama-index-llms-google-genai/tests/test_llms_google_genai.py