MapsAttachments
trait MapsAttachments
Methods
array
mapAttachments(Collection $attachments)
Map the given Hypervel attachments to Gemini content blocks.
array
mapAttachment(mixed $attachment)
Map a Hypervel attachment to a Gemini content block.
string
contentTypeFor(string|null $mime)
Resolve the Gemini content block type for the given MIME type.
bool
isYouTubeUrl(string $url)
Determine if the given URL is a YouTube URL, which Gemini accepts as a file URI.
Details
at line 36
protected array
mapAttachments(Collection $attachments)
Map the given Hypervel attachments to Gemini content blocks.
at line 44
protected array
mapAttachment(mixed $attachment)
Map a Hypervel attachment to a Gemini content block.
at line 165
protected string
contentTypeFor(string|null $mime)
Resolve the Gemini content block type for the given MIME type.
at line 178
protected bool
isYouTubeUrl(string $url)
Determine if the given URL is a YouTube URL, which Gemini accepts as a file URI.