AIDataGen 1.0.0-alpha

This is a prerelease version of AIDataGen.
dotnet add package AIDataGen --version 1.0.0-alpha
                    
NuGet\Install-Package AIDataGen -Version 1.0.0-alpha
                    
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="AIDataGen" Version="1.0.0-alpha" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AIDataGen" Version="1.0.0-alpha" />
                    
Directory.Packages.props
<PackageReference Include="AIDataGen" />
                    
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 AIDataGen --version 1.0.0-alpha
                    
#r "nuget: AIDataGen, 1.0.0-alpha"
                    
#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 AIDataGen@1.0.0-alpha
                    
#: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=AIDataGen&version=1.0.0-alpha&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=AIDataGen&version=1.0.0-alpha&prerelease
                    
Install as a Cake Tool

AIDataGen Package

Realistic data generator

var cars = generator.Generate<Car>(10);

Base usage guide:

Step 1: Create classes that you want to generate

Step 2: Mark classes and properties with attributes

[Prompt("Cars")]
public class Car
{
    [Prompt("Brand name")]
    public string Brand { get; set; }

    [Prompt("Model name")]
    public string Model { get; set; }

    [Prompt("Manufacturer company that develop car")]
    public Company Company { get; set; }

    [Prompt("Description")]
    public string Description { get; set; }

    [Random(3, 5)]
    [Prompt("Reviews from automobile journals", "Get only review text")]
    public List<Review> Reviews { get; set; }
}

Step 3: Download models with your Huggingface API key (https://huggingface.co/docs/hub/security-tokens)

AIGen.DownloadModels("<your huggingface API key>");

Step 4: Create generator and call generate method

var generator = AIGen.GetGenerator();
var cars = generator.Generate<Car>(10);
await foreach (var car in cars)
{
    Console.WriteLine(car.Model);
}

Product 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.  net10.0 was computed.  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

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
1.0.0-alpha 123 8/17/2025