Interface: AnthropicHeaders
@providerprotocol/ai / anthropic / AnthropicHeaders
Interface: AnthropicHeaders
Section titled “Interface: AnthropicHeaders”Defined in: src/providers/anthropic/types.ts:815
Anthropic-specific HTTP headers for API requests.
Example
Section titled “Example”const headers: AnthropicHeaders = { 'anthropic-beta': 'extended-cache-ttl-2025-04-11',};Indexable
Section titled “Indexable”[key: string]: string | undefined
Properties
Section titled “Properties”anthropic-beta?
Section titled “anthropic-beta?”
optionalanthropic-beta:string
Defined in: src/providers/anthropic/types.ts:827
Beta features header.
Comma-separated list of beta feature flags:
extended-cache-ttl-2025-04-11- Enable 1-hour cache TTLtoken-efficient-tools-2025-02-19- Token-efficient tool encodingcomputer-use-2025-01-24- Computer use tool (Claude 4 models)computer-use-2025-11-24- Computer use tool (Claude Opus 4.5)code-execution-2025-08-25- Code execution tooladvanced-tool-use-2025-11-20- Tool search tool