Bitzsoft.Integrations.AI.All 1.2.6

dotnet add package Bitzsoft.Integrations.AI.All --version 1.2.6
                    
NuGet\Install-Package Bitzsoft.Integrations.AI.All -Version 1.2.6
                    
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="Bitzsoft.Integrations.AI.All" Version="1.2.6" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Bitzsoft.Integrations.AI.All" Version="1.2.6" />
                    
Directory.Packages.props
<PackageReference Include="Bitzsoft.Integrations.AI.All" />
                    
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 Bitzsoft.Integrations.AI.All --version 1.2.6
                    
#r "nuget: Bitzsoft.Integrations.AI.All, 1.2.6"
                    
#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 Bitzsoft.Integrations.AI.All@1.2.6
                    
#: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=Bitzsoft.Integrations.AI.All&version=1.2.6
                    
Install as a Cake Addin
#tool nuget:?package=Bitzsoft.Integrations.AI.All&version=1.2.6
                    
Install as a Cake Tool

Bitzsoft.Integrations.AI.All

Bitzsoft AI 套件 1.2.6 独立运行期聚合元包(meta-package),一次安装即可通过传递依赖引入全部 11 个活跃运行期 Bitzsoft.Integrations.AI.* 包,适合需要完整企业级 AI-Hermes 编排、MCP 双端、知识检索、Agent Framework 与 ASP.NET Core 托管能力的 .NET 8 / .NET 10 宿主。

功能范围与边界

  • 仅包含活跃运行期 AI 包:不包含已弃用的 4 个旧包(SemanticKernel、AgentFramework、McpServer、RAG),不包含跨 net5 原生二进制包 Bitzsoft.Integrations.Ocr,不包含仅供测试工程引用的 Bitzsoft.Integrations.AI.Testing,亦不包含按需安装的分布式 Redis 状态适配器 Bitzsoft.Integrations.AI.Redis;
  • 纯元包零多余程序集:IncludeBuildOutput=false,全线成员包保持 net8.0;net10.0 与 IsAotCompatible=true。

安装

dotnet add package Bitzsoft.Integrations.AI.All

包含的 11 个运行期包

层级 包名 职责
L0 抽象 Bitzsoft.Integrations.AI.Abstractions 统一模型契约、语音/图像/多模态附件/主动通知信封/脱敏/FinOps/清单与零外网代码沙箱共享抽象
L1 驱动 Bitzsoft.Integrations.AI OpenAI 兼容多租户驱动、多密钥加权通道池、并发舱隔离、Opt-In 零外网代码沙箱客户端(HttpBrokerCodeSandboxRunner / CubeSandboxCodeRunner,含受控 Shell 双锁与资源硬契约)、原生 OTel 指标、故障转移、思考策略与 Hermes 非对称推理调度
L1 驱动 Bitzsoft.Integrations.AI.Anthropic Anthropic Claude 原生 Messages 驱动(含隐私键与 Retry-After 透传)
L2 治理 Bitzsoft.Integrations.AI.Governance 数据分级与视觉/推理联合路由、配额守卫 v3 双桶滑动窗与月度硬预算、受控工具管线、出站脱敏、Aho-Corasick 内容安全审核与加权注入阻断、标准 BM25F 混合发现、聚合引擎与 Opt-In 零外网沙箱元工具
L2 技能 Bitzsoft.Integrations.AI.Skills L0/L1/L2 渐进式技能目录、关联资源协议与受控沙箱草稿技能结晶
L2 知识 Bitzsoft.Integrations.AI.Knowledge 租户 ACL 知识存储、Qdrant 分布式 SparseBm25Vector / 厂商中立 VectorData 适配、分段锁倒排词法双路 RRF 检索、神经重排与驻留旁路、表格表头继承分块、出站脱敏向量包装与引用格式化
L2 MCP Bitzsoft.Integrations.AI.Mcp AOT 兼容 MCP 2.4+ Client & Server 全协议面(Tools/官方 SEP-2663 Tasks 桥接/防 Rug-Pull 锁定/通用表单 Elicitation/Resources/Prompts/Sampling/Roots/OAuth 2.1 与 mTLS)与多租户安全治理
L3 会话 Bitzsoft.Integrations.AI.Conversation 会话/分支/工具配对保护压缩/水合、多模态 Token 估算与前缀稳定性守卫、声明式 UI 与多模态视觉双路路由、纯 BCL 深度文档工具组及沙箱工作区一键挂载、中文数字/币种/四舍五入数值接地核查、工作草稿板、Memory v2、显性反馈、FinOps 与 Hermes 工具循环(含乒乓与漂移停滞检测)
L3 Harness Bitzsoft.Integrations.AI.Hermes 九阶段钩子管线、控制面(NHI/Kill-Switch/策略/补偿账本)、长程检查点与交接、事件触发总线、全渠道 HITL、旁路产物仓与十进制分析、有界防环 BFS 工具子图裁剪、句/段作用域核查器、轨迹录制与批处理二次脱敏汇、异步蒸馏、Goal Mode 与主动式定时代理、灰度路由与 OTel 嵌套追踪
L4 智能体 Bitzsoft.Integrations.AI.Agents Microsoft Agent Framework 1.28 统一集成、AddBitzEnterpriseAgentHarness() 一键企业预设、.UseBitzHermesHarness()、并行/ForEach/SubWorkflow/Handoff/EvaluatorLoop DAG 工作流与持久化会话协调
L5 Web 宿主 Bitzsoft.Integrations.AI.AspNetCore SSE/NDJSON、纯 AOT AG-UI 桥接(含 STATE_DELTA/Interrupt/Client Tools)、纯 AOT A2A 发现与 JSON-RPC 双端、产物行查询端点、RFC 9457、Claims 绑定、MCP 产物/技能资源桥接、OAuth PRM、Day-2 只读诊断与 MVC MCP 发现

配置示例

{
  "AI": {
    "Hermes": {
      "SpillThresholdChars": 8192,
      "MaxSubgraphTools": 16
    }
  }
}

依赖注入注册

完整最小示例

using Bitzsoft.Integrations.AI;
using Bitzsoft.Integrations.AI.Agents;
using Bitzsoft.Integrations.AI.Hermes;
using Bitzsoft.Integrations.AI.Knowledge;
using Bitzsoft.Integrations.AI.Mcp;
using Bitzsoft.Integrations.Core;
using Microsoft.Extensions.DependencyInjection;

var services = new ServiceCollection();
services.AddInMemoryIntegrationCredentials();
services.AddBitzChatClient(options =>
{
    options.ProviderId = "deepseek-dev";
    options.ProfileId = "deepseek";
    options.ModelId = "deepseek-chat";
});
services.AddBitzAIHermes(options =>
{
    options.SpillThresholdChars = 8_192;
    options.MaxSubgraphTools = 16;
});
services.AddInMemoryBitzAgentSessions();
services.AddBitzsoftAIAgent(options =>
{
    options.Name = "enterprise-assistant";
    options.Description = "统一 AI 套件只读智能助手";
    options.Instructions = "仅基于授权数据源准确作答。";
});

await using ServiceProvider provider = services.BuildServiceProvider(
    new ServiceProviderOptions { ValidateScopes = true, ValidateOnBuild = true });

AIHermesRuntimeInfo hermes = provider.GetRequiredService<AIHermesRuntimeInfo>();
Console.WriteLine($"AI.All ready: Hermes={hermes.PackageVersion}, MCP={typeof(IMcpClientFactory).Name}, Knowledge={typeof(IKnowledgeStore).Name}");

测试与按需选装

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  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.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  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.2.6 0 12/3/2026
1.2.5 96 11/29/2026
1.2.4 93 11/27/2026
1.2.3 109 11/24/2026
1.2.2 104 11/23/2026
1.2.0 106 11/21/2026