Observed since 20 Oct, 23:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
A Python adapter for using Google Gemini with OpenAI Agents SDK
A Python adapter for using Google Gemini with OpenAI Agents SDK. This package provides a seamless integration between Google's Gemini models and the OpenAI Agents SDK.
pip install agentsdk-gemini-adapter
.env file:GEMINI_API_KEY=your_gemini_api_key_here
from agentsdk_gemini_adapter import config
# Now you can use the config with OpenAI Agents SDK
# The config includes a pre-configured Gemini model
This package requires openai-agents to be installed separately:
pip install openai-agents
Note: python-dotenv will be installed automatically as a dependency of openai-agents.
from agents import Agent, Runner
from agentsdk_gemini_adapter import config
# Create an agent using OpenAI Agents SDK
agent = Agent(
name="Assistant",
instructions="You are a helpful assistant.",
)
# Pass the Gemini configuration in run_config to any Runner method
result = Runner.run_sync(agent, "Write a haiku about recursion in programming.", run_config=config)
print(result.final_output)
The package automatically:
GEMINI_API_KEY from environment variablesRunConfig objectMIT License - see LICENSE file for details.
Contributions are welcome! Please feel free to submit a Pull Request.
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.1.0 | 2 Jul 2025 | 0 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 23:18 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:e198760229994296d9ed30a813ee008596bad7f8ee384a453f430ecd2d556700