![]() |
VOOZH | about |
dotnet add package Encamina.Enmarcha.Bot.Skills.QuestionAnswering --version 8.3.0
NuGet\Install-Package Encamina.Enmarcha.Bot.Skills.QuestionAnswering -Version 8.3.0
<PackageReference Include="Encamina.Enmarcha.Bot.Skills.QuestionAnswering" Version="8.3.0" />
<PackageVersion Include="Encamina.Enmarcha.Bot.Skills.QuestionAnswering" Version="8.3.0" />Directory.Packages.props
<PackageReference Include="Encamina.Enmarcha.Bot.Skills.QuestionAnswering" />Project file
paket add Encamina.Enmarcha.Bot.Skills.QuestionAnswering --version 8.3.0
#r "nuget: Encamina.Enmarcha.Bot.Skills.QuestionAnswering, 8.3.0"
#:package Encamina.Enmarcha.Bot.Skills.QuestionAnswering@8.3.0
#addin nuget:?package=Encamina.Enmarcha.Bot.Skills.QuestionAnswering&version=8.3.0Install as a Cake Addin
#tool nuget:?package=Encamina.Enmarcha.Bot.Skills.QuestionAnswering&version=8.3.0Install as a Cake Tool
This project mainly contains abstractions related to data used by other ENMARCHA NuGet packages or necessary for creating Question Answering skills
First, install NuGet. Then, install Encamina.Enmarcha.Bot.Skills.QuestionAnswering from the package manager console:
PM> Install-Package Encamina.Enmarcha.Bot.Skills.QuestionAnswering
Install .NET CLI. Next, install Encamina.Enmarcha.Bot.Skills.QuestionAnswering from the .NET CLI:
dotnet add package Encamina.Bot.Skills.QuestionAnswering
In addition to the abstractions (interfaces, abstract classes, etc.) that have their implementations in other ENMARCHA NuGets in Program.cs
// Add services to the container.
builder.Services.AddQuestionAnsweringSkill(options =>
{
options.QuestionAnsweringServiceName = "YourServiceName";
options.DialogName = "YourDialogName";
options.DialogIntent = "YourDialogIntent";
options.NormalizeMessage = true;
options.NormalizeRemoveCharacters = new List<char> { 'a', 'b', 'c' };
}, ServiceLifetime.Singleton);
IServiceCollectionExtensions is a static class that provides extension methods for IServiceCollection to add and configure services for a question answering skill and Cosmos DB support.
AddQuestionAnsweringSkill: Adds and configures the question answering dialog with given configuration options and question answering service name. It takes an IServiceCollection, an Action<QuestionAnsweringSkillOptions>, and an optional ServiceLifetime as parameters. It returns the IServiceCollection for chaining additional calls.
AddCosmosDbSupport: Adds support for Cosmos DB with configuration parameters from the current configuration. It takes an IServiceCollection, an IConfiguration, and an optional ServiceLifetime as parameters. It returns the IServiceCollection for chaining additional calls.
QuestionAnsweringDialog is a class that defines a dialog for a question answering skill. It inherits from NamedDialogBase and implements the IIntendable interface.
On Program.cs
// Add bot dialogs...
builder.Services.AddSingleton<QuestionAnsweringDialog>().AddSingleton<Dialog, QuestionAnsweringDialog>();
QuestionAnsweringDialog: Initializes a new instance of the class. It takes a string id, a QuestionAnsweringDialogServices object, and an IOptionsMonitor<QuestionAnsweringSkillOptions> as parameters.configurationOptions: Stores the configuration options for this question answering dialog.
services: Stores the services required for this question answering dialog.
isMetadataProcessorAvailable and isSourcesProcessorAvailable: Indicate the availability of metadata and sources processors.
QuestionAnsweringSkillOptions is a class that provides configuration options for the question answering dialog.
To use this class, you need to create an instance and set the necessary properties:
var options = new QuestionAnsweringSkillOptions
{
QuestionAnsweringServiceName = "YourServiceName",
DialogName = "YourDialogName",
DialogIntent = "YourDialogIntent",
NormalizeMessage = true,
NormalizeRemoveCharacters = new List<char> { 'a', 'b', 'c' }
};
QuestionAnsweringSkillOptions: Initializes a new instance of the class. It doesn't take any parameters.QuestionAnsweringServiceName: Gets or sets the name of the Question Answering service to use by this skill.
DialogName: Gets or sets the dialog's name.
DialogIntent: Gets or sets the dialog's intent.
NormalizeMessage: Gets or sets a value indicating whether the question answering dialog must normalize the message (question) removing specific characters (usually diacritics). Defaults to false.
NormalizeRemoveCharacters: Gets or sets a collection of characters to remove from the message when normalizing.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net5.0 net5.0 was computed. net5.0-windows net5.0-windows was computed. net6.0 net6.0 was computed. net6.0-android net6.0-android was computed. net6.0-ios net6.0-ios was computed. net6.0-maccatalyst net6.0-maccatalyst was computed. net6.0-macos net6.0-macos was computed. net6.0-tvos net6.0-tvos was computed. net6.0-windows net6.0-windows was computed. net7.0 net7.0 was computed. net7.0-android net7.0-android was computed. net7.0-ios net7.0-ios was computed. net7.0-maccatalyst net7.0-maccatalyst was computed. net7.0-macos net7.0-macos was computed. net7.0-tvos net7.0-tvos was computed. net7.0-windows net7.0-windows was computed. net8.0 net8.0 was computed. net8.0-android net8.0-android was computed. net8.0-browser net8.0-browser was computed. net8.0-ios net8.0-ios was computed. net8.0-maccatalyst net8.0-maccatalyst was computed. net8.0-macos net8.0-macos was computed. net8.0-tvos net8.0-tvos was computed. net8.0-windows net8.0-windows was computed. net9.0 net9.0 was computed. net9.0-android net9.0-android was computed. net9.0-browser net9.0-browser was computed. net9.0-ios net9.0-ios was computed. net9.0-maccatalyst net9.0-maccatalyst was computed. net9.0-macos net9.0-macos was computed. net9.0-tvos net9.0-tvos was computed. net9.0-windows net9.0-windows was computed. net10.0 net10.0 was computed. net10.0-android net10.0-android was computed. net10.0-browser net10.0-browser was computed. net10.0-ios net10.0-ios was computed. net10.0-maccatalyst net10.0-maccatalyst was computed. net10.0-macos net10.0-macos was computed. net10.0-tvos net10.0-tvos was computed. net10.0-windows net10.0-windows was computed. |
| .NET Core | netcoreapp3.0 netcoreapp3.0 was computed. netcoreapp3.1 netcoreapp3.1 was computed. |
| .NET Standard | netstandard2.1 netstandard2.1 is compatible. |
| MonoAndroid | monoandroid monoandroid was computed. |
| MonoMac | monomac monomac was computed. |
| MonoTouch | monotouch monotouch was computed. |
| Tizen | tizen60 tizen60 was computed. |
| Xamarin.iOS | xamarinios xamarinios was computed. |
| Xamarin.Mac | xamarinmac xamarinmac was computed. |
| Xamarin.TVOS | xamarintvos xamarintvos was computed. |
| Xamarin.WatchOS | xamarinwatchos xamarinwatchos was computed. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 8.3.0 | 269 | 9/10/2025 |
| 8.3.0-preview-02 | 238 | 9/10/2025 |
| 8.3.0-preview-01 | 233 | 9/8/2025 |
| 8.2.1-preview-08 | 233 | 8/18/2025 |
| 8.2.1-preview-07 | 247 | 8/12/2025 |
| 8.2.1-preview-06 | 248 | 8/11/2025 |
| 8.2.1-preview-05 | 298 | 8/5/2025 |
| 8.2.1-preview-04 | 211 | 7/15/2025 |
| 8.2.1-preview-03 | 214 | 7/14/2025 |
| 8.2.1-preview-02 | 218 | 7/3/2025 |
| 8.2.1-preview-01 | 375 | 3/23/2025 |
| 8.2.0 | 232 | 10/22/2024 |
| 8.2.0-preview-01-m01 | 197 | 9/17/2024 |
| 8.1.9-preview-03 | 206 | 11/19/2024 |
| 8.1.9-preview-02 | 172 | 10/22/2024 |
| 8.1.9-preview-01 | 193 | 10/4/2024 |
| 8.1.8 | 243 | 9/23/2024 |
| 8.1.8-preview-07 | 184 | 9/12/2024 |
| 8.1.8-preview-06 | 184 | 9/11/2024 |