Gemini
Configure Google Gemini models — API key, models, and usage.
Setup
export GOOGLE_AI_API_KEY=your-key-hereimport { createLLM } from '@ahzan-agentforge/core';
const llm = createLLM({
provider: 'gemini',
model: 'gemini-pro',
});Available Models
| Model | Identifier | Best For |
|---|---|---|
| Gemini Pro | gemini-pro | General purpose |
| Gemini Flash | gemini-1.5-flash | Fast, cost-effective |
Configuration
const llm = createLLM({
provider: 'gemini',
model: 'gemini-pro',
maxTokens: 4096,
temperature: 0.7,
apiKey: 'AI...',
});Direct Access
If you need the Gemini-specific class directly:
import { GeminiLLM } from '@ahzan-agentforge/core';