GeneratedSource
Namespace: Vercel.AI.Provider
public sealed class GeneratedSource : GeneratedContentA URL source cited by the model.
Inheritance: object → GeneratedContent
Constructors
Section titled “Constructors”GeneratedSource(string, string, string?, JsonElement?)
Section titled “GeneratedSource(string, string, string?, JsonElement?)”public GeneratedSource(string id, string url, string? title, JsonElement? providerMetadata = null)Creates a source.
Parameters
| Name | Type | Description |
|---|---|---|
id |
string | |
url |
string | |
title |
string | |
providerMetadata |
JsonElement? |
Properties
Section titled “Properties”public string Id { get; }Source id. Search results keep the provider result id so citations can be correlated.
Value: string
ProviderMetadata
Section titled “ProviderMetadata”public JsonElement? ProviderMetadata { get; }Provider-specific source metadata, such as a snippet or search-result id.
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