Extension methods for configuring AIChatService in the dependency injection container.
Object
Namespace: Radzen
Assembly: Radzen.Blazor.dll
public static class AIChatServiceExtensionsAdds the AIChatService to the service collection with the specified configuration.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAIChatService(Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<AIChatServiceOptions> configureOptions)
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection. |
| Action<AIChatServiceOptions> | configureOptions | The action to configure the AIChatService options. |
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | The updated service collection. |
Adds the AIChatService to the service collection with the specified configuration.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddAIChatService(Microsoft.Extensions.DependencyInjection.IServiceCollection services)
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection. |
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | The updated service collection. |
Registers the IConversationStore that keeps the conversations of IAIChatService, replacing the default InMemoryConversationStore.
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddConversationStore(Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.DependencyInjection.ServiceLifetime lifetime)
| Type | Name | Description |
|---|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection | services | The service collection. |
| Microsoft.Extensions.DependencyInjection.ServiceLifetime | lifetime | The lifetime of the store. Scoped by default so that it can use scoped services such as a DbContext. |
| Type | Description |
|---|---|
| Microsoft.Extensions.DependencyInjection.IServiceCollection |