Expand description
Tier-aware dispatch policy.
atd_protocol::ToolTier (Hot/Warm/Cold) is the authoritative tier enum —
this module adds the policy that maps each tier to a timeout budget
and a max-output budget used at dispatch time. SP-12 makes the tier
signal load-bearing; a future SP can extend this with placement /
priority semantics without changing the field on the definition.
Structs§
- Tier
Policy - Per-tier budgets used when constructing
CallContextfor a tool call.Warmdefaults match the pre-SP-12 server config (1 MiB / 60 s) to keep the 9 existing tools’ behavior unchanged.
Enums§
Functions§
- tier_
as_ str - Stable lower-case string label for a
ToolTier. Used on the audit-event wire (CallEvent::tier) and anywhere a human-readable tier tag is needed. - tier_
from_ opt_ str - Parse a tier hint from an optional string (e.g. a
tierfield on a tool definition, which may be absent). Defaults toWarmonNoneor an unrecognized value — this is the SP-12 back-compat behavior locked in by spec §8 Q5. A future SP can flip unknown-values to a hard error once all builtin tools opt in.