Zongsoft.Intelligences.Web 0.8.0

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

Zongsoft.Intelligences.Web Plugin Library

License NuGet Version NuGet Downloads GitHub Stars

English | 简体中文


Overview

Zongsoft.Intelligences.Web is the AI Web plugin library for the Zongsoft open-source framework. It provides Web API plugin support for AI features.

It exposes assistants, models, chat sessions, history, and streaming chat from Zongsoft.Intelligences as framework MVC endpoints. It does not add an AI provider: at least one assistant and its driver/connection must be configured in the parent plugin.

Installation and Deployment

dotnet add package Zongsoft.Intelligences.Web

Deploy Zongsoft.Intelligences.Web.plugin in a Zongsoft web host. Its manifest depends on Zongsoft.Intelligences, and routes use the AI area.

API Shape

Resource Operations
assistants list assistants or inspect one by name
models list/get provider models and activate a model
chats list/open/abandon sessions and submit a message
history read or clear a session's role/text entries

A streaming chat response is written by WebUtility.EnumerableAsync using System.Net.ServerSentEvents. Clients should process server-sent events incrementally and close the response to cancel generation.

POST /AI/ollama/Chats/my-session/Chat?role=user
Content-Type: text/plain; charset=utf-8

Explain bounded channels in one paragraph.

The route above follows the explicit controller templates; replace ollama and the session id with configured values. Create or look up the session before relying on history.

💡 Generate OpenAPI from the running host for its complete routes and response shapes. AI model payloads are provider-defined and can change independently of this transport layer.

Safety and Operations

🚨 Prompts, history, model identifiers, and generated text may contain sensitive or untrusted content. Authenticate and authorize endpoints, isolate tenants, bound request/history/output size and duration, apply rate limits, and never interpret model output as trusted HTML or commands.

Cancellation is propagated to assistant operations. Session state is owned by the configured assistant implementation; do not assume it is durable or shared across host instances unless that implementation guarantees it.

Plugin-Based Integration

Compose this feature through the host; a package reference supplies compile-time APIs, while plugin loading also requires deployed manifests and runtime assets. See the complete plugin workflow.

Use a Plugins.Web host and deploy the corresponding main adapter listed below. Service/controller discovery runs during host initialization; do not put business logic into Program.cs. Verify the configured endpoint and authorization before accepting requests.

Runtime artifact Source of truth
Zongsoft.Intelligences.Web Zongsoft.Intelligences.Web.plugin
File copying and dependencies Zongsoft.Intelligences.Web.deploy

Add this fragment to an existing host .deploy (retain Main and the host’s other base manifests; do not replace the whole file):

[plugins zongsoft intelligences]
nuget:Zongsoft.Intelligences

[plugins zongsoft intelligences web]
nuget:Zongsoft.Intelligences.Web

Run dotnet deploy against a test deployment as explained in the workflow, with the host's framework, platform, architecture and, where needed, site. Pin compatible versions in real deployments; application dependencies such as databases, caches or commercial runtimes are still separate prerequisites.

Additional artifacts listed by the deployment manifest include Zongsoft.Intelligences.Web.plugin. Retain assemblies, dependencies and satellite resource directories as well. Restart the host after deployment, check plugin loading and service/driver registration, then verify the workflow above; copied files alone do not prove that the feature is active.

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 is compatible.  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
0.8.0 108 10/20/2026
0.7.1 96 10/16/2026
0.7.0 101 10/16/2026
0.6.0 103 10/16/2026
0.5.0 103 10/10/2026
0.4.2 126 9/18/2026
0.4.0 151 12/31/2025
0.3.0 202 10/14/2025
0.2.0 164 10/10/2025
0.1.0 204 9/10/2025
0.0.3 261 8/28/2025
0.0.2 313 8/25/2025