"""Shared LLM engine helpers."""