Anthropic::StainlessHelper
Single source of truth for the x-stainless-helper telemetry header.
The Anthropic backend uses this header to attribute requests to specific SDK helpers (tool runners, middleware, MCP helpers, etc.). This module centralizes the header key and a closed vocabulary of tag values so call sites can't typo them, and provides append semantics so multiple helpers composing on one request combine into a single comma-separated value rather than clobbering each other.
Constants
Closed vocabulary of helper tag values.
Class methods
Convenience: build a single-entry header hash for one helper tag.
Merge a helper tag into an existing headers hash with append semantics.
If the header is already present, the new value is appended (preserving order, dropping duplicates); otherwise it is set. Returns a new hash.
Merge a helper tag into an HTTP::Headers (mutates and returns it).