Provider-Agnostic Chat Gateway
Switch between Ollama, OpenAI, OpenRouter, and Azure OpenAI through configuration while keeping one chat interface in your ASP.NET Core application.
IChatClientGitHub Build AI applications in C#. Work from a runnable sample, inspect the implementation, and verify what happens when a model, tool, or dependency behaves unexpectedly.
Start with the gateway for model access, or jump to the part of your application you’re working on. Each guide links to its companion C# project.
Switch between Ollama, OpenAI, OpenRouter, and Azure OpenAI through configuration while keeping one chat interface in your ASP.NET Core application.
IChatClientGitHub Combine keyword matches and vector similarity. Use Reciprocal Rank Fusion to return one ranked list when the two searches disagree.
PostgreSQLGitHub Build an agent that consults three read-only tools. Keep observed facts separate from inferences when it answers a follow-up about the same incident.
Agent FrameworkGitHub Expose three tools over stdio, then discover and invoke them from an MCP client. Run the end-to-end check without a model or an API key.
MCP C# SDKGitHub Replay 12 incident cases against baseline, candidate, and repaired prompts. Use per-field checks to decide whether a prompt change should ship.
Offline replayGitHub Follow one request from a model call through an evidence tool to a second API. Find a slow dependency and explain how Triage can return HTTP 200 when Evidence returns 503.
JaegerGitHub These guides extend the current learning path into structured outputs, RAG data freshness, human-in-the-loop agent safety, and response caching. Each scope will be package- and API-verified before implementation.
Turn free-text purchase orders into strongly typed C# records with Microsoft.Extensions.AI structured output and JSON Schema. Validate required fields, enum values, totals, and business rules before accepting a model response.
Keep a retrieval index synchronized with changing source documents. Detect new, changed, and deleted content; reprocess only affected chunks; regenerate embeddings when required; and remove stale vectors without rebuilding the entire index.
Pause a proposed write before execution, bind approval to the exact pending tool call, persist the decision, and safely resume or reject the action. Test rejection, duplicate approval, stale approval, and replay attempts.
Add distributed response caching around IChatClient. Build cache identity from tenant, model, prompt version, and other response-shaping inputs, then verify hits, expiry, invalidation, and strict cross-tenant isolation.