File size: 1,327 Bytes
e5de7b5 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 | import { SharedV3ProviderMetadata } from '../../shared/v3/shared-v3-provider-metadata';
/**
* A source that has been used as input to generate the response.
*/
export type LanguageModelV3Source =
| {
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?: SharedV3ProviderMetadata;
}
| {
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?: SharedV3ProviderMetadata;
};
|