Class: BaseAttachment
Hierarchy
-
BaseAttachment
Constructors
constructor
• new BaseAttachment(): BaseAttachment
Returns
Methods
data
▸ data(): Promise<Blob>
Returns
Promise<Blob>
debugInfo
▸ debugInfo(): Record<string, unknown>
Returns
Record<string, unknown>
upload
▸ upload(): Promise<{ error_message?: string ; upload_status: "error" | "done" | "uploading" }>
Returns
Promise<{ error_message?: string ; upload_status: "error" | "done" | "uploading" }>
Properties
reference
• Readonly reference: { content_type: string ; filename: string ; key: string ; type: "braintrust_attachment" } | { content_type: string ; filename: string ; type: "external_attachment" ; url: string }