SourceDocumentUIPart
Namespace: Vercel.AI.Ui
public sealed class SourceDocumentUIPart : UIMessagePartA source that is a document. Maps to SourceDocumentUIPart.
Inheritance: object → UIMessagePart
Constructors
Section titled “Constructors”SourceDocumentUIPart(string, string, string)
Section titled “SourceDocumentUIPart(string, string, string)”public SourceDocumentUIPart(string sourceId, string mediaType, string title)Creates a source document part.
Parameters
| Name | Type | Description |
|---|---|---|
sourceId |
string | |
mediaType |
string | |
title |
string |
Properties
Section titled “Properties”Filename
Section titled “Filename”public string? Filename { get; init; }The file name.
Value: string
MediaType
Section titled “MediaType”public string MediaType { get; }IANA media type.
Value: string
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; }The title.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product