formatMemoryWithBudget
function formatMemoryWithBudget( memory, maxTokens, allowlist?): string;Budget-aware working memory formatter. Iterates entries in insertion order, dropping entries that exceed the budget. Entries are atomic — they are either fully included or fully dropped.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
|
|
|
|
|
|
|
|
|
Returns
Section titled “Returns”string