![]() |
VOOZH | about |
dotnet add package AIComply.Blazor.Chat --version 1.0.8
NuGet\Install-Package AIComply.Blazor.Chat -Version 1.0.8
<PackageReference Include="AIComply.Blazor.Chat" Version="1.0.8" />
<PackageVersion Include="AIComply.Blazor.Chat" Version="1.0.8" />Directory.Packages.props
<PackageReference Include="AIComply.Blazor.Chat" />Project file
paket add AIComply.Blazor.Chat --version 1.0.8
#r "nuget: AIComply.Blazor.Chat, 1.0.8"
#:package AIComply.Blazor.Chat@1.0.8
#addin nuget:?package=AIComply.Blazor.Chat&version=1.0.8Install as a Cake Addin
#tool nuget:?package=AIComply.Blazor.Chat&version=1.0.8Install as a Cake Tool
This is a blazor component that implements a chat conversation, consuming an IChatClient as defined in Microsoft.Extensions.ai. It is based on the Chat code in this example. This component can display responses that are plain text, Markdown and Adaptive Cards.
There is also a debug facility that can record a series of responses and replay them.
The component uses Blazor FluentUI.
You will need to follow the instructions here to add the FluentUI styles and scripts to your project: FluentUI Blazor.
You will need to follow the instructions here to support dialogs to add support for dialogs.
The component has a debug mode that can be enabled by setting the DebugMode property to true. In this mode, you can record a series of responses and replay them later. This is useful for testing and debugging your chat interactions.
In order to use it you can implement an interface of the following form:
public interface IDebugHistoryStore
{
Task SaveHistory(List<ChatMessage> history, string name);
Task<List<string>> GetAllHistoryNames();
void ClearHistory();
Task<List<ChatMessage>> GetNamedHistory(string name);
Task<List<ChatMessage>> GetCurrentHistory();
Task SetCurrentHistory(List<ChatMessage>? history);
}
An example implementation is provided in the DebugHistoryStore class. You can use this class to save and retrieve chat history from browser local storage.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net9.0 net9.0 is compatible. 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. |
This package is not used by any NuGet packages.
This package is not used by any popular GitHub repositories.