Package: @effect/ai
Module: Response
Response part representing a document source reference.
Used to reference documents that were used in generating the response.
Signature
export interface DocumentSourcePart extends BasePart<"source", DocumentSourcePartMetadata> {
/**
* Type discriminator for document sources.
*/
readonly sourceType: "document"
/**
* Unique identifier for the document.
*/
readonly id: string
/**
* MIME type of the document.
*/
readonly mediaType: string
/**
* Display title of the document.
*/
readonly title: string
/**
* Optional filename of the document.
*/
readonly fileName?: string
}
Since v1.0.0