Skip to main content
Gunpal5.CSharpToJsonSchema package icon

Gunpal5.CSharpToJsonSchema

C# Source Generator for JSON Schema function tools. Define functions via interfaces and get compile-time generated tool definitions for AI function calling. Fork of tryAGI/CSharpToJsonSchema with AOT compatibility fixes.

Total Downloads
221
221
Published
Dec 26, 2025
Latest stable version

Install

.NET CLI
dotnet add package Gunpal5.CSharpToJsonSchema --version 1.0.0
Package Manager Console
Install-Package Gunpal5.CSharpToJsonSchema -Version 1.0.0
PackageReference
<PackageReference Include="Gunpal5.CSharpToJsonSchema" Version="1.0.0" />

Frameworks

.NETFramework4.6.2 net8.0 net9.0 .NETStandard2.0

Dependencies

[10.1.1, )
Microsoft.NET.ILLink.Tasks
.NETFramework4.6.2
[9.0.11, )
System.Text.Json
.NETFramework4.6.2
[10.0.1, )
[10.0.1, )
[10.0.1, )
[10.1.1, )
[9.0.11, )
System.Text.Json
.NETStandard2.0
[10.0.1, )

Adoption guide

Assess this package against its supported frameworks, license, maintenance signals and dependency graph before making it a project standard.

Compatibility metadata lists 4 target frameworks; confirm the exact target used by your application.

How to read this guidance

Sources: published NuGet v3 registry metadata and explicit NuBrowse editorial guides. Refresh: package metadata is refreshed from NuGet when the page loads. Limit: this is not a security, legal or compatibility guarantee; validate the selected version in your project.

Useful next steps

Move from package metadata to a concrete selection or review workflow.