Nabs.Launchpad.Core.Ai
10.0.228
Prefix Reserved
See the version list below for details.
dotnet add package Nabs.Launchpad.Core.Ai --version 10.0.228
NuGet\Install-Package Nabs.Launchpad.Core.Ai -Version 10.0.228
<PackageReference Include="Nabs.Launchpad.Core.Ai" Version="10.0.228" />
<PackageVersion Include="Nabs.Launchpad.Core.Ai" Version="10.0.228" />
<PackageReference Include="Nabs.Launchpad.Core.Ai" />
paket add Nabs.Launchpad.Core.Ai --version 10.0.228
#r "nuget: Nabs.Launchpad.Core.Ai, 10.0.228"
#:package Nabs.Launchpad.Core.Ai@10.0.228
#addin nuget:?package=Nabs.Launchpad.Core.Ai&version=10.0.228
#tool nuget:?package=Nabs.Launchpad.Core.Ai&version=10.0.228
Nabs.Launchpad.Core.Ai
Core abstractions for building agent-based AI workflows in Launchpad. This package provides definitions for agents, skills, dependency contracts, orchestration metadata, menu command contracts, and a factory extension for creating AIAgent instances from IChatClient implementations.
Purpose
Use this package when you want to:
- Define reusable cohort agent metadata (
CohortAgentDefinition,CohortProducerDefinition<T>,CohortReviewerDefinition) - Define orchestration-level dependency and output contracts (
CohortOrchestratorAgentDefinition) - Validate required artefacts before and after agent workflow execution
- Create
AIAgentinstances consistently viaIAIClientFactory
Installation
dotnet add package Nabs.Launchpad.Core.Ai
Quick Start
1) Define an agent
using Microsoft.Agents.AI;
using Nabs.Launchpad.Core.Ai;
public sealed class StoryProducerDefinition : CohortProducerDefinition<StoryOutput>
{
public StoryProducerDefinition()
{
AgentName = "Story Producer";
Instructions = "Generate a short story with title and summary.";
DeploymentName = "gpt-4.1-mini";
}
public override AIFunction[] GetTools() => [];
}
public sealed class StoryOutput
{
public required string Title { get; init; }
public required string Summary { get; init; }
}
2) Create an agent instance from a client factory
using Nabs.Launchpad.Core.Ai;
IAIClientFactory clientFactory = GetClientFactory();
var definition = new StoryProducerDefinition();
var agent = clientFactory.CreateAgent(definition);
When ResponseOutputType is configured (for example via CohortProducerDefinition<TResponseType>), the created agent uses a structured JSON response format.
API Overview
Agent definitions
CohortAgentDefinition- Base class for agent name, instructions, deployment name, tools, and optional structured output type.CohortProducerDefinition<TResponseType>- Producer agent base type that enables structured output usingTResponseType.CohortReviewerDefinition- Reviewer agent base type.CohortSkillDefinition- Record for skill metadata (label, instruction resources, maturity resources, ordering).
Orchestration definitions
CohortOrchestratorAgentDefinition- Defines orchestrator metadata, sub-agent definitions, dependency requirements, and output requirements.CohortDependencyDefinition/CohortOutputDefinition- File pattern + cardinality contract entries.CohortDependencyCardinality- Supported cardinalities:ExactlyOne,AtLeastOne,ZeroOrOne.
Dependency resolution
ResolveDependencies(string artefactLocation)validates required input artefacts and returnsCohortDependencyResolution.ValidateOutputs(string artefactLocation)validates expected output artefacts.CohortDependencyResolutionExceptioncontains detailed validation errors.CohortDependencyResolutionprovides helpers such asGetRequiredSinglePathandGetOptionalSinglePath.
AI client abstraction
IAIClientFactoryexposesGetChatClient(string modelName).IAIClientFactoryExtensions.CreateAgent(...)createsAIAgentinstances with shared configuration behavior.
Additional contracts
IArtefactfor named artefact descriptors.ITextStreamSinkfor async streaming text output sinks.IMenuCommand+ generic variants for menu-driven command execution contracts returningArdalis.Result.
Advanced Usage
Define dependency and output contracts for an orchestrator
using Nabs.Launchpad.Core.Ai;
public sealed class DocumentationOrchestratorDefinition : CohortOrchestratorAgentDefinition
{
public DocumentationOrchestratorDefinition()
{
AgentName = "Documentation Orchestrator";
Description = "Coordinates contributors for README generation.";
AddSubAgentDefinitionType<StoryProducerDefinition>();
AddDependency(
key: "project-file",
searchPattern: "*.csproj",
cardinality: CohortDependencyCardinality.ExactlyOne,
description: "project definition");
AddOutput(
key: "readme",
searchPattern: "README.md",
cardinality: CohortDependencyCardinality.ExactlyOne,
description: "package readme");
}
}
Target Framework
- .NET 10
Dependencies
Microsoft.Agents.AIArdalis.Result
| Product | Versions 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. |
-
net10.0
- Ardalis.Result (>= 10.1.0)
- ArdalisAnalyzer (>= 1.2.0)
- Microsoft.Agents.AI (>= 1.8.0)
NuGet packages (2)
Showing the top 2 NuGet packages that depend on Nabs.Launchpad.Core.Ai:
| Package | Downloads |
|---|---|
|
Nabs.Launchpad.Core.Ai.Clients
Package Description |
|
|
Nabs.Launchpad.Core.Ai.Menu
Package Description |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated | |
|---|---|---|---|
| 10.0.234 | 0 | 5/31/2026 | |
| 10.0.233 | 0 | 5/31/2026 | |
| 10.0.232 | 40 | 5/30/2026 | |
| 10.0.230 | 46 | 5/30/2026 | |
| 10.0.229 | 40 | 5/30/2026 | |
| 10.0.228 | 46 | 5/30/2026 | |
| 10.0.226 | 105 | 4/26/2026 | |
| 10.0.221 | 115 | 2/3/2026 | |
| 10.0.220 | 114 | 1/14/2026 | |
| 10.0.219 | 124 | 1/5/2026 | |
| 10.0.218 | 118 | 1/4/2026 | |
| 10.0.217 | 144 | 1/4/2026 | |
| 10.0.216 | 160 | 1/4/2026 | |
| 10.0.215 | 143 | 1/4/2026 | |
| 10.0.214 | 140 | 1/1/2026 | |
| 10.0.213 | 187 | 1/1/2026 | |
| 10.0.212 | 140 | 1/1/2026 | |
| 10.0.211 | 146 | 12/31/2025 | |
| 10.0.210 | 143 | 12/30/2025 | |
| 10.0.209 | 139 | 12/30/2025 |