anthropic_messages_format

Classifies Anthropic Messages API requests and promotes routing facts to headers, metadata, and filter results.
On this page

Classifies Anthropic Messages API requests and promotes routing facts to headers, metadata, and filter results.

Configuration

FieldTypeRequiredDescription
on_invalidcontinue | reject | errornoBehavior when the body cannot be classified.
max_body_bytesintegernoMaximum body size in bytes for StreamBuffer mode.
headersAnthropicMessagesFormatHeadersnoHeader names for promoted classification facts. Must not be hop-by-hop, framing, Host, credential, API-key, or other internal x-praxis-* names. Dedicated defaults remain allowed.
headers.formatstringnoHeader name for the detected format. Must not be a hop-by-hop, framing, Host, credential, API-key, or other internal x-praxis-* header. Dedicated default x-praxis-ai-format remains allowed.
headers.modelstringnoHeader name for the extracted model value. Must not be a hop-by-hop, framing, Host, credential, API-key, or other internal x-praxis-* header. Dedicated default x-praxis-ai-model remains allowed. Must not overwrite other classification facts such as x-praxis-ai-format.
headers.streamstringnoHeader name for the extracted stream flag. Must not be a hop-by-hop, framing, Host, credential, API-key, or other internal x-praxis-* header. Dedicated default x-praxis-ai-stream remains allowed.

Examples

Example 1

filter: anthropic_messages_format

Example 2

filter: anthropic_messages_format
on_invalid: continue
max_body_bytes: 1048576
headers:
  format: x-praxis-ai-format
  model: x-praxis-ai-model
  stream: x-praxis-ai-stream