final | |
|---|---|
readonly | |
implements |
JsonSerializable, Arrayable<array{_meta?: array<string, mixed>, type: 'audio', data: non-empty-string, mimeType: non-empty-string, annotations?: template-type<Annotations, Arrayable, 'T'>}>, ContentBlock |
Audio provided to or from an LLM.
| Methods | ||
|---|---|---|
public
|
__construct(
non-empty-string $data,
non-empty-string $mimeType,
null|Annotations $annotations = null,
null|array<string, mixed> $meta = null,
)
|
# |
public
|
toArray(): array
|
# |
public
|
jsonSerialize(): template-type<self, Arrayable, 'T'>
|
# |
| Properties | |||
|---|---|---|---|
public
|
non-empty-string
|
$type
|
# |
public
|
non-empty-string
|
$data
|
# |
public
|
non-empty-string
|
$mimeType
|
# |
public
|
null|Annotations
|
$annotations
|
# |
public
|
null|array<string, mixed>
|
$meta
|
# |