Skip to main content

ANTHROPIC_REQUEST_KEY

Constant ANTHROPIC_REQUEST_KEY 

Source
pub const ANTHROPIC_REQUEST_KEY: &str = "switchyard_anthropic_request";
Expand description

Request extension key that marks a request decoded from an Anthropic Messages body.

Codecs skip this key when they copy unknown provider fields, so callers cannot set it. Prompt edits remove it from preserved Anthropic bodies for the same reason.