Skip to content

rulvar API reference


rulvar API reference / @rulvar/rulvar / modelSpecIdentity

Function: modelSpecIdentity()

ts
function modelSpecIdentity(spec): 
  | {
  effort?: Effort;
  model: `${string}:${string}`;
}
  | {
  ladder: Json;
};

Defined in: packages/core/dist/index.d.ts

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

ParameterType
specCanonicalModelSpec

Returns

| { effort?: Effort; model: `${string}:${string}`; } | { ladder: Json; }