Skip to main content

Add your description here

Project description

🤖 gemini_helper

Use Gemini API with OpenAI Agent SDK easily! This package allows students and developers to use free Gemini models (like gemini-2.0-flash) with the powerful OpenAI Agent SDK.


🚀 Installation

Using uv (recommended):

uv add gemini-agent-helper

Or via pip:

pip install gemini-agent-helper

⚙️ Environment Setup

Create a .env file in your project root and add your Gemini API key:

GEMINI_API_KEY=your_gemini_api_key_here

📌 You can get your key from Google AI Studio


💡 How to Use

✅ Default (uses gemini-2.0-flash)

from gemini_helper.core import get_gemini_model

model = get_gemini_model()

⚡ Custom model (like gemini-1.0-pro)

model = get_gemini_model("gemini-1.0-pro")

💻 Full Example

from gemini_helper.core import get_gemini_model
from agents import Agent, Runner

model = get_gemini_model()

agent = Agent(
    name="Helper",
    instructions="You are a helpful assistant",
    model=model
)

result = Runner.run_sync(agent, input="What is Python?")
print(result.final_output, end="")  

📆 Features

  • 🔐 Secure API key handling via .env
  • 🔄 Compatible with OpenAI Agent SDK
  • 💸 No need for OpenAI's paid API – fully free using Gemini
  • ⚙️ Optional model switching (e.g. gemini-1.0-pro, gemini-2.0-pro)
  • 🧹 Easy to integrate into agent-based workflows

🛠️ Dependencies

This package depends on:

  • openai-agent-sdk
  • python-dotenv

These are automatically installed with the package.


🧑‍💻 Author

Made with ❤️ by Huriya Syed Empowering students to build free agents using Gemini + OpenAI SDK.


📬 Contact / Support

Feel free to open an issue or connect with me on LinkedIn Or email me at: huriyasyed462@gmail.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

gemini_agent_helper-0.1.1.tar.gz (3.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

gemini_agent_helper-0.1.1-py3-none-any.whl (4.0 kB view details)

Uploaded Python 3

File details

Details for the file gemini_agent_helper-0.1.1.tar.gz.

File metadata

  • Download URL: gemini_agent_helper-0.1.1.tar.gz
  • Upload date:
  • Size: 3.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.1.0 CPython/3.13.2

File hashes

Hashes for gemini_agent_helper-0.1.1.tar.gz
Algorithm Hash digest
SHA256 bf1e36b61fc63c047dcdda1a9c2e693efe5b677c3bc7b74eaef3faac5703a1b1
MD5 e67a9d0fe39c37ea7fd15c580976b3de
BLAKE2b-256 1404dee38df61580049bf199c72975bb5ace95f508a9c3ff3ae3605b6395e920

See more details on using hashes here.

File details

Details for the file gemini_agent_helper-0.1.1-py3-none-any.whl.

File metadata

File hashes

Hashes for gemini_agent_helper-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 21369c60e99e2f36d69164503f94a9cf04dfe23df1d180414067043492eb7e81
MD5 5700f939bc2286e193f50d1764aee070
BLAKE2b-256 b6e778d892b63f0fc0d78c82c0fed4db0186c8d1c33b369f80fd6ce90d40225e

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page