Table of Contents

Class ModelMetadata

Namespace
JD.AI.Core.LocalModels
Assembly
JD.AI.Core.dll

Metadata describing a local GGUF model.

public sealed record ModelMetadata : IEquatable<ModelMetadata>
Inheritance
ModelMetadata
Implements
Inherited Members

Properties

AddedUtc

[JsonPropertyName("addedUtc")]
public DateTime AddedUtc { get; init; }

Property Value

DateTime

Capabilities

Capabilities detected or configured for this model (e.g., Chat, ToolCalling, Vision).

[JsonPropertyName("capabilities")]
public ModelCapabilities Capabilities { get; init; }

Property Value

ModelCapabilities

DisplayName

[JsonPropertyName("displayName")]
public required string DisplayName { get; init; }

Property Value

string

FileHash

[JsonPropertyName("fileHash")]
public string? FileHash { get; init; }

Property Value

string

FilePath

[JsonPropertyName("filePath")]
public required string FilePath { get; init; }

Property Value

string

FileSizeBytes

[JsonPropertyName("fileSizeBytes")]
public long FileSizeBytes { get; init; }

Property Value

long

Id

[JsonPropertyName("id")]
public required string Id { get; init; }

Property Value

string

ParameterSize

[JsonPropertyName("parameterSize")]
public string? ParameterSize { get; init; }

Property Value

string

Quantization

[JsonPropertyName("quantization")]
public QuantizationType Quantization { get; init; }

Property Value

QuantizationType

Source

[JsonPropertyName("source")]
public ModelSourceKind Source { get; init; }

Property Value

ModelSourceKind

SourceUri

[JsonPropertyName("sourceUri")]
public string? SourceUri { get; init; }

Property Value

string

Methods

DisplayNameFromFilename(string)

Creates a display-friendly name from a GGUF filename.

public static string DisplayNameFromFilename(string filename)

Parameters

filename string

Returns

string

ParseFilename(string)

Parses quantization and parameter size from a GGUF filename. Example: "Meta-Llama-3-8B-Instruct-Q4_K_M.gguf" → Q4_K_M, "8B"

public static (QuantizationType Quant, string? ParamSize) ParseFilename(string filename)

Parameters

filename string

Returns

(QuantizationType Quant, string ParamSize)