Package: @effect/ai
Module: Response
Encoded representation of document source parts for serialization.
Signature
export interface DocumentSourcePartEncoded extends BasePartEncoded<"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