AnthropicMediaPartConverter
Namespace: Vercel.AI.Anthropic
public delegate JsonObject? AnthropicMediaPartConverter(JsonElement part)Converts one file part for a provider that speaks the Messages protocol. Receives the part in the SDK message JSON shape.
Returns the image or video block without cache_control, or <a href=“https://learn.microsoft.com/dotnet/csharp/language-reference/keywords/null">null</a> to use the default conversion.
Parameters
| Name | Type | Description |
|---|---|---|
part |
JsonElement |
Returns: JsonObject
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product