Posts

Showing posts with the label agents

A .NET Agent Orchestration Framework - The Agent

Image
Introduction This is part three of my series on the agent orchestration framework I'm building in .NET. If you haven't already, read  Introduction  and Orchestrator  before this one to get the gist of it. This time I'm going to talk about the agent, what it is, how it relates to the orchestrator, and how it uses the Microsoft.Extensions.AI abstractions. An agent, in my framework, is something that talks to an LLM model, asks it for the resolution of some task, and is also available for reviewing other tasks, and possibly (if there are reviews to process) revises its own generated work until either there are no more reviews or the maximum limit has been reached. The agent fully encapsulates all contact with the LLM using standard Microsoft.Extensions.AI interfaces and is quite lightweight, does not maintain much state besides the name and tags (conversation ids/history and a few other properties need to be maintained, but that is totally transparent). The Agent Con...

A .NET Agent Orchestration Framework - The Orchestrator

Image
Introduction This is part two of my series on the agent orchestration framework I'm building in .NET. You really should read the first part, Introduction , before this one, so if you haven't already, take the time to do so now! In this post I'm going to talk about the orchestrator, the central piece of the framework. I'm going to describe its contract and how we should use it. Some related parts will be covered in other posts. The IOrchestrator Interface The orchestrator is main part of the framework, as I said before. It is the one that coordinates - with some assistance - the different agents, distributes the work to be done, enforces reviews and revision processes, then gathers all responses and summarises them. The interface that describes the orchestrator is IOrchestrator  (surprise, surprise), and this is what it looks like: public interface IOrchestrator : IDisposable { event EventHandler<OrchestrationEventArgs>? OrchestrationStarting; event E...

A .NET Agent Orchestration Framework - Introduction

Image
Introduction In this new series of posts I will talk about a multi-agent orchestration framework that I've been developing in the last few months. This framework (name yet to be defined) is provider and model-agnostic and the responsibility to connect to the models of choice is outside its scope; anything works as long as it has a Microsoft.Extensions.AI wrapper. As with most of the code I write, it is being developed in .NET and this post explains some of the core concepts and technologies used to build it; I will expand on each concept (the orchestrator, the agents, the training, the knowledge management, etc) in subsequent posts. I also plan to eventually make the code available in GitHub and NuGet. This is somewhat linked to my PhD research , but I won't get too academic here (I am not!), this is essentially a proof of concept that seems to work, and something I'm having fun with! The posts in the series I plan to write are, as of now: Introduction (this one) The orche...

AI and LLMs in .NET Index

These are the posts in the series: Generating Structured Code Using Azure, OpenAI and .NET Using LLMs and MCP in .NET A .NET Agent Orchestration Framework - Introduction A .NET Agent Orchestration Framework - The Orchestrator A .NET Agent Orchestration Framework - The Agent