Skip to content

AnthropicCustomContent

Namespace: Vercel.AI.Anthropic

public sealed class AnthropicCustomContent : GeneratedContent

A provider block the V4 content list has no dedicated type for.

Inheritance: object → GeneratedContent

View source

AnthropicCustomContent(string, JsonElement?)

Section titled “AnthropicCustomContent(string, JsonElement?)”
public AnthropicCustomContent(string kind, JsonElement? providerMetadata)

Creates custom content.

Parameters

Name Type Description
kind string
providerMetadata JsonElement?

View source

public string Kind { get; }

Custom kind, such as anthropic.container_upload.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider metadata for the custom block.

Value: JsonElement?

View source

Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product