ReadonlymodelProvider-specific model ID.
ReadonlyproviderProvider ID.
ReadonlyspecificationThe language model must specify which language model interface version it implements.
ReadonlysupportedSupported URL patterns by media type for the provider.
The keys are media type patterns or full media types (e.g. */* for everything, audio/*, video/*, or application/pdf).
and the values are arrays of regular expressions that match the URL paths.
The matching should be against lower-case URLs.
Matched URLs are supported natively by the model and are not downloaded.
Generates a language model output (non-streaming).
Naming: "do" prefix to prevent accidental direct usage of the method by the user.
Generates a language model output (streaming).
Naming: "do" prefix to prevent accidental direct usage of the method by the user.
A stream of higher-level language model output parts.
Vercel AI SDK
LanguageModelV1implementation that communicates with the Sanity Content Agent API via a conversation thread.Typically you don't construct this directly — use createContentAgent().agent(threadId) instead.
Example