Skip to content

CustomContentUIPart

Namespace: Vercel.AI.Ui

public sealed class CustomContentUIPart : UIMessagePart

A provider-specific part. Maps to CustomContentUIPart.

Inheritance: object → UIMessagePart

View source

public CustomContentUIPart(string kind)

Creates a custom part.

Parameters

Name Type Description
kind string

View source

public string Kind { get; }

The kind of custom content, in the format {provider}.{provider-type}.

Value: string

View source

public IReadOnlyDictionary<string, JsonElement>? ProviderMetadata { get; init; }

The provider metadata.

Value: IReadOnlyDictionary<string, JsonElement>

View source

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