Coven.Spellcasting
2.0.1
dotnet add package Coven.Spellcasting --version 2.0.1
NuGet\Install-Package Coven.Spellcasting -Version 2.0.1
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="Coven.Spellcasting" Version="2.0.1" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Coven.Spellcasting" Version="2.0.1" />
<PackageReference Include="Coven.Spellcasting" />
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 Coven.Spellcasting --version 2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Coven.Spellcasting, 2.0.1"
#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 Coven.Spellcasting@2.0.1
#: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=Coven.Spellcasting&version=2.0.1
#tool nuget:?package=Coven.Spellcasting&version=2.0.1
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Coven.Spellcasting
Structured “tool” actions for agents and apps. Define spells with typed inputs/outputs, compose them into a spellbook, and optionally generate schemas.
What’s Inside
- Contracts:
ISpell,ISpell<TIn>,ISpell<TIn,TOut>,ISpellContract. - Composition:
Spellbook,SpellbookBuilder. - Schema:
SchemaGenfor describing spell inputs/outputs. - Definition:
SpellDefinition(name, description, input/output types).
Why use it?
- Make capabilities explicit and typed for agents/tools.
- Generate machine‑readable schemas for planning and validation.
Minimal Example
using Coven.Spellcasting;
public sealed class AddSpell : ISpell<AddInput, AddResult>
{
public SpellDefinition Definition => new(
Name: "add",
Description: "Add two integers",
InputType: typeof(AddInput),
OutputType: typeof(AddResult));
public Task<AddResult> Cast(AddInput input, CancellationToken ct = default)
=> Task.FromResult(new AddResult(input.A + input.B));
}
var book = new SpellbookBuilder()
.AddSpell<AddInput, AddResult>(new AddSpell())
.Build();
// Optional: schema for tool wiring
string jsonSchema = SchemaGen.Generate(book);
See Also
- Architecture: Abstractions and Branches.
- Packages:
Coven.Agentsfor agent orchestration.
| 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net10.0
- Coven.Core (>= 2.0.1)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.9)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.1 | 331 | 11/11/2025 |
| 2.0.0 | 304 | 11/11/2025 |
| 1.0.1-preview.pr43.36.8606c07 | 135 | 11/8/2025 |
| 1.0.1-preview.pr41.34.92b660c | 146 | 11/2/2025 |
| 1.0.1-preview.pr19.9.009bd20 | 178 | 9/25/2025 |
| 1.0.1-preview.pr17.7.b635fa1 | 171 | 8/31/2025 |
| 1.0.1-preview.pr17.6.cc737ce | 170 | 8/31/2025 |
| 1.0.1-preview.pr17.5.89bfd90 | 166 | 8/31/2025 |
| 1.0.1-preview.pr17.4.fa90205 | 167 | 8/31/2025 |
| 1.0.0 | 241 | 8/30/2025 |
| 0.1.0-preview.pr17.3.d408821 | 169 | 8/31/2025 |