Skip to content

SourceUrlUIPart

Namespace: Vercel.AI.Ui

public sealed class SourceUrlUIPart : UIMessagePart

A source that is a URL. Maps to SourceUrlUIPart.

Inheritance: object → UIMessagePart

View source

public SourceUrlUIPart(string sourceId, string url)

Creates a source URL part.

Parameters

Name Type Description
sourceId string
url string

View source

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

The provider metadata.

Value: IReadOnlyDictionary<string, JsonElement>

View source

public string SourceId { get; }

The source id.

Value: string

View source

public string? Title { get; init; }

The title.

Value: string

View source

public string Url { get; }

The URL.

Value: string

View source

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