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.

Parameters

string $prompt
Collection|array $attachments
string|null $size
string|null $quality
ImageProvider $provider
string $model
int|null $timeout
array $providerOptions

at line 36
bool contains(string $string)

Determine if the prompt contains the given string.

Parameters

string $string

Return Value

bool

at line 44
bool isSquare()

Determine if the image generation is square.

Return Value

bool

at line 52
bool isLandscape()

Determine if the image generation is landscape.

Return Value

bool

at line 60
bool isPortrait()

Determine if the image generation is portrait.

Return Value

bool