Class AIChatServiceExtensions
Extension methods for configuring AIChatService in the dependency injection container.
Inherited Members
Namespace: Radzen
Assembly: Radzen.Blazor.dll
Syntax
public static class AIChatServiceExtensions
Methods
AddAIChatService(IServiceCollection)
Adds the AIChatService to the service collection with default options.
Declaration
public static IServiceCollection AddAIChatService(this IServiceCollection services)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection. |
Returns
Type | Description |
---|---|
IServiceCollection | The updated service collection. |
AddAIChatService(IServiceCollection, Action<AIChatServiceOptions>)
Adds the AIChatService to the service collection with the specified configuration.
Declaration
public static IServiceCollection AddAIChatService(this IServiceCollection services, Action<AIChatServiceOptions> configureOptions)
Parameters
Type | Name | Description |
---|---|---|
IServiceCollection | services | The service collection. |
Action<AIChatServiceOptions> | configureOptions | The action to configure the AIChatService options. |
Returns
Type | Description |
---|---|
IServiceCollection | The updated service collection. |