Skip to content

SourceStreamPart

Namespace: Vercel.AI.Provider

public sealed class SourceStreamPart : LanguageModelStreamPart

A cited URL.

Inheritance: object → LanguageModelStreamPart

View source

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?

View source

public string Id { get; }

Source id.

Value: string

View source

public JsonElement? ProviderMetadata { get; }

Provider-specific source metadata.

Value: JsonElement?

View source

public string? Title { get; }

Optional title.

Value: string

View source

public string Url { get; }

Source URL.

Value: string

View source

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