ImagePrompt
class ImagePrompt
Properties
| Collection | $attachments |
Methods
__construct(string $prompt, Collection|array $attachments, string|null $size, string|null $quality, ImageProvider $provider, string $model, int|null $timeout = null, array $providerOptions = [])
Create an image prompt.
bool
contains(string $string)
Determine if the prompt contains the given string.
bool
isSquare()
Determine if the image generation is square.
bool
isLandscape()
Determine if the image generation is landscape.
bool
isPortrait()
Determine if the image generation is portrait.
Details
at line 20
__construct(string $prompt, Collection|array $attachments, string|null $size, string|null $quality, ImageProvider $provider, string $model, int|null $timeout = null, array $providerOptions = [])
Create an image prompt.
at line 36
bool
contains(string $string)
Determine if the prompt contains the given string.
at line 44
bool
isSquare()
Determine if the image generation is square.
at line 52
bool
isLandscape()
Determine if the image generation is landscape.
at line 60
bool
isPortrait()
Determine if the image generation is portrait.