Prerequisites
1
Install Package
First, install PraisonAI Agents:
praisonaiagents[llm] includes all Google Gemini dependencies.
For No-Code implementation, also install: pip install langchain-google-genai
2
Set API Key
Set your Gemini API key:
3
Code
Code Implementation
Basic Usage
The simplest way to use Gemini with PraisonAI Agents:Multi-Agent Setup
Create multiple agents working together:This uses Litellm to connect to Google Gemini.
Gemini 2.0 Flash Thinking
LLM Configuration
1
Install Package
Install required packages:
2
Set API Key
Set your Gemini API key:
3
Code
Alternative Setup
Using Environment Variables
Google Gemini
Google Gemini
No-Code Implementation
Setup
YAML Configuration
Create anagents.yaml
file:
Additional Resources
PraisonAI Chat | PraisonAI Code | PraisonAI (Multi-Agents) |
---|---|---|
Litellm | Litellm | Models |