pub fn estimate_deferred_schema_tokens(
full: &[ToolSchema],
advertised: &[ToolSchema],
) -> u64Expand description
Schema-token estimate for the B6 “tools” banner line: the estimate over
the serialized full ToolSchema list minus the estimate over the
serialized advertised list — i.e. the token cost of what’s currently
deferred (hidden behind tool_search) rather than eagerly advertised.
Saturates to 0 rather than underflow if advertised somehow estimates
larger than full (e.g. formatting differences), since “negative
deferred tokens” has no meaning for the banner.