MgSoftDev.KnowledgeHub.Blazor.Chat 1.0.0

dotnet add package MgSoftDev.KnowledgeHub.Blazor.Chat --version 1.0.0
                    
NuGet\Install-Package MgSoftDev.KnowledgeHub.Blazor.Chat -Version 1.0.0
                    
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="MgSoftDev.KnowledgeHub.Blazor.Chat" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="MgSoftDev.KnowledgeHub.Blazor.Chat" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="MgSoftDev.KnowledgeHub.Blazor.Chat" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add MgSoftDev.KnowledgeHub.Blazor.Chat --version 1.0.0
                    
#r "nuget: MgSoftDev.KnowledgeHub.Blazor.Chat, 1.0.0"
                    
#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.
#:package MgSoftDev.KnowledgeHub.Blazor.Chat@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=MgSoftDev.KnowledgeHub.Blazor.Chat&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=MgSoftDev.KnowledgeHub.Blazor.Chat&version=1.0.0
                    
Install as a Cake Tool

MgSoftDev.KnowledgeHub.Blazor.Chat

Un chat que responde con la documentación de MgSoftDev.KnowledgeHub, dentro de tu propia aplicación Blazor y con los permisos del usuario que tiene la sesión abierta.

  • Funciona con cualquier IChatClient: Claude con el SDK de Anthropic, OpenRouter u OpenAI con Microsoft.Extensions.AI.OpenAI, u otro proveedor.
  • Solo ve lo que ese usuario puede leer, después de renderizar las plantillas.
  • El Markdown de la respuesta se pinta con componentes, nunca como HTML crudo. Un enlace solo queda activo si lleva a otra página de la documentación o a una dirección http(s).
  • Si tu app ya tiene un chat propio, no necesitas el componente: suma IKnowledgeHubAiToolProvider.GetReadTools() a sus herramientas y la app sigue con un solo chat.

Blazor Server y WPF

builder.Services.AddKnowledgeHubAiTools();
builder.Services.AddKnowledgeHubChat();
builder.Services.AddChatClient(miClienteDeClaude);
<KnowledgeHubChat OnPageRequested="AbrirPagina" />

Blazor WebAssembly

En el navegador solo viaja la conversación. La clave del proveedor, las herramientas y el bucle de llamadas viven en el servidor, que responde como el usuario autenticado.

// Servidor
app.MapKnowledgeHubChat().RequireAuthorization();

// Cliente
builder.Services.AddKnowledgeHubChat();
builder.Services.AddKnowledgeHubChatHttpClient();

En los dos casos enlaza la hoja de estilos:

<link rel="stylesheet" href="_content/MgSoftDev.KnowledgeHub.Blazor.Chat/knowledgehub-chat.css" />
Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  net10.0-windows 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
1.0.0 181 9/13/2026
0.23.0-preview.1 84 9/13/2026