Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EstimateTokens ¶
EstimateTokens provides a rough token count estimate. Uses the heuristic of ~4 characters per token for English text.
func FormatMemoriesWithBudget ¶
FormatMemoriesWithBudget formats multiple memory strings within a token budget. Returns the formatted string and the number of memories that fit.
func TruncateToTokenBudget ¶
TruncateToTokenBudget truncates text to approximately fit within a token budget.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.