kernl

Type Alias: SharedProviderMetadata

type SharedProviderMetadata = Record<string, JSONObject>;

Defined in: packages/protocol/src/provider/provider.ts:77

Additional provider-specific metadata.

They are passed through to the provider from the AI SDK and enable provider-specific functionality that can be fully encapsulated in the provider.

The outer record is keyed by the provider name, and the inner record is keyed by the provider-specific metadata key.

{
  "anthropic": {
    "cacheControl": { "type": "ephemeral" }
  }
}

On this page