Skip to content

Interface: AnthropicHeaders

@providerprotocol/ai


@providerprotocol/ai / anthropic / AnthropicHeaders

Defined in: src/providers/anthropic/types.ts:815

Anthropic-specific HTTP headers for API requests.

const headers: AnthropicHeaders = {
'anthropic-beta': 'extended-cache-ttl-2025-04-11',
};

[key: string]: string | undefined

optional anthropic-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 TTL
  • token-efficient-tools-2025-02-19 - Token-efficient tool encoding
  • computer-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 tool
  • advanced-tool-use-2025-11-20 - Tool search tool