Lists the verbs a provider implements and the arguments each verb accepts, or the media types it accepts in a message. Use it to find out which providers can do something before you write code that depends on it.
provider_capabilities(
.provider = NULL,
.verb = NULL,
.argument = NULL,
.what = c("arguments", "media", "embed_media", "decide_media"),
.internal = FALSE
)A tibble. For .what = "arguments": provider, verb, argument,
default, fn. For .what = "media": provider, media (image, pdf,
audio, video, files) and supported. For .what = "embed_media" the same
columns with media limited to image, audio and video. For
.what = "decide_media" the same columns with media limited to image,
audio, video and pdf, for providers with a decide() method.
A provider call such as claude(), a provider name such as
"claude", or NULL (default) for every provider.
Character vector of verb names (such as "chat" or "send_batch")
to keep. NULL keeps all verbs.
Character vector of argument names (such as ".thinking") to
keep. NULL keeps all arguments.
"arguments" (default) for verbs and arguments, "media" for
one row per provider and media type a message can carry, or "embed_media" for
one row per provider and media type embed() accepts (image, audio, video),
or "decide_media" for one row per provider that implements decide() and
media type it reads in a decide() state (image, audio, video, pdf).
Logical; if TRUE, include the internal build verb that
send_chat() and parallel_chat() use. Default FALSE.
With .what = "arguments" the result has one row per provider, verb and
argument. A verb that takes no arguments of its own gets one row with
argument = NA. The default column holds the argument's default as text, so
for .model it is the provider's default model. fn names the function that
implements the verb for that provider; its help page documents every argument.
The table says that a provider's function accepts an argument. It does not say
that every model of that provider accepts it: for example, .thinking can be
accepted by openai() while a particular model rejects some effort levels.
provider_capabilities(claude(), .verb = "chat")
provider_capabilities(.argument = ".thinking")
provider_capabilities(.what = "media")
Run the code above in your browser using DataLab