class Riffer::FilePart

Represents a file attachment (image or document) in a conversation.

Supports two input sources: - URLs (stored and passed to providers that support them via +from_url+) - Raw base64 data (via +new+)

file = Riffer::FilePart.from_url(“example.com/doc.pdf”, media_type: “application/pdf”) file.url? # => true file.document? # => true