Soenneker.Attributes.Llms.Properties
4.0.27
Prefix Reserved
dotnet add package Soenneker.Attributes.Llms.Properties --version 4.0.27
NuGet\Install-Package Soenneker.Attributes.Llms.Properties -Version 4.0.27
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="Soenneker.Attributes.Llms.Properties" Version="4.0.27" />
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="Soenneker.Attributes.Llms.Properties" Version="4.0.27" />
<PackageReference Include="Soenneker.Attributes.Llms.Properties" />
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 Soenneker.Attributes.Llms.Properties --version 4.0.27
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
#r "nuget: Soenneker.Attributes.Llms.Properties, 4.0.27"
#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 Soenneker.Attributes.Llms.Properties@4.0.27
#: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=Soenneker.Attributes.Llms.Properties&version=4.0.27
#tool nuget:?package=Soenneker.Attributes.Llms.Properties&version=4.0.27
The NuGet Team does not provide support for this client. Please contact its maintainers for support.
Soenneker.Attributes.Llms.Properties
A small property attribute for attaching an LLM-oriented description to a .NET model.
Installation
dotnet add package Soenneker.Attributes.Llms.Properties
Usage
using Soenneker.Attributes.Llms.Properties;
public sealed class WeatherRequest
{
[LlmProperty("City and country, for example: Austin, US")]
public required string Location { get; init; }
}
Read the description with normal reflection:
using System.Reflection;
PropertyInfo property = typeof(WeatherRequest).GetProperty(
nameof(WeatherRequest.Location))!;
string? description = property
.GetCustomAttribute<LlmPropertyAttribute>()?
.Description;
Important behavior
- The attribute can be applied to properties only.
Descriptionis exactly the constructor value; the package does not normalize or validate it.- The attribute is metadata only. It does not alter serialization, schema generation, or prompts unless another component reads it.
- The attribute is not declared as repeatable, so a property can have only one description.
| 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
- No dependencies.
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 |
|---|---|---|
| 4.0.27 | 0 | 9/12/2026 |
| 4.0.26 | 154 | 8/29/2026 |
| 4.0.24 | 101 | 8/29/2026 |
| 4.0.23 | 325 | 7/28/2026 |
| 4.0.22 | 247 | 7/16/2026 |
| 4.0.21 | 365 | 6/18/2026 |
| 4.0.20 | 295 | 6/5/2026 |
| 4.0.19 | 120 | 6/5/2026 |
| 4.0.18 | 302 | 4/22/2026 |
| 4.0.16 | 180 | 3/12/2026 |
| 4.0.15 | 165 | 3/12/2026 |
| 4.0.14 | 174 | 3/12/2026 |
| 4.0.13 | 179 | 3/12/2026 |
| 4.0.12 | 177 | 3/10/2026 |
| 4.0.11 | 133 | 3/9/2026 |
| 4.0.10 | 124 | 3/9/2026 |
| 4.0.9 | 117 | 3/9/2026 |
| 4.0.8 | 123 | 3/4/2026 |
| 4.0.7 | 137 | 1/2/2026 |
| 4.0.6 | 457 | 11/21/2025 |
Loading failed
Use NuGet trusted publishing in publishing workflows