SourceStreamPart
Namespace: Vercel.AI.Provider
public sealed class SourceStreamPart : LanguageModelStreamPartA cited URL.
Inheritance: object → LanguageModelStreamPart
Constructors
Section titled “Constructors”SourceStreamPart(string, string, string?, JsonElement?)
Section titled “SourceStreamPart(string, string, string?, JsonElement?)”public SourceStreamPart(string id, string url, string? title, JsonElement? providerMetadata = null)Creates a source part.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string | |
url |
string | |
title |
string | |
providerMetadata |
JsonElement? |
Properties
Section titled “Properties”public string Id { get; }Source id.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider-specific source metadata.
Value: JsonElement?
public string? Title { get; }Optional title.
Value: string
public string Url { get; }Source URL.
Value: string
Apache-2.0 · Copyright 2023 Vercel, Inc. · unofficial community port, not an official Vercel product