googleapis/python-genai ? reverse-engineered prompt

Reverse engineered prompt

Build me a Python SDK that makes it easy to call Google’s Gemini AI models from regular Python apps.

I want one clean client that works for both the developer API and the enterprise agent platform, with simple setup from an API key or environment variables. It should support common things like generating text, streaming responses, chatting, async use, closing connections properly, and using either normal Python dicts or typed objects for requests. Please make the public interface feel simple and modern, with good defaults and clear examples in the docs.

If you need to check the latest Gemini API details or current best practices, look them up online first so the code matches the current SDK style. Also make sure the package is easy to install and use, and include enough tests and docs so someone can import it and get started right away.