langchain_google
0.8.0, released 3 months ago by langchaindart.dev
LangChain.dart integration module for Google AI, Gemini, and VertexAI.
What it does
Integrates Google generative models, text chat, embeddings, and vector stores into the LangChain.dart ecosystem. It provides wrappers for Gemini, GCP Vertex AI, and Vertex AI Matching Engine.
AI-written summary of version 0.8.0, based on the package's README and metadata. Report an inaccuracy
Use it when
- Building LangChain.dart applications that leverage Google Gemini models
- Using GCP Vertex AI text and chat models or embeddings in Dart
- Implementing vector storage with Vertex AI Matching Engine
Skip it when
- Not using the LangChain.dart framework
- Building an application that requires direct use of native Firebase Vertex AI without LangChain
Strengths
- Seamless integration with LangChain.dart
- Supports a wide range of Google AI services including Gemini and Vertex AI
- Keeps pace with official Google AI API changes
Weaknesses
- Tightly coupled to the LangChain.dart framework
- Requires managing API keys and Google Cloud project credentials
Setup
- Kind
- Pure Dart
- Effort
- Medium
- Code generation
- No
- Direct dependencies
- 10
Requires obtaining API keys or setting up Google Cloud authentication for Vertex AI and configuring dependencies.
final chatModel = ChatGoogleGenerativeAI(apiKey: 'your-api-key');Alternatives
Packages that do the same job and could replace langchain_google.
- firebase_ai
If you specifically need Firebase Vertex AI integrations within your app.
86Compare
Works with
Packages commonly used together with langchain_google: ones it builds on, ones built on it, and its own family.
- uuidlangchain_google depends on itGenerates and parses RFC‑4122/9562 UUIDs (v1‑v8) for Dart.
- googleapis_authlangchain_google depends on itObtain Access credentials and authenticated HTTP clients for Google APIs using OAuth 2.0.
- googleapislangchain_google depends on itAuto-generated client libraries for accessing Google APIs.
- gcloudlangchain_google depends on itHigh-level Dart API for Google Cloud Storage, Pub/Sub, and Datastore.
- googleai_dartlangchain_google depends on itUnofficial Dart client for Google AI Gemini, Vertex AI Gemini, and Live API WebSockets.
- langchain_corelangchain_google depends on itCore abstractions and LangChain Expression Language for LangChain.dart.
- langchainSame familyA Dart/Flutter library for building LLM‑powered applications with LangChain patterns.
- langchain_openaiSame familyLangChain.dart integration module for OpenAI APIs.