Skip to main content

Module a2a_fixes

Module a2a_fixes 

Source
Expand description

Standalone fixes for avoidable agent-to-agent context overhead.

Structs§

MessageEntry
Lightweight representation of an agent scratchpad message.

Enums§

BudgetCheckResult
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§

ScratchpadEntry
Compatibility name for a lightweight scratchpad message.