Skip to content

GoogleServiceCollectionExtensions

Namespace: Vercel.AI.Google

public static class GoogleServiceCollectionExtensions

Registers Google and Vertex.

Inheritance: object

View source

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

View source

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

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product