final | |
|---|---|
readonly | |
implements |
Arrayable<array{data: non-empty-string, mimeType: non-empty-string, type: 'image', annotations?: template-type<Annotations, Arrayable, 'T'>, _meta?: template-type<MetaObject, Arrayable, 'T'>}>, ContentBlock, SamplingMessageContentBlock |
An image provided to or from an LLM.
| Methods | ||
|---|---|---|
public
|
__construct(
string $data,
string $mimeType,
Annotations $annotations = new Annotations(),
MetaObject $meta = new MetaObject(),
)
|
# |
public
static
|
fromArray(array<string, mixed> $data): static
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): array
|
# |
| Constants | |||
|---|---|---|---|
public
|
string |
TYPE = 'image'
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$data
|
# |
public
|
non-empty-string
|
$mimeType
|
# |
public
|
Annotations
|
$annotations
|
# |
public
|
MetaObject
|
$meta
|
# |