Use GoogleChatAgent for conversational agents with streaming support.
import { GoogleGenAI } from "@google/genai"import { GoogleChatAgent } from "@reminix/google"import { serve } from "@reminix/runtime"const google = new GoogleGenAI({ apiKey: process.env.GOOGLE_API_KEY })const chatbot = new GoogleChatAgent(google, { name: "chatbot", instructions: "You are a helpful assistant.",})serve({ agents: [chatbot] })
The default model is gemini-2.5-flash. Override it with the model option:
const chatbot = new GoogleChatAgent(google, { name: "chatbot", model: "gemini-2.5-pro", instructions: "You are a helpful assistant.",})