VOOZH about

URL: https://www.nuget.org/packages/CircleAI.Core/

⇱ NuGet Gallery | CircleAI.Core 3.0.1


ο»Ώ

πŸ‘ Image
CircleAI.Core 3.0.1

dotnet add package CircleAI.Core --version 3.0.1
 
 
NuGet\Install-Package CircleAI.Core -Version 3.0.1
 
 
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="CircleAI.Core" Version="3.0.1" />
 
 
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="CircleAI.Core" Version="3.0.1" />
 
Directory.Packages.props
<PackageReference Include="CircleAI.Core" />
 
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 CircleAI.Core --version 3.0.1
 
 
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: CircleAI.Core, 3.0.1"
 
 
#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 CircleAI.Core@3.0.1
 
 
#: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=CircleAI.Core&version=3.0.1
 
Install as a Cake Addin
#tool nuget:?package=CircleAI.Core&version=3.0.1
 
Install as a Cake Tool
The NuGet Team does not provide support for this client. Please contact its maintainers for support.

Circle AI

On-device companion AI for the Aether Protocol ecosystem. ~100 C# modules covering inference, multi-agent orchestration, memory + persona, voice, tooling, mesh transport, and 50+ domain adapters β€” plus an OpenAI-compatible self-hosted inference server you can drop behind a load balancer.

Built around one architectural promise: the SDK has zero model knowledge. ModelScope's catalog is the source of truth, discovered at runtime. A new Qwen / Kimi / DeepSeek variant lands on ModelScope, the SDK picks it up on next refresh. NuGet sleeps β€” releases are for SDK bugs and new runtime backends, not "we support a new model."

See for why.


What's in here

🧠 Inference

The trinity every consumer binds to:

Type Where Purpose
IChatGenerator CircleAI.Inference The atomic seam: messages in, tokens out
IInferenceBridge CircleAI.Hosting.InferenceBridge Lifecycle + descriptor wrapper around a generator
IAIService CircleAI.Hosting The long-lived companion service β€” RAG, persona, tools, observers

Runtime: Alibaba MNN (Apache-2.0) on every platform. Models: Qwen 3+, Kimi-VL, DeepSeek, GLM β€” discovered through ModelScope, not pinned in source. See for the full Chinese-sovereign rationale.

πŸ–₯️ CircleAI.Inference.Server

OpenAI-compatible HTTP server. Endpoints: /v1/chat/completions (SSE streaming), /v1/embeddings, /v1/companion/*, /v1/diagnostics, /v1/healthz, /v1/readyz. JWT and API-key auth out of the box. Ships with a Dockerfile, a systemd unit, and a Windows-service install script.

Drop it behind a load balancer and any OpenAI-SDK consumer talks to it unchanged.

πŸ‘₯ Companion + Memory

  • CircleAI.Companion β€” long-running session loop with proactive turn generation and mesh-state sync.
  • CircleAI.Memory β€” episodic memory + RAG context builder, persona evolution, affect state, goal tracking, feedback signals.
  • CircleAI.Orchestration β€” multi-agent loop (LokiOrchestrator) with quality gates and concurrent dispatch.

πŸ”§ Tools + Skills + Voice

  • CircleAI.Tools β€” IToolBridge for function calling. Built-in HttpToolBridge maps REST APIs to tool definitions.
  • CircleAI.Skills β€” pluggable capability surface the model can invoke contextually.
  • CircleAI.Voice β€” ONNX TTS / STT pipeline (the only ONNX dependency in the codebase β€” text inference stays MNN).

πŸ•ΈοΈ Networking + Security

  • CircleAI.Networking.* β€” pluggable transports (HTTP / WebSocket / AetherNet are production; BLE / DTN / NearLink are scaffolded). ITransportSelector picks per-message based on connectivity, not by consumer choice.
  • CircleAI.Security.* β€” mesh-directive-driven chat refusal, AetherMesh bindings.

πŸ›οΈ β‰ˆ50 domain adapters

CircleAI.Beauty, CircleAI.Construction, CircleAI.Faith, CircleAI.Family, CircleAI.Fitness, CircleAI.Food, CircleAI.Healthcare, CircleAI.RealEstate, CircleAI.Tourism, CircleAI.Tradesperson, … β€” each provides domain-specific system-prompt context, knowledge facets, and lifecycle hooks. The companion engine loads only the adapters whose required sensors / UI fit the host device.


Quick install β€” C# (.NET 9 / .NET 10)

dotnet add package CircleAI.Inference.Server # if you want the HTTP server
dotnet add package CircleAI.Hosting # if you want the in-process service

Zero-knob consumer

using CircleAI.Hosting;

// The SDK figures out: which model fits this device, what context window
// it can sustain, how many agents it can dispatch concurrently, which
// KV-compression mode to use. The consumer only states intent.
var ai = new AIService(new AIOptions
{
 SystemPrompt = "You are B!, the helpful one.",
 RequiredCapabilities = ChatCapability.Default | ChatCapability.Tools,
});

await ai.StartAsync();

var answer = await ai.AskAsync("What's the capital of Morocco?");
Console.WriteLine(answer);

That's it. No ModelId. No ContextSize. No MaxConcurrency. The SDK probes the device, queries the ModelScope catalog, picks the highest-quality bundle that fits + satisfies the capability flags, and keeps that decision live as the catalog refreshes.

For the full picture (overrides, injection points, observer events, bring-your-own-runtime), see .


Self-hosted inference server

docker run -d -p 5050:5050 \
 -v ~/.circleai/models:/var/lib/circleai/models \
 ghcr.io/bhengubv/circleai-inference-server:latest
# Drop-in OpenAI replacement
curl http://localhost:5050/v1/chat/completions \
 -H "Authorization: Bearer $TOKEN" \
 -H "Content-Type: application/json" \
 -d '{"model":"auto","messages":[{"role":"user","content":"Hi"}]}'

"model":"auto" β‡’ IModelSelector.BestFit(deviceProbe, ChatCapability.Default). The server picks; you don't.

Full deployment guide in .


Sister repository β€” the 10-language portable kernel

The portable Circle AI kernel (AffectState math, KnownLanguages registry, ICompanionSession contracts) ships in 10 languages so every Aether node can host the companion stack natively β€” C#, Python, TypeScript, Go, Kotlin, Swift, Rust, C, Android (Kotlin), HarmonyOS (ArkTS).

The 10-language SDK lives alongside the C# framework in this repository. Per-language quickstarts: see .


License

MIT. See .


Pointers

Doc Purpose
Why ModelScope is the catalog and NuGet sleeps
The full Chinese-sovereign stack rationale
The trinity, the three injection points, worked example
MNN native-runtime setup per platform
Open work, current priorities
Per-language quickstart for the portable kernel
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 is compatible.  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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages (57)

Showing the top 5 NuGet packages that depend on CircleAI.Core:

Package Downloads
CircleAI.Inference

On-device LLM inference for Circle β€” 2.0.2 is a no-API-change refresh aligned with the 2.0.2 bundle. Carries forward 2.0.0's RT-08 fallback chain, 1.7.0's PowerBudget / snapshot-restore / prefix-cache, and the <think>β†’reasoning_content router. mnnbridge 1.2.0 native payload unchanged.

CircleAI.Memory

On-device episodic + multimodal memory, affect state, context window management, hierarchical sleep-cycle consolidation, TurboQuant compression, cross-device sync, and the CompanionRuntime orchestrator for Circle AI agents.

CircleAI.Search

Vector search over local SQLite data for Circle AI retrieval-augmented generation.

CircleAI.Embeddings

On-device text embeddings for Circle AI. Sovereign-origin embedder (BGE / Qwen-Embedding) for fully offline semantic search.

CircleAI.Hosting

DI wiring + proactive reasoning host for Circle AI β€” 2.0.3 adds the CircleAI.Hosting.Tools namespace: ToolDescriptor + IToolCatalog + IToolProvider + IToolExecutor + InMemoryToolCatalog (keyword-substring search) + ToolCatalogExtensions.ImportFromAsync. Pattern-port skeleton from composio (MIT) under Apache 2.0; downstream consumers (circle-concierge, Observer's IObserverTool) can build IToolProvider impls now. Full catalog (semantic search + bundled SaaS integrations) lands in 2.5.0. Carries forward 2.0.1's Generative UI plug point and 2.0.0's RT-04 brownout + RT-08 fallback chain.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
3.0.1 54 6/17/2026
3.0.0 139 6/17/2026
1.5.0 128 6/9/2026
1.4.0 310 6/9/2026
1.2.0 1,413 6/6/2026
1.0.0 365 6/3/2026