MagicDoor.AI.Tools.Abstractions.Extensions
1.0.2
dotnet add package MagicDoor.AI.Tools.Abstractions.Extensions --version 1.0.2
NuGet\Install-Package MagicDoor.AI.Tools.Abstractions.Extensions -Version 1.0.2
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="MagicDoor.AI.Tools.Abstractions.Extensions" Version="1.0.2" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
paket add MagicDoor.AI.Tools.Abstractions.Extensions --version 1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: MagicDoor.AI.Tools.Abstractions.Extensions, 1.0.2"
#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.
// Install MagicDoor.AI.Tools.Abstractions.Extensions as a Cake Addin #addin nuget:?package=MagicDoor.AI.Tools.Abstractions.Extensions&version=1.0.2 // Install MagicDoor.AI.Tools.Abstractions.Extensions as a Cake Tool #tool nuget:?package=MagicDoor.AI.Tools.Abstractions.Extensions&version=1.0.2
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
MagicDoor.AI.Tools.Abstractions.Extensions
A collection of extensions and utilities for building AI-powered applications using Microsoft.Extensions.AI.
Features
- JSON LLM Output Parser: Easily parse JSON responses from LLMs with built-in error handling and logging
- Magic Prompt Builder: Flexible prompt building utilities for LLM interactions
- AI Tool Extensions: Helper methods for working with Microsoft.Extensions.AI tools and functions
Installation
dotnet add package MagicDoor.AI.Tools.Abstractions.Extensions --version 0.1.0
Usage
JSON LLM Output Parser
var parser = new JSONLLMOutputParser(logger);
var result = parser.Parse<MyOutputType>(llmResponse);
Magic Prompt Builder
var builder = new MagicPromptBuilder();
builder
.AddSystemMessage("You are a helpful assistant")
.AddUserMessage("Hello!")
.Build();
Requirements
- .NET 9.0 or higher
- Microsoft.Extensions.AI
- Microsoft.Extensions.Logging.Abstractions
License
This project is licensed under the MIT License - see the LICENSE file for details.
Product | Versions Compatible and additional computed target framework versions. |
---|---|
.NET | net9.0 is compatible. 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. |
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.
-
net9.0
- Microsoft.Extensions.AI (>= 9.1.0-preview.1.25064.3)
- Microsoft.Extensions.AI.Abstractions (>= 9.1.0-preview.1.25064.3)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.1)
- Scriban (>= 5.12.1)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.