SourceUrlUIPart
Namespace: Vercel.AI.Ui
public sealed class SourceUrlUIPart : UIMessagePartA source that is a URL. Maps to SourceUrlUIPart.
Inheritance: object → UIMessagePart
Constructors
Section titled “Constructors”SourceUrlUIPart(string, string)
Section titled “SourceUrlUIPart(string, string)”public SourceUrlUIPart(string sourceId, string url)Creates a source URL part.
Parameters
| Name | Type | Description |
|---|---|---|
sourceId |
string | |
url |
string |
Properties
Section titled “Properties”ProviderMetadata
Section titled “ProviderMetadata”public IReadOnlyDictionary<string, JsonElement>? ProviderMetadata { get; init; }The provider metadata.
Value: IReadOnlyDictionary<string, JsonElement>
SourceId
Section titled “SourceId”public string SourceId { get; }The source id.
Value: string
public string? Title { get; init; }The title.
Value: string
public string Url { get; }The URL.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product