rulvar API reference / @rulvar/core / modelSpecIdentity
Function: modelSpecIdentity()
ts
function modelSpecIdentity(spec):
| {
effort?: Effort;
model: `${string}:${string}`;
}
| {
ladder: Json;
};Defined in: packages/core/src/journal/identity.ts:90
The identity projection of a CanonicalModelSpec. For the plain-model kind the projection is { model, effort? } WITHOUT the kind discriminant, exactly as frozen by the hashVersion 2 profile; effort is omitted when unresolved. The ladder embedding lands with ladder execution (M7).
Parameters
| Parameter | Type |
|---|---|
spec | CanonicalModelSpec |
Returns
| { effort?: Effort; model: `${string}:${string}`; } | { ladder: Json; }