EdgeAIG's picture
download
raw
1.33 kB
import { SharedV2ProviderMetadata } from '../../shared/v2/shared-v2-provider-metadata';
/**
* A source that has been used as input to generate the response.
*/
export type LanguageModelV2Source =
| {
type: 'source';
/**
* The type of source - URL sources reference web content.
*/
sourceType: 'url';
/**
* The ID of the source.
*/
id: string;
/**
* The URL of the source.
*/
url: string;
/**
* The title of the source.
*/
title?: string;
/**
* Additional provider metadata for the source.
*/
providerMetadata?: SharedV2ProviderMetadata;
}
| {
type: 'source';
/**
* The type of source - document sources reference files/documents.
*/
sourceType: 'document';
/**
* The ID of the source.
*/
id: string;
/**
* IANA media type of the document (e.g., 'application/pdf').
*/
mediaType: string;
/**
* The title of the document.
*/
title: string;
/**
* Optional filename of the document.
*/
filename?: string;
/**
* Additional provider metadata for the source.
*/
providerMetadata?: SharedV2ProviderMetadata;
};

Xet Storage Details

Size:
1.33 kB
·
Xet hash:
9d4aa3b30cb6bb5c2ff7515fcde6be0a0aef8c51ff9e9e775961fdea6c454c6e

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.