AIChatServiceExtensions Class

Extension methods for configuring AIChatService in the dependency injection container.

Inheritance

Object

AIChatServiceExtensions

Namespace: Radzen

Assembly: Radzen.Blazor.dll

Syntax

public static class AIChatServiceExtensions

Methods

AddAIChatServicelink

Adds the AIChatService to the service collection with the specified configuration.

Declaration
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAIChatService(Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<AIChatServiceOptions> configureOptions)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services The service collection.
Action<AIChatServiceOptions> configureOptions The action to configure the AIChatService options.
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollectionThe updated service collection.

AddAIChatServicelink

Adds the AIChatService to the service collection with the specified configuration.

Declaration
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAIChatService(Microsoft.Extensions.DependencyInjection.IServiceCollection services)
Parameters
Type Name Description
Microsoft.Extensions.DependencyInjection.IServiceCollection services The service collection.
Returns
Type Description
Microsoft.Extensions.DependencyInjection.IServiceCollectionThe updated service collection.
In This Article
An error has occurred. This app may no longer respond until reloaded. Reload 🗙