AgentForge

Gemini

Configure Google Gemini models — API key, models, and usage.

Setup

export GOOGLE_AI_API_KEY=your-key-here
import { createLLM } from '@ahzan-agentforge/core';

const llm = createLLM({
  provider: 'gemini',
  model: 'gemini-pro',
});

Available Models

ModelIdentifierBest For
Gemini Progemini-proGeneral purpose
Gemini Flashgemini-1.5-flashFast, 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';

Next Steps