AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt
1.0.0-beta.6
See the version list below for details.
dotnet add package AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt --version 1.0.0-beta.6
NuGet\Install-Package AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt -Version 1.0.0-beta.6
<PackageReference Include="AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt" Version="1.0.0-beta.6" />
paket add AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt --version 1.0.0-beta.6
#r "nuget: AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt, 1.0.0-beta.6"
// Install AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt as a Cake Addin #addin nuget:?package=AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt&version=1.0.0-beta.6&prerelease // Install AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt as a Cake Tool #tool nuget:?package=AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt&version=1.0.0-beta.6&prerelease
AzureAI.Community.OpenAI.Bot.Builder.SuggestionPrompt - Beta
OpenAISuggestionPrompt
The OpenAISuggestionPrompt is a utility for generating suggestion questions based on a prompt using Azure OpenAI services. This prompt can be integrated into your Bot Framework applications to provide question prompts for conversational applications.
Installation
To get started with the OpenAISuggestionPrompt, you can install the NuGet package from the following link:
Implementation in Bot Framework SDK
To implement the OpenAISuggestionPrompt in your Bot Framework SDK application, follow these steps:
Add the OpenAISuggestionPrompt dialog to your bot's dialog set, providing the necessary configuration parameters:
AddDialog(new OpenAISuggestionPrompt( nameof(OpenAISuggestionPrompt), Settings.Key, // OpenAI Key Settings.EndPoint, // OpenAI endpoint Settings.DeploymentName, // OpenAI DeploymentName maxTokens: 100, // OpenAI maxtokens noOfSuggestion: 3 // Number of questions to be generated ));
Key: Your OpenAI API Key.<br> Endpoint: The OpenAI service endpoint.<br> DeploymentName: Your OpenAI Deployment Name.<br> maxTokens: Maximum tokens for OpenAI.<br> noOfSuggestion: The number of questions to be generated.<br>
- Set the prompt for generating questions using the OpenAISuggestionPrompt. For example:
var options = new PromptOptions()
{
Prompt = MessageFactory.Text(
"A bot framework is a set of tools and services that help developers create and manage conversational applications, such as chatbots or virtual assistants")
};
- Add the OpenAISuggestionPrompt to your bot's dialog stack:
return await stepContext.PromptAsync(nameof(OpenAISuggestionPrompt), options, cancellationToken);
Now, your bot is ready to generate suggestion questions based on the provided prompt using the OpenAISuggestionPrompt. You can customize the prompt and other settings according to your specific application requirements.
Feel free to explore the NuGet package and integrate this tool into your Bot Framework SDK projects to enhance your conversational applications with suggestion questions.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net7.0 is compatible. net7.0-android was computed. net7.0-ios was computed. net7.0-maccatalyst was computed. net7.0-macos was computed. net7.0-tvos was computed. net7.0-windows was computed. net8.0 was computed. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. |
-
net7.0
- Azure.AI.OpenAI (>= 1.0.0-beta.8)
- Microsoft.Bot.Builder.Dialogs (>= 4.21.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
Version | Downloads | Last updated |
---|---|---|
1.0.0-beta.7 | 216 | 10/31/2023 |
1.0.0-beta.6 | 55 | 10/31/2023 |
1.0.0-beta.5 | 78 | 10/31/2023 |
1.0.0-beta.4 | 70 | 10/31/2023 |
1.0.0-beta.3 | 99 | 10/30/2023 |