format_with_salience_budget
Allocate token budget proportionally across memories based on their salience scores to optimize LLM prompt context usage.
Instructions
Format memories for LLM prompt consumption with proportional token allocation based on salience scores
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| header | No | Optional header text to prepend | |
| separator | No | Optional separator between memories (default: newline) | |
| entityNames | Yes | Names of entities (memories) to format | |
| salienceScores | Yes | Map of entityName → salience score (0–1) for proportional allocation | |
| totalTokenBudget | Yes | Maximum total token budget for the formatted output |