GoogleServiceCollectionExtensions
Namespace: Vercel.AI.Google
public static class GoogleServiceCollectionExtensionsRegisters Google and Vertex.
Inheritance: object
Methods
Section titled “Methods”AddGoogle(IServiceCollection, Action<GoogleOptions>?)
Section titled “AddGoogle(IServiceCollection, Action<GoogleOptions>?)”public static IServiceCollection AddGoogle(this IServiceCollection services, Action<GoogleOptions>? configure = null)Adds GoogleProvider.
Parameters
| Name | Type | Description |
|---|---|---|
services |
IServiceCollection | |
configure |
Action<GoogleOptions> |
Returns: IServiceCollection
AddGoogleVertex(IServiceCollection, Action<VertexOptions>?)
Section titled “AddGoogleVertex(IServiceCollection, Action<VertexOptions>?)”public static IServiceCollection AddGoogleVertex(this IServiceCollection services, Action<VertexOptions>? configure = null)Adds GoogleVertexProvider.
Parameters
| Name | Type | Description |
|---|---|---|
services |
IServiceCollection | |
configure |
Action<VertexOptions> |
Returns: IServiceCollection
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product