This package contains common resources to access Google AI/ML models and other Google services in an auth-independent way.
AI/ML models are supported using the same interface no matter if you are using the Google AI Studio-based version of the model or the Google Cloud Vertex AI version of the model.
This is not a stand-alone package since it does not contain code to do authorization.
Instead, you should install one of the following packages:
See those packages for details about installation.
This package does not depend on any Google library. Instead, it relies on REST calls to Google endpoints. This is deliberate to reduce (sometimes conflicting) dependencies and make it usable on platforms that do not include file storage.
When using tools or functions with Gemini models, the following Zod schema features are not supported:
z.discriminatedUnion()) - Use flat objects with optional fields insteadz.union()) - Use separate optional fieldsz.number().positive()) - Automatically converted to z.number().min(0.01)For detailed examples and workarounds, see the Tool Schema Limitations section in the @langchain/google-vertexai or @langchain/google-genai package documentation.
Tasks and services that may be implemented in the future:
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Represents a chunk of data that can be identified by the path where the data is (or will be) located, along with optional metadata about the data.
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
A blob "store" that works with data: URLs that will turn the URL into a blob.
Represents a chunk of data that can be identified by the path where the data is (or will be) located, along with optional metadata about the data.
Responsible for converting a URI (typically a web URL) into a MediaBlob. Allows for aliasing / caching of the requested URI and what it resolves to. This MediaBlob is expected to be usable to provide
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
A specialized Store that is designed to handle MediaBlobs and use the key that is included in the blob to determine exactly how it is stored.
The full details of a MediaBlob may be changed when it is
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Enables calls to Google APIs for generating text embeddings.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Integration with a Google chat model.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Integration with an LLM.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.
Parameters needed to setup the client connection. AuthOptions are something like GoogleAuthOptions (from google-auth-library) or WebGoogleAuthOptions.