Expand description
Standalone fixes for avoidable agent-to-agent context overhead.
Structs§
- Message
Entry - Lightweight representation of an agent scratchpad message.
Enums§
- Budget
Check Result - Result of checking a requested token consumption against a real budget.
Functions§
- check_
budget_ with_ real_ limit - Validate that a token consumption will not exceed the budget.
- compact_
json - Convert JSON to compact format after stripping null and empty values.
- filter_
truly_ unread - Properly filter messages to only return genuinely unread ones.
- json_
token_ estimate - Estimate a JSON string’s token count using four characters per token.
- message_
id - Compute the stable content ID used to track whether a message was read.
- real_
agent_ budget - Compute a real agent budget from configuration instead of
usize::MAX. - strip_
nulls - Strip null and empty values from a JSON value recursively.
Type Aliases§
- Scratchpad
Entry - Compatibility name for a lightweight scratchpad message.