The class was only accessible inside function scopes, causing AttributeError when app_controller tried to instantiate it at module level via ai_client.GeminiCliAdapter().