AccessibleAI.Bots.Blobs 0.0.8-dev

This is a prerelease version of AccessibleAI.Bots.Blobs.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package AccessibleAI.Bots.Blobs --version 0.0.8-dev                
NuGet\Install-Package AccessibleAI.Bots.Blobs -Version 0.0.8-dev                
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AccessibleAI.Bots.Blobs" Version="0.0.8-dev" />                
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add AccessibleAI.Bots.Blobs --version 0.0.8-dev                
#r "nuget: AccessibleAI.Bots.Blobs, 0.0.8-dev"                
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
// Install AccessibleAI.Bots.Blobs as a Cake Addin
#addin nuget:?package=AccessibleAI.Bots.Blobs&version=0.0.8-dev&prerelease

// Install AccessibleAI.Bots.Blobs as a Cake Tool
#tool nuget:?package=AccessibleAI.Bots.Blobs&version=0.0.8-dev&prerelease                

AccessibleAI.Bots.Blobs

This package contains utility classes related to bot management using Azure Storage Blobs.

Conversation Logging

This project comes with a ConversationBlobStorage class that can be used to log all conversations to Azure Blob Storage in a human-readable format like the following:

singularity-sally 
Hi, I'm Singularity Sally and I'm here to help you learn data science!

singularity-sally 
Please tell me what you'd like to learn about today.

You @ 9/17/2022 11:38:09 PM 
I want to learn about AI!

singularity-sally 

Artificial Intelligence, or AI, refers to the capability for computers to emulate the decision-making processes of creatures (including humans). AI includes everything in machine learning and deep learning along with conversational AI, game AI, decision trees, and other forms of AI.

Usage

In your Startup.cs file add a using statement to get access to the AccessibleAI.Bots.Blobs namespace:

using AccessibleAI.Bots.Blobs;

Next we'll need to add or expand the existing constructor as follows to create a ConversationBlobStorage class:

private readonly ITranscriptStore _conversationStorage;

public Startup(IConfiguration config)
{
    _conversationStorage = new ConversationBlobStorage(config.GetValue<string>("StorageConnStr"), config.GetValue<string>("ConversationContainerName"));
}

Note that StorageConnStr and ConversationContainerName refer to settings in your appsettings.json file. Customize these values with whatever settings you're using.

Also note that the storage container must already exist. You can create it using Azure Storage Explorer or the Azure Portal.

Next we'll need to add the following to the ConfigureServices method:

services.AddSingleton(_conversationStorage);
services.AddSingleton<IMiddleware, TranscriptLoggerMiddleware>(_ => new TranscriptLoggerMiddleware(_conversationStorage));

Next, in your bot's AdapterWithErrorHandler or similar CloudAdapter constructor, you'll need to add an ITranscriptStore transcriptLogger parameter to the parameter list.

After that, you should add the following line:

Use(new TranscriptLoggerMiddleware(transcriptLogger));

Once you deploy your app, new conversation logs will appear in your Azure Storage container.

Note that you may want to delete old months and years and only store the most recent conversations. Right now there is no provided mechanism in this library for doing that.

Product Compatible and additional computed target framework versions.
.NET net5.0 was computed.  net5.0-windows was computed.  net6.0 was computed.  net6.0-android was computed.  net6.0-ios was computed.  net6.0-maccatalyst was computed.  net6.0-macos was computed.  net6.0-tvos was computed.  net6.0-windows was computed.  net7.0 was computed.  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. 
.NET Core netcoreapp3.0 was computed.  netcoreapp3.1 was computed. 
.NET Standard netstandard2.1 is compatible. 
MonoAndroid monoandroid was computed. 
MonoMac monomac was computed. 
MonoTouch monotouch was computed. 
Tizen tizen60 was computed. 
Xamarin.iOS xamarinios was computed. 
Xamarin.Mac xamarinmac was computed. 
Xamarin.TVOS xamarintvos was computed. 
Xamarin.WatchOS xamarinwatchos was computed. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

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
0.0.16-dev 131 10/11/2022
0.0.14-dev 123 9/22/2022
0.0.13-dev 112 9/22/2022
0.0.12-dev 114 9/22/2022
0.0.11-dev 104 9/21/2022
0.0.10-dev 102 9/21/2022
0.0.9-dev 122 9/20/2022
0.0.8-dev 127 9/19/2022
0.0.1-dev 152 9/18/2022

Initial version