ParameterStableId

Helpers & Utilities · AiDotNet.Models.Parameters

Defines the canonical grammar used by durable parameter-manifest identities.

How It Works

Stable IDs are opaque, ordinally sorted paths. A path segment that represents a numeric index must contain exactly eight decimal digits (for example layers/00000002). Requiring one width prevents adding index 10 from moving ahead of index 2 and changing every later checkpoint offset. Semantic numbers must be named instead (for example year=2024) so they cannot be mistaken for positional identity.

Methods

Method Summary
string IndexSegment(int index) Formats a non-negative positional index as a canonical path segment.

Fields

Field Summary
int IndexWidth The fixed decimal width of an indexed path segment.