Runiq.Agents 0.1.0-preview.7

This is a prerelease version of Runiq.Agents.
The owner has unlisted this package. This could mean that the package is deprecated, has security vulnerabilities or shouldn't be used anymore.
dotnet add package Runiq.Agents --version 0.1.0-preview.7
                    
NuGet\Install-Package Runiq.Agents -Version 0.1.0-preview.7
                    
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="Runiq.Agents" Version="0.1.0-preview.7" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Runiq.Agents" Version="0.1.0-preview.7" />
                    
Directory.Packages.props
<PackageReference Include="Runiq.Agents" />
                    
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 Runiq.Agents --version 0.1.0-preview.7
                    
#r "nuget: Runiq.Agents, 0.1.0-preview.7"
                    
#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 Runiq.Agents@0.1.0-preview.7
                    
#: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=Runiq.Agents&version=0.1.0-preview.7&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=Runiq.Agents&version=0.1.0-preview.7&prerelease
                    
Install as a Cake Tool

Runiq.Agents

NuGet Version

Code-first AI agents for .NET.

Runiq.Agents provides the core agent model for Runiq.Net. Use it to define agents in C#, attach strongly typed tools, configure model providers, and build agent-based applications with structured execution support.

Why Runiq.Agents?

Runiq.Agents is designed for .NET developers who want to build AI agents without leaving the C# ecosystem.

It focuses on:

  • Code-first agent definitions
  • Strongly typed tool execution
  • Provider-aware model configuration
  • Runtime-friendly agent composition
  • Streaming and structured execution support
  • Integration with the broader Runiq.Net platform

Install

dotnet add package Runiq.Agents --prerelease

Create an Agent

using Runiq.Agents;

var agent = new Agent(
    id: "weather-agent",
    name: "Weather Agent",
    instructions: "Answer weather questions using the available tools.",
    model: "openai/gpt-5",
    apiKey: configuration["OpenAI:ApiKey"]);

An agent contains the basic runtime definition:

  • id: stable identifier used by the runtime
  • name: human-readable agent name
  • instructions: system-level behavior definition
  • model: target model identifier
  • apiKey: provider credential

Add a Tool

Tools allow agents to call strongly typed C# code.

using Runiq.Agents.Tools;

[RuniqTool("get_weather", "Gets the current weather for a city.")]
public sealed class WeatherTool : IRuniqTool<WeatherInput, WeatherOutput>
{
    public Task<WeatherOutput> ExecuteAsync(
        WeatherInput input,
        CancellationToken cancellationToken = default)
    {
        return Task.FromResult(
            new WeatherOutput(input.City, "Clear"));
    }
}

public sealed record WeatherInput(string City);

public sealed record WeatherOutput(string City, string Condition);

Attach the tool to the agent:

var agent = new Agent(
        id: "weather-agent",
        name: "Weather Agent",
        instructions: "Use tools when weather data is requested.",
        model: "openai/gpt-5",
        apiKey: configuration["OpenAI:ApiKey"])
    .AddTool<WeatherTool>();

Tool Design

A Runiq tool is a regular C# class that implements:

IRuniqTool<TInput, TOutput>

This gives you:

  • Strongly typed input models
  • Strongly typed output models
  • Testable business logic
  • Clean separation between agent behavior and application code

Typical Use Cases

Use Runiq.Agents when you want to build:

  • AI assistants for .NET applications
  • Tool-using agents
  • Domain-specific agents
  • Agent workflows
  • Internal automation agents
  • Dashboard-observable agent runtimes
  • MCP-compatible agent experiences

Runiq.Net is modular. Runiq.Agents can be used together with other Runiq packages:

Package Purpose
Runiq.Core Hosts agents and the embedded dashboard in ASP.NET Core
Runiq.ContextSpaces Adds context and source-reading primitives
Runiq.Workflows Orchestrates agents in code-first workflows
Runiq.Mcp Exposes ASP.NET Core applications through MCP-compatible tools

Documentation

Full documentation is available at:

https://runiq.net/docs

Status

Runiq.Net is currently in preview.

APIs may change before the first stable release.

The main direction is clear:

Build code-first AI agents, tools, workflows, context sources, MCP endpoints, and dashboards for .NET applications.

License

MIT

Product Compatible and additional computed target framework versions.
.NET net10.0 is compatible.  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 (2)

Showing the top 2 NuGet packages that depend on Runiq.Agents:

Package Downloads
Runiq.Workflows

Workflow orchestration primitives for Runiq.Net runtime and dashboard scenarios.

Runiq.Core

Embedded ASP.NET Core runtime and dashboard hosting layer for Runiq.Net agents.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated