AIOMux.Core 0.3.0

dotnet add package AIOMux.Core --version 0.3.0
                    
NuGet\Install-Package AIOMux.Core -Version 0.3.0
                    
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="AIOMux.Core" Version="0.3.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AIOMux.Core" Version="0.3.0" />
                    
Directory.Packages.props
<PackageReference Include="AIOMux.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 AIOMux.Core --version 0.3.0
                    
#r "nuget: AIOMux.Core, 0.3.0"
                    
#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 AIOMux.Core@0.3.0
                    
#: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=AIOMux.Core&version=0.3.0
                    
Install as a Cake Addin
#tool nuget:?package=AIOMux.Core&version=0.3.0
                    
Install as a Cake Tool

AIOMux.Core

AIOMux.Core is a modern, extensible .NET library for building, orchestrating, and scaling intelligent agent systems. It provides a robust foundation for AI-driven applications, enabling you to compose, chain, and manage agents, integrate LLMs, and extend functionality with plugins and tools-all with a clean, modular architecture.

Key Features

  • Agent orchestration: Register, compose, and execute agents and agent chains
  • LLM abstraction: Plug in local or cloud LLMs (see AIOMux.LLM)
  • Plugin system: Dynamically load agent plugins at runtime
  • Tooling: Add custom tools for agent use
  • Configuration & validation: Strongly-typed, extensible config
  • Metrics & memory: Built-in support for agent metrics and memory stores

Examples

1. Basic: Register and Run a Simple Agent

using AIOMux.Core;
using AIOMux.Core.Interfaces;

public class EchoAgent : IAgent
{
    public string Name => "EchoAgent";
    public Task<string> ExecuteAsync(AgentContext context)
        => Task.FromResult($"Echo: {context.UserInput}");
}

var manager = new AgentManager();
manager.Register(new EchoAgent());
var agent = manager.GetByName("EchoAgent");
if (agent != null)
{
    var context = new AgentContext { UserInput = "Hello!" };
    var result = await agent.ExecuteAsync(context);
    Console.WriteLine(result);
}

2. Implementing a Tool (ITool)

using AIOMux.Core.Interfaces;
public class UppercaseTool : ITool
{
    public string Name => "Uppercase";
    public Task<string> ExecuteAsync(string input)
        => Task.FromResult(input.ToUpperInvariant());
}

3. Implementing an Agent Plugin (IAgentPlugin)

using AIOMux.Core.Interfaces;
public class MyPlugin : IAgentPlugin
{
    public AgentMetadata Metadata => new() { Name = "MyPluginAgent", Description = "A sample plugin agent." };
    public IAgent CreateAgent(ILLMClient? llmClient = null, Dictionary<string, object>? configuration = null)
        => new MyPluginAgent();
    public Task<bool> InitializeAsync(Dictionary<string, object>? configuration = null) => Task.FromResult(true);
    public Task DisposeAsync() => Task.CompletedTask;
}

public class MyPluginAgent : IAgent
{
    public string Name => "MyPluginAgent";
    public Task<string> ExecuteAsync(AgentContext context)
        => Task.FromResult("Plugin agent executed!");
}

4. Intermediate: Using OllamaClient from AIOMux.LLM

using AIOMux.LLM;
var llm = new OllamaClient(model: "llama3");
string response = await llm.GenerateAsync("What is the capital of France?");
Console.WriteLine(response);

5. Advanced: Create and Run an Agent Chain

// Assume you have two agents: agentA and agentB
manager.Register(agentA);
manager.Register(agentB);
var chain = manager.CreateChain("MyChain");
chain.AddAgent(agentA).AddAgent(agentB);
var context = new AgentContext { UserInput = "Start chain" };
var result = await chain.ExecuteAsync(context);
Console.WriteLine(result);

6. Advanced: Load Agent Plugins Dynamically

var manager = new AgentManager();
bool loaded = await manager.LoadPluginAsync("./plugins/AIOMux.Plugin.MyPlugin.dll");
if (loaded)
{
    var pluginAgent = manager.GetByName("MyPluginAgent");
    if (pluginAgent != null)
    {
        var context = new AgentContext { UserInput = "Run plugin agent" };
        var result = await pluginAgent.ExecuteAsync(context);
        Console.WriteLine(result);
    }
}

See also: AIOMux.LLM for LLM client implementations.

More examples soon...

License

This project is licensed under the MIT License. See LICENSE for details.

Product Compatible and additional computed target framework versions.
.NET net8.0 is compatible.  net8.0-android was computed.  net8.0-browser was computed.  net8.0-ios was computed.  net8.0-maccatalyst was computed.  net8.0-macos was computed.  net8.0-tvos was computed.  net8.0-windows was computed.  net9.0 was computed.  net9.0-android was computed.  net9.0-browser was computed.  net9.0-ios was computed.  net9.0-maccatalyst was computed.  net9.0-macos was computed.  net9.0-tvos was computed.  net9.0-windows was computed.  net10.0 was computed.  net10.0-android was computed.  net10.0-browser was computed.  net10.0-ios was computed.  net10.0-maccatalyst was computed.  net10.0-macos was computed.  net10.0-tvos was computed.  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 (1)

Showing the top 1 NuGet packages that depend on AIOMux.Core:

Package Downloads
AIOMux.Clients

Provides Language Model client implementations and abstractions for agent interaction. AIOMux.LLM is deprecated

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.3.0 217 8/24/2025
0.2.0 134 8/19/2025

minor updates