    llm = google.LLM(...)

    prompt = _build_llm_prompt()

    llm_chat_ctx = ChatContext()
    llm_chat_ctx.add_message(role="system", content=prompt)
    llm_chat_ctx.add_message(role="user", content=f"<transcript>{recent_text}</transcript>")

    try:
        async with llm.chat(chat_ctx=llm_chat_ctx) as stream:
            response_content = ""
            async for chunk in stream:
                if hasattr(chunk, "delta") and chunk.delta and chunk.delta.content:
                    response_content += chunk.delta.content

        if response_content.startswith("```json"):
            response_content = response_content[7:]
        if response_content.endswith("```"):
            response_content = response_content[:-3]
        response_content = response_content.strip()

        data = cast("dict", json.loads(response_content))

        classification_str = data.get("classification", "UNCERTAIN")
        classification = VoicemailDetectionClassification[classification_str]

        logger.info(f"LLM transfer call detection: {classification}")

        return VoicemailDetectionResult(
            classification=classification,
            succeeded=data.get("succeeded_to_determine", False),
            reasoning=data.get("reasoning", "No reasoning provided by LLM."),
            raw_llm_output=response_content,
        )
    ...