format_with_salience_budget
Allocate token budgets proportionally to salience scores when formatting memories for LLM prompts, ensuring important entities receive more context within a total token limit.
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 |