feat(ai): MEAI Phase 1 — IChatClient pipeline behind feature flag - #231
Draft
IanFrelinger wants to merge 2 commits into
Draft
feat(ai): MEAI Phase 1 — IChatClient pipeline behind feature flag#231IanFrelinger wants to merge 2 commits into
IanFrelinger wants to merge 2 commits into
Conversation
Map current model invocation, sanitization, audit, policy packs, RAG, and host DI seams to proposed Microsoft.Extensions.AI concepts for the governed pipeline migration. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
Add Nexo.AI.Pipeline with keyed local:ollama and local:onnx chat clients, wire optional registration through hosting Phase 13b when Nexo:UseMeaiPipeline is enabled (default off), and cover registration with FakeChatClient tests. Legacy IProviderFactory path remains default. Co-authored-by: IanFrelinger <IanFrelinger@users.noreply.github.com>
This was referenced Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Phase 1 of the MEAI governed pipeline migration: introduces
Nexo.AI.Pipelinewith keyedIChatClienttargets for local Ollama and local LLamaSharp (local:onnx), registered behindNexo:UseMeaiPipeline(default off). LegacyIProviderFactorypath is unchanged.Depends on / includes Phase 0 notes (
docs/meai-migration-notes.md). Prefer merging #230 first or take this PR which already contains those notes.Changes
src/Nexo.AI.Pipeline(net8.0;net9.0):OllamaHttpChatClient— thin HTTP/api/chatadapter (OllamaSharp deferred: Roslyn 5 analyzer vs repo C# 12 pin)LlamaSharpChatClient— GGUF offline target keyed aslocal:onnxAddNexoMeaiPipeline+AddKeyedChatClient; raw clients never registered in DIFakeChatClientfor testsNexoHostingOptions.UseMeaiPipeline/Nexo:UseMeaiPipeline/NEXO_USE_MEAI_PIPELINEMicrosoft.Extensions.AI10.7.0; bump related Extensions/System.Text.*10.0.8 → 10.0.9src/Nexo.Tests.AI.Pipeline(7 tests × net8/net9)docs/meai-migration-notes.mdwith Phase 1 discoveriesTesting
Testing strategy (blast radius)
Nexo.Tests.AI.Pipelinemake kernel-gate(optional follow-up for full kernel)Checklist