Ask a question to get started
Enter to sendā¢Shift+Enter new line
AudioContentBlock()
TypedDict
Type of the content block. Used for discrimination.
Unique identifier for this content block.
Either:
UUID4
'lc_'
Reference to the audio file in an external file storage system.
For example, OpenAI or Anthropic's Files API.
MIME type of the audio.
Required for base64 data.
Examples from IANA
Index of block in aggregate response. Used during streaming.
URL of the audio.
Data as a base64 string.
Provider-specific metadata. This shouldn't be used for the audio data itself.
Audio data.
create_audio_block may also be used as a factory to create an AudioContentBlock. Benefits include:
create_audio_block
AudioContentBlock