Source Document
class SourceDocument(val sourceId: String, val mediaType: String, val title: String, val filename: String? = null, val providerMetadata: ProviderMetadata = ProviderMetadata.None) : UIMessagePart(source)
Document-shaped source — a referenced file the model used as grounding (PDF, image, etc.). Per v6's SourceDocumentUIPart. Distinct from File which carries the file's payload — this variant is a CITATION POINTER to a document the model read, not a file the model produced.
Since
0.3.0-beta01
Constructors
Link copied to clipboard
constructor(sourceId: String, mediaType: String, title: String, filename: String? = null, providerMetadata: ProviderMetadata = ProviderMetadata.None)