Skip to main content

Module tier

Module tier 

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

TierPolicy
Per-tier budgets used when constructing CallContext for a tool call. Warm defaults match the pre-SP-12 server config (1 MiB / 60 s) to keep the 9 existing tools’ behavior unchanged.

Enums§

ToolTier

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 tier field on a tool definition, which may be absent). Defaults to Warm on None or 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.