Rulvar API reference / @rulvar/rulvar / modelKnowledgeCard
Function: modelKnowledgeCard()
ts
function modelKnowledgeCard(
claims,
ladders,
options?): string;Defined in: packages/core/dist/index.d.ts
The deterministic card render. Pure: same filtered claims and ladders give byte-identical text. The render budget is 4096 chars by default; over it, the OLDEST-observed notes withhold first behind an explicit marker, and the budget is a HARD upper bound of the returned string: a card whose mandatory sections alone exceed it is truncated with the shared marker (v1.35.0 review P2-5: a budget of 32 used to return the full 136-char header form). budgetChars is a nonnegative integer, validated as a ConfigError.
Parameters
| Parameter | Type |
|---|---|
claims | readonly ModelClaim[] |
ladders | readonly DeclaredLadder[] |
options? | { budgetChars?: number; profiles?: Record<string, AgentProfile>; } |
options.budgetChars? | number |
options.profiles? | Record<string, AgentProfile> |
Returns
string