A video content part.
| 56 | return f'VideoURL(url={repr(self.url)}, media_type={repr(self.media_type)})' |
| 57 | |
| 58 | class ContentPartVideo(BaseModel): |
| 59 | """A video content part.""" |
| 60 | video_url: VideoURL = Field(description="The URL of the video.") |
| 61 | type: Literal['video_url'] = Field(default='video_url', description="The type of the content part.") # type: ignore |
| 62 | |
| 63 | def __str__(self) -> str: |
| 64 | return str(self.video_url) |
| 65 | |
| 66 | def __repr__(self) -> str: |
| 67 | return f'ContentPartVideo(video_url={repr(self.video_url)})' |
| 68 | |
| 69 | class ImageURL(BaseModel): |
| 70 | """An image URL content part.""" |
no outgoing calls