An audio content part.
| 32 | |
| 33 | |
| 34 | class ContentPartAudio(BaseModel): |
| 35 | """An audio content part.""" |
| 36 | audio_url: AudioURL = Field(description="The URL of the audio.") |
| 37 | type: Literal['audio_url'] = Field(default='audio_url', description="The type of the content part.") # type: ignore |
| 38 | |
| 39 | def __str__(self) -> str: |
| 40 | return str(self.audio_url) |
| 41 | |
| 42 | def __repr__(self) -> str: |
| 43 | return f'ContentPartAudio(audio_url={str(self.audio_url)})' |
| 44 | |
| 45 | class VideoURL(BaseModel): |
| 46 | """A video URL content part.""" |
no outgoing calls