Skip to content

rulvar API reference


rulvar API reference / @rulvar/plan / ladderOfProfile

Function: ladderOfProfile()

ts
function ladderOfProfile(profile): 
  | LadderSpec
  | undefined;

Defined in: packages/plan/src/ladder.ts:30

Extracts the declared ladder from an agent profile: the ModelSpec union carries it (model: { ladder }), or the loop-role routing entry. The same declaration points feed ladderLengthOf and the frozen kMax, so admission and execution can never disagree on the ladder length.

Parameters

ParameterType
profileunknown

Returns

| LadderSpec | undefined