[KongchangAI]
Conceptprovider metadata

providerMetadata

A unified convention in the AI SDK that allows each provider to attach provider-specific fields to response objects; callers access additional information returned by the vendor through providerMetadata.<providerName> for auditing, billing, and troubleshooting.

Timeline (last 90 days)

Nov 7

The SDK echoes the safety_identifier value returned by the server on providerMetadata.xai.safetyIdentifier.

Unverified50%
Nov 7

The safetyIdentifier option exposes the echoed value on providerMetadata.xai.safetyIdentifier.

Unverified50%
Nov 7

providerMetadata is a unified AI SDK convention that allows different providers to attach their own specific fields to the response object without polluting the generic return structure.

Unverified50%
Oct 28

providerMetadata is a nested dictionary indexed by provider name, allowing vendors to return private data without breaking the unified interface.

Unverified50%
Oct 28

The cost field is placed in providerMetadata rather than the top-level usage because it has not yet been abstracted into a cross-vendor common contract.

Unverified50%

All Facts (5)

Source Articles