Moberg.Beacon.AI
4.5.0.3
See the version list below for details.
dotnet add package Moberg.Beacon.AI --version 4.5.0.3
NuGet\Install-Package Moberg.Beacon.AI -Version 4.5.0.3
<PackageReference Include="Moberg.Beacon.AI" Version="4.5.0.3" />
<PackageVersion Include="Moberg.Beacon.AI" Version="4.5.0.3" />
<PackageReference Include="Moberg.Beacon.AI" />
paket add Moberg.Beacon.AI --version 4.5.0.3
#r "nuget: Moberg.Beacon.AI, 4.5.0.3"
#:package Moberg.Beacon.AI@4.5.0.3
#addin nuget:?package=Moberg.Beacon.AI&version=4.5.0.3
#tool nuget:?package=Moberg.Beacon.AI&version=4.5.0.3
Beacon.AI
AI-powered extensions for Beacon providing LLM-based documentation generation, alert creation, and autonomous AI actors.
Overview
Beacon.AI is an optional add-on package for Beacon that adds artificial intelligence capabilities:
- Automatic Documentation Generation: Generate comprehensive database documentation using LLMs
- Natural Language Alerts: Convert plain English descriptions to SQL queries
- AI Actors: Autonomous agents that monitor and manage queries/subscriptions
- Multi-Agent Workflows: Parallel documentation generation using specialized domain agents
Installation
dotnet add package Beacon.AI
Supported LLM Providers
- OpenAI (GPT-4, GPT-4 Turbo, GPT-4o)
- Anthropic Claude (Claude 3.5 Sonnet, Claude 3 Opus)
- Azure OpenAI (GPT-4 deployments)
- AWS Bedrock (Claude and other Bedrock-hosted models)
The active provider is runtime-swappable via admin settings — LlmProviderManager holds the current
provider and DelegatingLlmProvider proxies calls, so no provider-specific assumptions are baked into handlers.
All LLM calls are funneled through a request queue that enforces a configurable concurrency limit.
Configuration
Basic Setup
builder.Services.AddBeacon(builder.Configuration, options =>
{
options.UsePostgreSql(connectionString, "beacon");
options.UseAI = true; // Enable AI features
});
LLM Configuration (appsettings.json)
{
"Beacon": {
"LLM": {
"Provider": "OpenAI",
"ApiKey": "your-api-key-here",
"Model": "gpt-4o",
"BaseUrl": "https://api.openai.com/v1"
}
}
}
Provider Examples
OpenAI:
{
"Provider": "OpenAI",
"Model": "gpt-4o",
"ApiKey": "sk-..."
}
Anthropic Claude:
{
"Provider": "Anthropic",
"Model": "claude-3-5-sonnet-20241022",
"ApiKey": "sk-ant-..."
}
Azure OpenAI:
{
"Provider": "AzureOpenAI",
"Model": "gpt-4",
"ApiKey": "your-azure-key",
"BaseUrl": "https://your-resource.openai.azure.com"
}
Features
1. Documentation Generation
Generate comprehensive database documentation automatically:
// Via MediatR
var documentation = await mediator.Send(new GenerateDocumentationCommand
{
DataSourceId = dataSourceId,
UserId = userId,
IncludeSampleData = false
});
// Export to PDF, HTML, or Markdown
await mediator.Send(new ExportDocumentationToPdfCommand
{
DocumentationId = documentation.Id,
OutputPath = "docs/database.pdf"
});
2. Multi-Agent Documentation
Use multiple specialized AI agents working in parallel:
var documentation = await mediator.Send(new GenerateMultiAgentDocumentationCommand
{
DataSourceId = dataSourceId,
UserId = userId,
MaxConcurrentAgents = 5,
Progress = progressReporter
});
3. Natural Language Alerts
Create alerts from plain English:
var alert = await mediator.Send(new GenerateAlertCommand
{
DataSourceId = dataSourceId,
Description = "Alert me when daily failed logins exceed 100",
UserId = userId
});
4. AI Actors
Autonomous agents that monitor and optimize your database:
var actor = await mediator.Send(new CreateAiActorCommand
{
Name = "Performance Monitor",
Instructions = "Monitor slow queries and create subscriptions for anything over 5 seconds",
DataSourceId = dataSourceId,
RequiresApproval = true
});
Dependencies
This package includes:
- Anthropic - Claude API client
- Azure.AI.OpenAI - Azure OpenAI client
- OpenAI - OpenAI API client
- AWSSDK.BedrockRuntime - AWS Bedrock client
- QuestPDF - PDF generation
- Markdig - Markdown processing
- Microsoft.Extensions.AI - Unified AI abstractions
Important Notes
⚠️ AI features are experimental and may produce incorrect or incomplete results. Always review and validate AI-generated content before use in production.
⚠️ API Costs: LLM API calls incur costs. Monitor your usage and set appropriate rate limits.
⚠️ Required Configuration:
- An
EncryptionKeymust be configured inappsettings.jsonfor secure storage of API keys - LLM provider API key must be configured
Documentation
For complete documentation, visit: https://moberghr.github.io/beacon
License
GNU AGPL v3.0 or Commercial license - see LICENSE file for details
Support
- GitHub Issues: https://github.com/moberghr/beacon/issues
- Documentation: https://moberghr.github.io/beacon
Related Packages
- Beacon.Core - Core library (required)
- Beacon.Core.PostgreSql - PostgreSQL support
- Beacon.Core.SqlServer - SQL Server support
- Beacon.Api - REST minimal-API endpoints + OpenAPI for the React shell
- Beacon.MCP - MCP server (tools + resources) for AI assistants
- Beacon.UI - React SPA (Vite + TypeScript + Tailwind) shipped as a Razor Class Library, served at root
/
| Product | Versions 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. |
-
net10.0
- Anthropic (>= 12.53.0)
- AWSSDK.BedrockRuntime (>= 4.0.101.8)
- Azure.AI.OpenAI (>= 2.1.0)
- Markdig (>= 0.45.0)
- MediatR (>= 12.5.0)
- Microsoft.Agents.AI (>= 1.23.0)
- Microsoft.Agents.AI.OpenAI (>= 1.23.0)
- Microsoft.Agents.AI.Workflows (>= 1.23.0)
- Microsoft.EntityFrameworkCore (>= 10.0.12)
- Microsoft.Extensions.AI (>= 10.10.0)
- Microsoft.Extensions.Http (>= 10.0.12)
- Microsoft.ML.OnnxRuntime (>= 1.30.0)
- Microsoft.ML.Tokenizers (>= 2.0.0)
- Moberg.Beacon.Core (>= 4.5.0.3)
- OpenAI (>= 2.14.0)
NuGet packages (4)
Showing the top 4 NuGet packages that depend on Moberg.Beacon.AI:
| Package | Downloads |
|---|---|
|
Moberg.Beacon.MCP
MCP (Model Context Protocol) server for Beacon. Exposes data sources, knowledge graph, and query capabilities to AI tools via the Streamable HTTP transport. |
|
|
Moberg.Beacon.AI.Embeddings.Onnx
Local in-process ONNX text embeddings for Beacon semantic retrieval. Optional add-on for Beacon AI; no network egress. |
|
|
Moberg.Beacon.Gateway
Beacon as the MCP gateway for an existing ASP.NET Core application: one call wires Beacon's MCP server at /beacon/mcp for the application's own users (Entra delegated tokens), its endpoints as tools and its documents as grounding — no data sources, no SQL, no Beacon sign-in. |
|
|
Moberg.Beacon.AI.Bedrock
Amazon Bedrock LLM provider for Beacon AI. Optional add-on for Beacon AI. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 5.1.0 | 70 | 10/26/2026 |
| 5.0.0 | 123 | 10/21/2026 |
| 4.6.0.2 | 97 | 10/20/2026 |
| 4.6.0.1 | 90 | 10/20/2026 |
| 4.6.0 | 113 | 10/20/2026 |
| 4.5.0.3 | 120 | 10/8/2026 |
| 4.5.0.2 | 102 | 10/7/2026 |
| 4.5.0.1 | 72 | 10/5/2026 |
| 4.5.0 | 75 | 9/28/2026 |
| 4.3.0.1 | 73 | 9/24/2026 |
| 4.3.0 | 79 | 9/23/2026 |
| 4.2.0.1 | 86 | 9/22/2026 |
| 4.2.0 | 80 | 9/22/2026 |
| 4.1.0.1 | 90 | 9/11/2026 |
| 4.1.0 | 89 | 9/11/2026 |
| 4.0.0 | 110 | 8/20/2026 |