@glideco/parley-tiers
v0.1.0
Published
Parley-style negotiated payment tiers for Glide. Builds turbo/fast/batch tier options with price + latency_ms + rail metadata that an agent picks from. Additive to vanilla MPP — agents can ignore tiers and pick the default. Pure functions, no IO.
Maintainers
Readme
@glideco/parley-tiers
Parley-style negotiated payment tiers (turbo / fast / batch) for Glide. Projects the smart-router's rail candidates onto a 3-tier vocabulary that agents can select from. Additive to vanilla MPP — agents can ignore tiers and pick the default.
Pure functions, no IO.
Install
npm install @glideco/parley-tiersUsage
import { buildParleyTiers, pickPreferredTier } from '@glideco/parley-tiers';
const tiers = buildParleyTiers(railCandidates);
const fast = pickPreferredTier(tiers, 'fast');License
MIT
