Category Archives: C#
Dependency Injection & Agent Framework
In the previous blog posts we ported a Python implementation of an agentic application to C# and Microsoft Agent Framework. We used interfaces, but we did not use Dependency Injection (DI). It is pretty easy to add. Agents, tools, executors … Continue reading
Migrating Agentic Code Python -> C# Part 6 (final)
Note, the complete source code for the .NET version of this demo application is now available at https://github.com/JesseLiberty/blogMigration—public In the previous post we finished up creating our agents. You’ll remember that each of the agents declared nodes. We’re finally going … Continue reading
Migrating Agentic Code Python -> C# Part 5
In the previous post we looked at implementing the Researcher in C#. In this, as promised, we’ll look at the Author and the Reviewer. The Author is handed two objects when instantiated: the llm (an IChatClient object) and the chatOptions. … Continue reading
Migrating Agentic Code Python -> C# Part 4
In the previous blog post we looked at the Blogger (orchestrator) code in C#. Let’s move on to some of the other agents. The Blogger invokes the Researcher, so let’s go there next.
Migrating Agentic Code Python -> C# Part 3
In the previous blog post (Part 2) we began the migration by setting up the configuration. In this post, we’ll tackle the Blogger, which acts as an orchestrator for the agents. In the python version of our program the blogger_prompt_template … Continue reading
Migrating Agentic Code Python -> C# Part 2
In Part 1 of this multi-part series, I laid out my goal to migrate the Python agentics program from the previous series to C#. To do this migration I’m going to work my way down through my Python script and … Continue reading
Migrating Agentic Code Python -> C# Part 1
In the last 5 posts we created an agentic application using Python. Let’s migrate that to C#. Here’s the set of files we’ll create: And here is the output after running it as a test using the prompt Use of … Continue reading
Azure Functions & Durable Functions
Creating the Project with CoPilot As part of the API tutorials we decided we needed a Database with two tables: Book and Author. Books will join Author and there can be as many authors as we want. Rather than writing … Continue reading
Scott Hunter
Conversation with Scott Hunter (VP Microsoft) about Visual Studio, CoPilot Agents, MCP, Azure, Azure Functions and much more. Watch on YouTube Note: ZenCastr ate Scott’s links, but you can get started at https://learn.microsoft.com
Modern C# Part 3 – Switch Expressions
I admit it, I’ve struggled with pattern matching. In the next few blog posts I’ll explore this magic, starting today with switch expressions (not to be confused with switch statements).
Modern C# – Part 1
This short post will kick off a series covering some of the new features in C#. One small but much requested feature is the ability to use any kind of collection for params. Previously you had to pass in an … Continue reading
API Part 7 – Swagger Comments
In the previous post, I introduced Swagger and showed how to set up your project for Swagger. In this post I will show how to add Swagger comments to annotate your program. In earlier posts we looked at the database … Continue reading





































